pygrpc-native 0.7.2__tar.gz → 0.8.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/CHANGELOG.md +63 -0
  2. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/Cargo.lock +457 -5
  3. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/Cargo.toml +9 -5
  4. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/PKG-INFO +45 -18
  5. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/README.md +44 -17
  6. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/SECURITY.md +2 -2
  7. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/benchmarks/README.md +51 -9
  8. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/docs/low-level-api.md +36 -2
  9. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/expected_diffs.toml +1 -1
  10. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/python_client.py +13 -1
  11. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/run.py +94 -55
  12. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/server.py +19 -2
  13. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/python/pygrpc_native/__init__.py +5 -2
  14. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/python/pygrpc_native/_native.pyi +16 -3
  15. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/python/pygrpc_native/_server.py +179 -58
  16. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/python/pygrpc_native/aio.py +79 -45
  17. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/lib.rs +174 -44
  18. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/server/calls.rs +5 -5
  19. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/server/codec.rs +6 -3
  20. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/server/connection.rs +10 -3
  21. pygrpc_native-0.8.1/src/server/listener.rs +149 -0
  22. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/server/stream.rs +141 -11
  23. pygrpc_native-0.8.1/src/server/tls.rs +219 -0
  24. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/server.rs +40 -3
  25. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_aio.py +192 -0
  26. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_calls.py +7 -2
  27. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_front.py +42 -0
  28. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_response_metadata.py +68 -1
  29. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_server.py +244 -0
  30. pygrpc_native-0.8.1/tests/test_tls.py +277 -0
  31. pygrpc_native-0.8.1/tests/tls_certs/bmp.key +5 -0
  32. pygrpc_native-0.8.1/tests/tls_certs/bmp.pem +11 -0
  33. pygrpc_native-0.8.1/tests/tls_certs/ca.pem +10 -0
  34. pygrpc_native-0.8.1/tests/tls_certs/chained.key +5 -0
  35. pygrpc_native-0.8.1/tests/tls_certs/chained.pem +22 -0
  36. pygrpc_native-0.8.1/tests/tls_certs/client.key +5 -0
  37. pygrpc_native-0.8.1/tests/tls_certs/client.pem +11 -0
  38. pygrpc_native-0.8.1/tests/tls_certs/multi.key +5 -0
  39. pygrpc_native-0.8.1/tests/tls_certs/multi.pem +11 -0
  40. pygrpc_native-0.8.1/tests/tls_certs/other.key +5 -0
  41. pygrpc_native-0.8.1/tests/tls_certs/other.pem +11 -0
  42. pygrpc_native-0.8.1/tests/tls_certs/san.key +5 -0
  43. pygrpc_native-0.8.1/tests/tls_certs/san.pem +18 -0
  44. pygrpc_native-0.8.1/tests/tls_certs/server.key +5 -0
  45. pygrpc_native-0.8.1/tests/tls_certs/server.pem +11 -0
  46. pygrpc_native-0.8.1/tests/tls_certs/uris.key +5 -0
  47. pygrpc_native-0.8.1/tests/tls_certs/uris.pem +12 -0
  48. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/uri/authority.rs +39 -13
  49. pygrpc_native-0.7.2/src/server/listener.rs +0 -84
  50. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/CODEOWNERS +0 -0
  51. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  52. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  53. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  54. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  55. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/dependabot.yml +0 -0
  56. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/scripts/perf_comment.py +0 -0
  57. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/workflows/ci.yml +0 -0
  58. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/workflows/dco.yml +0 -0
  59. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/workflows/perf-comment.yml +0 -0
  60. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/workflows/perf.yml +0 -0
  61. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/workflows/release.yml +0 -0
  62. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.github/workflows/stale.yml +0 -0
  63. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.gitignore +0 -0
  64. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/.pre-commit-config.yaml +0 -0
  65. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/CODE_OF_CONDUCT.md +0 -0
  66. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/CONTRIBUTING.md +0 -0
  67. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/DCO +0 -0
  68. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/LICENSE +0 -0
  69. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/benchmarks/echo.py +0 -0
  70. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/benchmarks/regress.py +0 -0
  71. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/examples/README.md +0 -0
  72. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/examples/__init__.py +0 -0
  73. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/examples/aio_server.py +0 -0
  74. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/examples/client.py +0 -0
  75. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/examples/sync_server.py +0 -0
  76. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/_protos.py +0 -0
  77. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/protos/src/proto/grpc/testing/empty.proto +0 -0
  78. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/protos/src/proto/grpc/testing/messages.proto +0 -0
  79. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/protos/src/proto/grpc/testing/test.proto +0 -0
  80. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/interop/service.py +0 -0
  81. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/pyproject.toml +0 -0
  82. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/python/pygrpc_native/py.typed +0 -0
  83. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/metrics.rs +0 -0
  84. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/server/auth.rs +0 -0
  85. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/server/fallback.rs +0 -0
  86. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/src/server/order.rs +0 -0
  87. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_add_methods.py +0 -0
  88. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_api.py +0 -0
  89. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_bearer_auth.py +0 -0
  90. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_call_details.py +0 -0
  91. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_concurrency_limit.py +0 -0
  92. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_connection.py +0 -0
  93. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_delay_stream_headers.py +0 -0
  94. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_downstream.py +0 -0
  95. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_examples.py +0 -0
  96. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_fallback.py +0 -0
  97. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_generic_methods.py +0 -0
  98. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_interceptors.py +0 -0
  99. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_metrics.py +0 -0
  100. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/tests/test_stream_try_send.py +0 -0
  101. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/CHANGELOG.md +0 -0
  102. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/Cargo.toml +0 -0
  103. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/LICENSE-APACHE +0 -0
  104. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/LICENSE-MIT +0 -0
  105. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/README.md +0 -0
  106. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/byte_str.rs +0 -0
  107. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/convert.rs +0 -0
  108. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/error.rs +0 -0
  109. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/extensions.rs +0 -0
  110. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/header/map.rs +0 -0
  111. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/header/mod.rs +0 -0
  112. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/header/name.rs +0 -0
  113. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/header/value.rs +0 -0
  114. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/lib.rs +0 -0
  115. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/method.rs +0 -0
  116. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/request.rs +0 -0
  117. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/response.rs +0 -0
  118. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/status.rs +0 -0
  119. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/uri/builder.rs +0 -0
  120. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/uri/mod.rs +0 -0
  121. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/uri/path.rs +0 -0
  122. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/uri/port.rs +0 -0
  123. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/uri/scheme.rs +0 -0
  124. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/uri/tests.rs +0 -0
  125. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/src/version.rs +0 -0
  126. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/tests/header_map.rs +0 -0
  127. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/tests/header_map_fuzz.rs +0 -0
  128. {pygrpc_native-0.7.2 → pygrpc_native-0.8.1}/vendor/http/tests/status_code.rs +0 -0
