File tree Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ This project is still under development. The following features with the check m
30
30
- binutils >= 2.22
31
31
- LLVM and Clang >= 3.9 if you need to generate bindings at compile time.
32
32
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.
34
34
35
35
Bindings are pre-generated for x86_64/arm64 Linux. For other platforms, bindings are generated at compile time.
36
36
Original file line number Diff line number Diff line change @@ -3342,6 +3342,24 @@ extern "C" {
3342
3342
verify_server_cert : :: std:: os:: raw:: c_int ,
3343
3343
) ;
3344
3344
}
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
+ }
3345
3363
#[ doc = " EXPERIMENTAL API - Subject to change" ]
3346
3364
#[ doc = "" ]
3347
3365
#[ doc = " The read-only request information exposed in a verification call." ]
Original file line number Diff line number Diff line change @@ -12,13 +12,18 @@ use cmake::Config as CmakeConfig;
12
12
use pkg_config:: { Config as PkgConfig , Library } ;
13
13
use walkdir:: WalkDir ;
14
14
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
+ }
16
21
17
22
include ! ( "link-deps.rs" ) ;
18
23
19
24
fn probe_library ( library : & str , cargo_metadata : bool ) -> Library {
20
25
match PkgConfig :: new ( )
21
- . atleast_version ( GRPC_VERSION )
26
+ . atleast_version ( grpc_version ( ) )
22
27
. cargo_metadata ( cargo_metadata)
23
28
. probe ( library)
24
29
{
@@ -97,7 +102,7 @@ fn list_packages(dst: &Path) {
97
102
. print_system_libs ( false )
98
103
. env_metadata ( false )
99
104
. cargo_metadata ( false )
100
- . atleast_version ( GRPC_VERSION ) ;
105
+ . atleast_version ( grpc_version ( ) ) ;
101
106
let grpc = cfg. probe ( "grpc" ) . unwrap ( ) ;
102
107
let mut grpc_libs: HashSet < _ > = grpc. libs . iter ( ) . cloned ( ) . collect ( ) ;
103
108
let grpc_unsecure = cfg. probe ( "grpc_unsecure" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments