Skip to content

Commit f39ab1a

Browse files
BusyJaylb034582341
authored andcommitted
grpc-sys: update to 1.56.2 (#624)
Signed-off-by: Jay Lee <[email protected]> Signed-off-by: Ludovic Barman <[email protected]>
1 parent 610032f commit f39ab1a

File tree

4 files changed

+28
-5
lines changed

4 files changed

+28
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This project is still under development. The following features with the check m
3030
- binutils >= 2.22
3131
- LLVM and Clang >= 3.9 if you need to generate bindings at compile time.
3232

33-
For Linux and MacOS, you also need to install gcc 4.9+ (or clang) too.
33+
For Linux and MacOS, you also need to install gcc 7.3+ (or clang 6+) too.
3434

3535
Bindings are pre-generated for x86_64/arm64 Linux. For other platforms, bindings are generated at compile time.
3636

grpc-sys/bindings/bindings.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3342,6 +3342,24 @@ extern "C" {
33423342
verify_server_cert: ::std::os::raw::c_int,
33433343
);
33443344
}
3345+
extern "C" {
3346+
#[doc = " EXPERIMENTAL API - Subject to change"]
3347+
#[doc = ""]
3348+
#[doc = " Sets whether or not a TLS server should send a list of CA names in the"]
3349+
#[doc = " ServerHello. This list of CA names is read from the server's trust bundle, so"]
3350+
#[doc = " that the client can use this list as a hint to know which certificate it"]
3351+
#[doc = " should send to the server."]
3352+
#[doc = ""]
3353+
#[doc = " WARNING: This API is extremely dangerous and should not be used. If the"]
3354+
#[doc = " server's trust bundle is too large, then the TLS server will be unable to"]
3355+
#[doc = " form a ServerHello, and hence will be unusable. The definition of \"too large\""]
3356+
#[doc = " depends on the underlying SSL library being used and on the size of the CN"]
3357+
#[doc = " fields of the certificates in the trust bundle."]
3358+
pub fn grpc_tls_credentials_options_set_send_client_ca_list(
3359+
options: *mut grpc_tls_credentials_options,
3360+
send_client_ca_list: bool,
3361+
);
3362+
}
33453363
#[doc = " EXPERIMENTAL API - Subject to change"]
33463364
#[doc = ""]
33473365
#[doc = " The read-only request information exposed in a verification call."]

grpc-sys/build.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ use cmake::Config as CmakeConfig;
1212
use pkg_config::{Config as PkgConfig, Library};
1313
use walkdir::WalkDir;
1414

15-
const GRPC_VERSION: &str = "1.44.0";
15+
fn grpc_version() -> &'static str {
16+
let mut version = env!("CARGO_PKG_VERSION").split('+');
17+
version.next().unwrap();
18+
let label = version.next().unwrap();
19+
label.split('-').next().unwrap()
20+
}
1621

1722
include!("link-deps.rs");
1823

1924
fn probe_library(library: &str, cargo_metadata: bool) -> Library {
2025
match PkgConfig::new()
21-
.atleast_version(GRPC_VERSION)
26+
.atleast_version(grpc_version())
2227
.cargo_metadata(cargo_metadata)
2328
.probe(library)
2429
{
@@ -97,7 +102,7 @@ fn list_packages(dst: &Path) {
97102
.print_system_libs(false)
98103
.env_metadata(false)
99104
.cargo_metadata(false)
100-
.atleast_version(GRPC_VERSION);
105+
.atleast_version(grpc_version());
101106
let grpc = cfg.probe("grpc").unwrap();
102107
let mut grpc_libs: HashSet<_> = grpc.libs.iter().cloned().collect();
103108
let grpc_unsecure = cfg.probe("grpc_unsecure").unwrap();

grpc-sys/grpc

Submodule grpc updated from 84edf14 to 815f12f

0 commit comments

Comments
 (0)