@@ -4,6 +4,69 @@ All notable changes are listed here. The project follows
4
4
  [semantic versioning](https://semver.org); see
5
5
  [Compatibility](README.md#compatibility) for what that covers.
6
6
 
7
+ ## 0.8.1 (2026-11-20)
8
+
9
+ ### Added
10
+
11
+ - `NativeGrpcFront` takes `max_receive_message_length`. A call whose message is
12
+ larger ends with `RESOURCE_EXHAUSTED` as soon as its length prefix arrives.
13
+ There's no limit by default. (#160)
14
+
15
+ ### Fixed
16
+
17
+ - A handler that set details or trailing metadata the server can't send no
18
+ longer leaves the call open until its deadline; the call ends with
19
+ `INTERNAL`. `server()` also takes bytes in `set_details()` and `abort()` and
20
+ `None` in `set_trailing_metadata()`, as `grpc.server()` does. (#145)
21
+ - `respond()`, `fail()`, `stream_send_initial_metadata()` and `stream_end()`
22
+ end the call with `INTERNAL` when they can't use an argument, instead of
23
+ raising and leaving it open. (#158)
24
+ - `server()` skips the handler of a call whose client left while it waited
25
+ for a worker, as `grpc.server()` does. (#159)
26
+ - `server()` and `aio.server()` refuse a message over
27
+ `max_receive_message_length` as soon as its length prefix arrives, as grpcio
28
+ does, instead of after reading all of it. (#160)
29
+ - `stop(grace)` closes the listeners and sends GOAWAY right away, as grpcio
30
+ does, so clients move new calls to other servers instead of getting
31
+ `UNAVAILABLE` during the grace period. (#161)
32
+ - `auth_context()` gives every call its own dict, as grpcio does, so a handler
33
+ that mutates it no longer leaks the change into later calls. (#142)
34
+ - Calls no longer fail with `INTERNAL` when `:authority` isn't a valid URI
35
+ authority, such as the address list grpcio sends for an `ipv4:` target with
36
+ more than one address. Empty values and ones with control characters are
37
+ still rejected. (#162)
38
+ - Requests compressed with deflate are served instead of failing with
39
+ `UNIMPLEMENTED`, as grpcio does. (#163)
40
+ - A compressed request is refused as soon as it decompresses past
41
+ `max_receive_message_length`, as grpcio does, instead of after it has been
42
+ decompressed in full. The error is grpcio's `Decompressed message larger
43
+ than max`. `NativeGrpcFront` used to check only the compressed size and hand
44
+ such a message to Python. (#164)
45
+
46
+ ## 0.8.0 (2026-11-04)
47
+
48
+ ### Added
49
+
50
+ - `add_secure_port()` works on `server()` and `aio.server()`, with credentials
51
+ from the new `pygrpc_native.ssl_server_credentials()`, and `NativeGrpcFront`
52
+ takes a `tls` argument. Building from the sdist now needs a C compiler. (#134)
53
+ - `auth_context()`, `peer_identities()` and `peer_identity_key()` show the
54
+ client's certificate, as in grpcio. `NativeGrpcFront` users get a `PeerAuth`
55
+ in the call details. (#136)
56
+
57
+ ### Changed
58
+
59
+ - ASCII `bytes` values on keys that don't end in `-bin` are accepted and sent
60
+ as text, as in grpcio. (#126)
61
+
62
+ ### Fixed
63
+
64
+ - A response with invalid metadata now fails the call with `INTERNAL` instead
65
+ of leaving the client hanging. (#126)
66
+ - `aio.server()` raises `grpc.aio.UsageError` where grpc.aio does: on a second
67
+ `send_initial_metadata()` and on `start()` after `stop()`. `start()` on a
68
+ running server now does nothing. (#129)
69
+
7
70
  ## 0.7.2 (2026-11-03)
8
71
 
9
72
  ### Changed
@@ -17,18 +17,69 @@ dependencies = [
17
17
  "rustversion",
18
18
  ]
19
19
 
20
+ [[package]]
21
+ name = "asn1-rs"
22
+ version = "0.7.2"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "b7f43a50ac4fdca5df8e885c21b835997f0a1cdee65494a6847694a98652d9d8"
25
+ dependencies = [
26
+ "asn1-rs-derive",
27
+ "asn1-rs-impl",
28
+ "displaydoc",
29
+ "nom",
30
+ "num-traits",
31
+ "rusticata-macros",
32
+ "thiserror",
33
+ "time",
34
+ ]
35
+
36
+ [[package]]
37
+ name = "asn1-rs-derive"
38
+ version = "0.6.0"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c"
41
+ dependencies = [
42
+ "proc-macro2",
43
+ "quote",
44
+ "syn 2.0.119",
45
+ "synstructure",
46
+ ]
47
+
48
+ [[package]]
49
+ name = "asn1-rs-impl"
50
+ version = "0.2.0"
51
+ source = "registry+https://github.com/rust-lang/crates.io-index"
52
+ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7"
53
+ dependencies = [
54
+ "proc-macro2",
55
+ "quote",
56
+ "syn 2.0.119",
57
+ ]
58
+
20
59
  [[package]]
21
60
  name = "atomic-waker"
22
61
  version = "1.1.2"
23
62
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
63
  checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
25
64
 
65
+ [[package]]
66
+ name = "autocfg"
67
+ version = "1.5.1"
68
+ source = "registry+https://github.com/rust-lang/crates.io-index"
69
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
70
+
26
71
  [[package]]
27
72
  name = "base64"
28
73
  version = "0.22.1"
29
74
  source = "registry+https://github.com/rust-lang/crates.io-index"
30
75
  checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
31
76
 
77
+ [[package]]
78
+ name = "base64"
79
+ version = "0.23.1"
80
+ source = "registry+https://github.com/rust-lang/crates.io-index"
81
+ checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
82
+
32
83
  [[package]]
33
84
  name = "block-buffer"
34
85
  version = "0.12.1"
@@ -44,6 +95,16 @@ version = "1.12.1"
44
95
  source = "registry+https://github.com/rust-lang/crates.io-index"
45
96
  checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
46
97
 
98
+ [[package]]
99
+ name = "cc"
100
+ version = "1.11.0"
101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
102
+ checksum = "375989decec1a0fa424442bed520fa12ede43a48475ce8c7417d2c69b32b5f6b"
103
+ dependencies = [
104
+ "find-msvc-tools",
105
+ "shlex",
106
+ ]
107
+
47
108
  [[package]]
48
109
  name = "cfg-if"
49
110
  version = "1.0.5"
@@ -98,6 +159,32 @@ dependencies = [
98
159
  "hybrid-array",
99
160
  ]
100
161
 
162
+ [[package]]
163
+ name = "data-encoding"
164
+ version = "2.11.1"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"
167
+
168
+ [[package]]
169
+ name = "der-parser"
170
+ version = "10.0.0"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6"
173
+ dependencies = [
174
+ "asn1-rs",
175
+ "displaydoc",
176
+ "nom",
177
+ "num-bigint",
178
+ "num-traits",
179
+ "rusticata-macros",
180
+ ]
181
+
182
+ [[package]]
183
+ name = "deranged"
184
+ version = "0.5.9"
185
+ source = "registry+https://github.com/rust-lang/crates.io-index"
186
+ checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e"
187
+
101
188
  [[package]]
102
189
  name = "digest"
103
190
  version = "0.11.3"
@@ -109,12 +196,29 @@ dependencies = [
109
196
  "crypto-common",
110
197
  ]
111
198
 
199
+ [[package]]
200
+ name = "displaydoc"
201
+ version = "0.2.7"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
204
+ dependencies = [
205
+ "proc-macro2",
206
+ "quote",
207
+ "syn 3.0.9",
208
+ ]
209
+
112
210
  [[package]]
113
211
  name = "equivalent"
114
212
  version = "1.0.3"
115
213
  source = "registry+https://github.com/rust-lang/crates.io-index"
116
214
  checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
117
215
 
216
+ [[package]]
217
+ name = "find-msvc-tools"
218
+ version = "0.1.15"
219
+ source = "registry+https://github.com/rust-lang/crates.io-index"
220
+ checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
221
+
118
222
  [[package]]
119
223
  name = "flate2"
120
224
  version = "1.1.10"
@@ -171,6 +275,17 @@ dependencies = [
171
275
  "slab",
172
276
  ]
173
277
 
278
+ [[package]]
279
+ name = "getrandom"
280
+ version = "0.2.17"
281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
282
+ checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
283
+ dependencies = [
284
+ "cfg-if",
285
+ "libc",
286
+ "wasi",
287
+ ]
288
+
174
289
  [[package]]
175
290
  name = "h2"
176
291
  version = "0.4.20"
@@ -307,6 +422,12 @@ version = "1.0.18"
307
422
  source = "registry+https://github.com/rust-lang/crates.io-index"
308
423
  checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
309
424
 
425
+ [[package]]
426
+ name = "lazy_static"
427
+ version = "1.5.1"
428
+ source = "registry+https://github.com/rust-lang/crates.io-index"
429
+ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
430
+
310
431
  [[package]]
311
432
  name = "libc"
312
433
  version = "0.2.191"
@@ -319,6 +440,18 @@ version = "0.4.34"
319
440
  source = "registry+https://github.com/rust-lang/crates.io-index"
320
441
  checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
321
442
 
443
+ [[package]]
444
+ name = "memchr"
445
+ version = "2.8.3"
446
+ source = "registry+https://github.com/rust-lang/crates.io-index"
447
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
448
+
449
+ [[package]]
450
+ name = "minimal-lexical"
451
+ version = "0.2.1"
452
+ source = "registry+https://github.com/rust-lang/crates.io-index"
453
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
454
+
322
455
  [[package]]
323
456
  name = "miniz_oxide"
324
457
  version = "0.9.1"
@@ -337,7 +470,60 @@ checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee"
337
470
  dependencies = [
338
471
  "libc",
339
472
  "wasi",
340
- "windows-sys",
473
+ "windows-sys 0.61.2",
474
+ ]
475
+
476
+ [[package]]
477
+ name = "nom"
478
+ version = "7.1.3"
479
+ source = "registry+https://github.com/rust-lang/crates.io-index"
480
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
481
+ dependencies = [
482
+ "memchr",
483
+ "minimal-lexical",
484
+ ]
485
+
486
+ [[package]]
487
+ name = "num-bigint"
488
+ version = "0.4.8"
489
+ source = "registry+https://github.com/rust-lang/crates.io-index"
490
+ checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
491
+ dependencies = [
492
+ "num-integer",
493
+ "num-traits",
494
+ ]
495
+
496
+ [[package]]
497
+ name = "num-conv"
498
+ version = "0.2.2"
499
+ source = "registry+https://github.com/rust-lang/crates.io-index"
500
+ checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
501
+
502
+ [[package]]
503
+ name = "num-integer"
504
+ version = "0.1.47"
505
+ source = "registry+https://github.com/rust-lang/crates.io-index"
506
+ checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
507
+ dependencies = [
508
+ "num-traits",
509
+ ]
510
+
511
+ [[package]]
512
+ name = "num-traits"
513
+ version = "0.2.19"
514
+ source = "registry+https://github.com/rust-lang/crates.io-index"
515
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
516
+ dependencies = [
517
+ "autocfg",
518
+ ]
519
+
520
+ [[package]]
521
+ name = "oid-registry"
522
+ version = "0.8.1"
523
+ source = "registry+https://github.com/rust-lang/crates.io-index"
524
+ checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7"
525
+ dependencies = [
526
+ "asn1-rs",
341
527
  ]
342
528
 
343
529
  [[package]]
@@ -384,6 +570,12 @@ version = "1.15.0"
384
570
  source = "registry+https://github.com/rust-lang/crates.io-index"
385
571
  checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
386
572
 
573
+ [[package]]
574
+ name = "powerfmt"
575
+ version = "0.2.1"
576
+ source = "registry+https://github.com/rust-lang/crates.io-index"
577
+ checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
578
+
387
579
  [[package]]
388
580
  name = "proc-macro2"
389
581
  version = "1.0.107"
@@ -395,8 +587,9 @@ dependencies = [
395
587
 
396
588
  [[package]]
397
589
  name = "pygrpc_native"
398
- version = "0.7.2"
590
+ version = "0.8.1"
399
591
  dependencies = [
592
+ "base64 0.23.1",
400
593
  "bytes",
401
594
  "crossbeam-channel",
402
595
  "futures-core",
@@ -408,11 +601,14 @@ dependencies = [
408
601
  "log",
409
602
  "pyo3",
410
603
  "pyo3-log",
604
+ "rustls",
411
605
  "sha2",
412
606
  "socket2",
413
607
  "subtle",
414
608
  "tokio",
609
+ "tokio-rustls",
415
610
  "tonic",
611
+ "x509-parser",
416
612
  ]
417
613
 
418
614
  [[package]]
@@ -492,12 +688,89 @@ dependencies = [
492
688
  "proc-macro2",
493
689
  ]
494
690
 
691
+ [[package]]
692
+ name = "ring"
693
+ version = "0.17.14"
694
+ source = "registry+https://github.com/rust-lang/crates.io-index"
695
+ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
696
+ dependencies = [
697
+ "cc",
698
+ "cfg-if",
699
+ "getrandom",
700
+ "libc",
701
+ "untrusted",
702
+ "windows-sys 0.52.0",
703
+ ]
704
+
705
+ [[package]]
706
+ name = "rusticata-macros"
707
+ version = "4.1.0"
708
+ source = "registry+https://github.com/rust-lang/crates.io-index"
709
+ checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632"
710
+ dependencies = [
711
+ "nom",
712
+ ]
713
+
714
+ [[package]]
715
+ name = "rustls"
716
+ version = "0.23.46"
717
+ source = "registry+https://github.com/rust-lang/crates.io-index"
718
+ checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
719
+ dependencies = [
720
+ "once_cell",
721
+ "ring",
722
+ "rustls-pki-types",
723
+ "rustls-webpki",
724
+ "subtle",
725
+ "zeroize",
726
+ ]
727
+
728
+ [[package]]
729
+ name = "rustls-pki-types"
730
+ version = "1.15.1"
731
+ source = "registry+https://github.com/rust-lang/crates.io-index"
732
+ checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
733
+ dependencies = [
734
+ "zeroize",
735
+ ]
736
+
737
+ [[package]]
738
+ name = "rustls-webpki"
739
+ version = "0.103.16"
740
+ source = "registry+https://github.com/rust-lang/crates.io-index"
741
+ checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
742
+ dependencies = [
743
+ "ring",
744
+ "rustls-pki-types",
745
+ "untrusted",
746
+ ]
747
+
495
748
  [[package]]
496
749
  name = "rustversion"
497
750
  version = "1.0.23"
498
751
  source = "registry+https://github.com/rust-lang/crates.io-index"
499
752
  checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
500
753
 
754
+ [[package]]
755
+ name = "serde_core"
756
+ version = "1.0.229"
757
+ source = "registry+https://github.com/rust-lang/crates.io-index"
758
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
759
+ dependencies = [
760
+ "serde_derive",
761
+ ]
762
+
763
+ [[package]]
764
+ name = "serde_derive"
765
+ version = "1.0.229"
766
+ source = "registry+https://github.com/rust-lang/crates.io-index"
767
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
768
+ dependencies = [
769
+ "proc-macro2",
770
+ "quote",
771
+ "syn 3.0.9",
772
+ ]
773
+
501
774
  [[package]]
502
775
  name = "sha2"
503
776
  version = "0.11.1"
@@ -509,6 +782,12 @@ dependencies = [
509
782
  "digest",
510
783
  ]
511
784
 
785
+ [[package]]
786
+ name = "shlex"
787
+ version = "2.0.1"
788
+ source = "registry+https://github.com/rust-lang/crates.io-index"
789
+ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
790
+
512
791
  [[package]]
513
792
  name = "simd-adler32"
514
793
  version = "0.3.10"
@@ -534,7 +813,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
534
813
  checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
535
814
  dependencies = [
536
815
  "libc",
537
- "windows-sys",
816
+ "windows-sys 0.61.2",
538
817
  ]
539
818
 
540
819
  [[package]]
@@ -571,12 +850,73 @@ version = "1.0.2"
571
850
  source = "registry+https://github.com/rust-lang/crates.io-index"
572
851
  checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
573
852
 
853
+ [[package]]
854
+ name = "synstructure"
855
+ version = "0.13.2"
856
+ source = "registry+https://github.com/rust-lang/crates.io-index"
857
+ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
858
+ dependencies = [
859
+ "proc-macro2",
860
+ "quote",
861
+ "syn 2.0.119",
862
+ ]
863
+
574
864
  [[package]]
575
865
  name = "target-lexicon"
576
866
  version = "0.13.5"
577
867
  source = "registry+https://github.com/rust-lang/crates.io-index"
578
868
  checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
579
869
 
870
+ [[package]]
871
+ name = "thiserror"
872
+ version = "2.0.21"
873
+ source = "registry+https://github.com/rust-lang/crates.io-index"
874
+ checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
875
+ dependencies = [
876
+ "thiserror-impl",
877
+ ]
878
+
879
+ [[package]]
880
+ name = "thiserror-impl"
881
+ version = "2.0.21"
882
+ source = "registry+https://github.com/rust-lang/crates.io-index"
883
+ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
884
+ dependencies = [
885
+ "proc-macro2",
886
+ "quote",
887
+ "syn 3.0.9",
888
+ ]
889
+
890
+ [[package]]
891
+ name = "time"
892
+ version = "0.3.55"
893
+ source = "registry+https://github.com/rust-lang/crates.io-index"
894
+ checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
895
+ dependencies = [
896
+ "deranged",
897
+ "num-conv",
898
+ "powerfmt",
899
+ "serde_core",
900
+ "time-core",
901
+ "time-macros",
902
+ ]
903
+
904
+ [[package]]
905
+ name = "time-core"
906
+ version = "0.1.9"
907
+ source = "registry+https://github.com/rust-lang/crates.io-index"
908
+ checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
909
+
910
+ [[package]]
911
+ name = "time-macros"
912
+ version = "0.2.32"
913
+ source = "registry+https://github.com/rust-lang/crates.io-index"
914
+ checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
915
+ dependencies = [
916
+ "num-conv",
917
+ "time-core",
918
+ ]
919
+
580
920
  [[package]]
581
921
  name = "tokio"
582
922
  version = "1.54.1"
@@ -589,7 +929,7 @@ dependencies = [
589
929
  "pin-project-lite",
590
930
  "socket2",
591
931
  "tokio-macros",
592
- "windows-sys",
932
+ "windows-sys 0.61.2",
593
933
  ]
594
934
 
595
935
  [[package]]
@@ -603,6 +943,16 @@ dependencies = [
603
943
  "syn 3.0.9",
604
944
  ]
605
945
 
946
+ [[package]]
947
+ name = "tokio-rustls"
948
+ version = "0.26.6"
949
+ source = "registry+https://github.com/rust-lang/crates.io-index"
950
+ checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db"
951
+ dependencies = [
952
+ "rustls",
953
+ "tokio",
954
+ ]
955
+
606
956
  [[package]]
607
957
  name = "tokio-stream"
608
958
  version = "0.1.19"
@@ -634,7 +984,7 @@ version = "0.14.6"
634
984
  source = "registry+https://github.com/rust-lang/crates.io-index"
635
985
  checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef"
636
986
  dependencies = [
637
- "base64",
987
+ "base64 0.22.1",
638
988
  "bytes",
639
989
  "flate2",
640
990
  "h2",
@@ -733,6 +1083,12 @@ version = "1.0.27"
733
1083
  source = "registry+https://github.com/rust-lang/crates.io-index"
734
1084
  checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
735
1085
 
1086
+ [[package]]
1087
+ name = "untrusted"
1088
+ version = "0.9.0"
1089
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1090
+ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
1091
+
736
1092
  [[package]]
737
1093
  name = "want"
738
1094
  version = "0.3.2"
@@ -754,6 +1110,15 @@ version = "0.2.1"
754
1110
  source = "registry+https://github.com/rust-lang/crates.io-index"
755
1111
  checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
756
1112
 
1113
+ [[package]]
1114
+ name = "windows-sys"
1115
+ version = "0.52.0"
1116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1117
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1118
+ dependencies = [
1119
+ "windows-targets",
1120
+ ]
1121
+
757
1122
  [[package]]
758
1123
  name = "windows-sys"
759
1124
  version = "0.61.2"
@@ -763,6 +1128,93 @@ dependencies = [
763
1128
  "windows-link",
764
1129
  ]
765
1130
 
1131
+ [[package]]
1132
+ name = "windows-targets"
1133
+ version = "0.52.6"
1134
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1135
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1136
+ dependencies = [
1137
+ "windows_aarch64_gnullvm",
1138
+ "windows_aarch64_msvc",
1139
+ "windows_i686_gnu",
1140
+ "windows_i686_gnullvm",
1141
+ "windows_i686_msvc",
1142
+ "windows_x86_64_gnu",
1143
+ "windows_x86_64_gnullvm",
1144
+ "windows_x86_64_msvc",
1145
+ ]
1146
+
1147
+ [[package]]
1148
+ name = "windows_aarch64_gnullvm"
1149
+ version = "0.52.6"
1150
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1151
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1152
+
1153
+ [[package]]
1154
+ name = "windows_aarch64_msvc"
1155
+ version = "0.52.6"
1156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1157
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1158
+
1159
+ [[package]]
1160
+ name = "windows_i686_gnu"
1161
+ version = "0.52.6"
1162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1163
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1164
+
1165
+ [[package]]
1166
+ name = "windows_i686_gnullvm"
1167
+ version = "0.52.6"
1168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1169
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1170
+
1171
+ [[package]]
1172
+ name = "windows_i686_msvc"
1173
+ version = "0.52.6"
1174
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1175
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1176
+
1177
+ [[package]]
1178
+ name = "windows_x86_64_gnu"
1179
+ version = "0.52.6"
1180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1181
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1182
+
1183
+ [[package]]
1184
+ name = "windows_x86_64_gnullvm"
1185
+ version = "0.52.6"
1186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1187
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1188
+
1189
+ [[package]]
1190
+ name = "windows_x86_64_msvc"
1191
+ version = "0.52.6"
1192
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1193
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1194
+
1195
+ [[package]]
1196
+ name = "x509-parser"
1197
+ version = "0.18.1"
1198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1199
+ checksum = "d43b0f71ce057da06bc0851b23ee24f3f86190b07203dd8f567d0b706a185202"
1200
+ dependencies = [
1201
+ "asn1-rs",
1202
+ "data-encoding",
1203
+ "der-parser",
1204
+ "lazy_static",
1205
+ "nom",
1206
+ "oid-registry",
1207
+ "rusticata-macros",
1208
+ "thiserror",
1209
+ "time",
1210
+ ]
1211
+
1212
+ [[package]]
1213
+ name = "zeroize"
1214
+ version = "1.9.1"
1215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1216
+ checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879"
1217
+
766
1218
  [[package]]
767
1219
  name = "zlib-rs"
768
1220
  version = "0.6.8"