Skip to content

Commit 8ef2e12

Browse files
authored
Merge branch 'master' into no-bindgen
2 parents 89ca200 + 2944839 commit 8ef2e12

File tree

14 files changed

+175
-59
lines changed

14 files changed

+175
-59
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ jobs:
9595
Win:
9696
name: Windows
9797
runs-on: windows-latest
98+
env:
99+
LIBCLANG_PATH: 'C:\Program Files\LLVM\bin'
98100
steps:
99101
- uses: actions/checkout@v2
100102
- run: choco install -y llvm

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 0.7.1 - 2020-12-18
2+
3+
- Allow CXX environment variable to override g++ for musl build (#500)
4+
- Add user-defined checker for server side (#502)
5+
16
# 0.7.0 - 2020-11-02
27

38
- Add blocking callback to `EnvBuilder` (#474)

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grpcio"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
edition = "2018"
55
authors = ["The TiKV Project Developers"]
66
license = "Apache-2.0"

grpc-sys/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grpcio-sys"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
authors = ["The TiKV Project Developers"]
55
license = "Apache-2.0"
66
keywords = ["grpc", "bindings"]
@@ -69,5 +69,5 @@ cmake = "0.1"
6969
pkg-config = "0.3"
7070
walkdir = "2.2.9"
7171
# Because of rust-lang/cargo#5237, bindgen should not be upgraded util a minor or major release.
72-
bindgen = { version = "0.51.0", default-features = false, optional = true }
72+
bindgen = { version = "0.56.0", default-features = false, optional = true, features = ["runtime"] }
7373
boringssl-src = "0.1.0"

grpc-sys/bindings/aarch64-unknown-linux-gnu-bindings.rs

+22-24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* automatically generated by rust-bindgen */
2-
31
pub const GRPC_ARES: u32 = 1;
42
pub const GRPC_IF_NAMETOINDEX: u32 = 1;
53
pub const GRPC_ALLOW_EXCEPTIONS: u32 = 1;
@@ -170,7 +168,7 @@ pub const GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX: u32 = 4;
170168
#[repr(u32)]
171169
#[doc = " The various compression algorithms supported by gRPC (not sorted by"]
172170
#[doc = " compression level)"]
173-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
171+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
174172
pub enum grpc_compression_algorithm {
175173
GRPC_COMPRESS_NONE = 0,
176174
GRPC_COMPRESS_DEFLATE = 1,
@@ -183,7 +181,7 @@ pub enum grpc_compression_algorithm {
183181
#[doc = " encodings to request compression in an abstract way. The level-algorithm"]
184182
#[doc = " mapping is performed internally and depends on the peer's supported"]
185183
#[doc = " compression algorithms."]
186-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
184+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
187185
pub enum grpc_compression_level {
188186
GRPC_COMPRESS_LEVEL_NONE = 0,
189187
GRPC_COMPRESS_LEVEL_LOW = 1,
@@ -300,7 +298,7 @@ impl ::std::fmt::Debug for grpc_slice_buffer {
300298
}
301299
#[repr(u32)]
302300
#[doc = " The clocks we support."]
303-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
301+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
304302
pub enum gpr_clock_type {
305303
#[doc = " Monotonic clock. Epoch undefined. Always moves forwards."]
306304
GPR_CLOCK_MONOTONIC = 0,
@@ -535,7 +533,7 @@ extern "C" {
535533
pub fn grpc_slice_split_tail(s: *mut grpc_slice, split: usize) -> grpc_slice;
536534
}
537535
#[repr(u32)]
538-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
536+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
539537
pub enum grpc_slice_ref_whom {
540538
GRPC_SLICE_REF_TAIL = 1,
541539
GRPC_SLICE_REF_HEAD = 2,
@@ -681,7 +679,7 @@ extern "C" {
681679
) -> ::std::os::raw::c_int;
682680
}
683681
pub mod grpc_status_code {
684-
pub type Type = i32;
682+
pub type Type = ::std::os::raw::c_int;
685683
#[doc = " Not an error; returned on success"]
686684
pub const GRPC_STATUS_OK: Type = 0;
687685
#[doc = " The operation was cancelled (typically by the caller)."]
@@ -788,7 +786,7 @@ pub mod grpc_status_code {
788786
pub const GRPC_STATUS__DO_NOT_USE: Type = -1;
789787
}
790788
#[repr(u32)]
791-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
789+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
792790
pub enum grpc_byte_buffer_type {
793791
GRPC_BB_RAW = 0,
794792
}
@@ -873,7 +871,7 @@ pub struct grpc_socket_factory {
873871
}
874872
#[repr(u32)]
875873
#[doc = " Type specifier for grpc_arg"]
876-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
874+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
877875
pub enum grpc_arg_type {
878876
GRPC_ARG_STRING = 0,
879877
GRPC_ARG_INTEGER = 1,
@@ -967,7 +965,7 @@ pub struct grpc_channel_args {
967965
#[doc = "particular operation, the grpc_call_error returned will be GRPC_CALL_OK."]
968966
#[doc = "Receiving any other value listed here is an indication of a bug in the"]
969967
#[doc = "caller."]
970-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
968+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
971969
pub enum grpc_call_error {
972970
#[doc = " everything went ok"]
973971
GRPC_CALL_OK = 0,
@@ -1034,7 +1032,7 @@ impl ::std::fmt::Debug for grpc_metadata {
10341032
}
10351033
#[repr(u32)]
10361034
#[doc = " The type of completion (for grpc_event)"]
1037-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1035+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
10381036
pub enum grpc_completion_type {
10391037
#[doc = " Shutting down"]
10401038
GRPC_QUEUE_SHUTDOWN = 0,
@@ -1084,7 +1082,7 @@ impl ::std::fmt::Debug for grpc_call_details {
10841082
}
10851083
}
10861084
#[repr(u32)]
1087-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1085+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
10881086
pub enum grpc_op_type {
10891087
#[doc = " Send initial metadata: one and only one instance MUST be sent for each"]
10901088
#[doc = "call, unless the call was cancelled - in which case this can be skipped."]
@@ -1274,7 +1272,7 @@ pub struct grpc_resource_quota {
12741272
#[doc = "grpc_completion_queue_pluck() are called on the completion queue (unless the"]
12751273
#[doc = "grpc_cq_polling_type is GRPC_CQ_NON_POLLING) and hence it is very important"]
12761274
#[doc = "to actively call these APIs"]
1277-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1275+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
12781276
pub enum grpc_cq_polling_type {
12791277
#[doc = " The completion queue will have an associated pollset and there is no"]
12801278
#[doc = "restriction on the type of file descriptors the pollset may contain"]
@@ -1291,7 +1289,7 @@ pub enum grpc_cq_polling_type {
12911289
}
12921290
#[repr(u32)]
12931291
#[doc = " Specifies the type of APIs to use to pop events from the completion queue"]
1294-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1292+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
12951293
pub enum grpc_cq_completion_type {
12961294
#[doc = " Events are popped out by calling grpc_completion_queue_next() API ONLY"]
12971295
GRPC_CQ_NEXT = 0,
@@ -1518,7 +1516,7 @@ extern "C" {
15181516
}
15191517
#[repr(u32)]
15201518
#[doc = " Connectivity state of a channel."]
1521-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
1519+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
15221520
pub enum grpc_connectivity_state {
15231521
#[doc = " channel is idle"]
15241522
GRPC_CHANNEL_IDLE = 0,
@@ -2034,7 +2032,7 @@ extern "C" {
20342032
}
20352033
#[repr(u32)]
20362034
#[doc = " How to handle payloads for a registered method"]
2037-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2035+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
20382036
pub enum grpc_server_register_method_payload_handling {
20392037
#[doc = " Don't try to read the payload"]
20402038
GRPC_SRM_PAYLOAD_NONE = 0,
@@ -2267,7 +2265,7 @@ extern "C" {
22672265
}
22682266
#[repr(u32)]
22692267
#[doc = " Results for the SSL roots override callback."]
2270-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2268+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
22712269
pub enum grpc_ssl_roots_override_result {
22722270
GRPC_SSL_ROOTS_OVERRIDE_OK = 0,
22732271
GRPC_SSL_ROOTS_OVERRIDE_FAIL_PERMANENTLY = 1,
@@ -2276,14 +2274,14 @@ pub enum grpc_ssl_roots_override_result {
22762274
}
22772275
#[repr(u32)]
22782276
#[doc = " Callback results for dynamically loading a SSL certificate config."]
2279-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2277+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
22802278
pub enum grpc_ssl_certificate_config_reload_status {
22812279
GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_UNCHANGED = 0,
22822280
GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_NEW = 1,
22832281
GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_FAIL = 2,
22842282
}
22852283
#[repr(u32)]
2286-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2284+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
22872285
pub enum grpc_ssl_client_certificate_request_type {
22882286
#[doc = " Server does not request client certificate."]
22892287
#[doc = "The certificate presented by the client is not checked by the server at"]
@@ -2340,14 +2338,14 @@ impl grpc_security_level {
23402338
grpc_security_level::GRPC_PRIVACY_AND_INTEGRITY;
23412339
}
23422340
#[repr(u32)]
2343-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2341+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
23442342
pub enum grpc_security_level {
23452343
GRPC_SECURITY_MIN = 0,
23462344
GRPC_INTEGRITY_ONLY = 1,
23472345
GRPC_PRIVACY_AND_INTEGRITY = 2,
23482346
}
23492347
#[repr(u32)]
2350-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2348+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
23512349
pub enum grpc_tls_server_verification_option {
23522350
#[doc = " Default option: performs server certificate verification and hostname"]
23532351
#[doc = "verification."]
@@ -2364,14 +2362,14 @@ pub enum grpc_tls_server_verification_option {
23642362
#[repr(u32)]
23652363
#[doc = " Type of local connections for which local channel/server credentials will be"]
23662364
#[doc = " applied. It supports UDS and local TCP connections."]
2367-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2365+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
23682366
pub enum grpc_local_connect_type {
23692367
UDS = 0,
23702368
LOCAL_TCP = 1,
23712369
}
23722370
#[repr(u32)]
23732371
#[doc = " The TLS versions that are supported by the SSL stack."]
2374-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2372+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
23752373
pub enum grpc_tls_version {
23762374
TLS1_2 = 0,
23772375
TLS1_3 = 1,
@@ -3488,7 +3486,7 @@ extern "C" {
34883486
#[repr(u32)]
34893487
#[doc = " The severity of a log message - use the #defines below when calling into"]
34903488
#[doc = "gpr_log to additionally supply file and line data"]
3491-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
3489+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
34923490
pub enum gpr_log_severity {
34933491
GPR_LOG_SEVERITY_DEBUG = 0,
34943492
GPR_LOG_SEVERITY_INFO = 1,

0 commit comments

Comments
 (0)