schema-api enabled tonic's tls-ring, which turns on rustls' ring next to the
aws-lc-rs that reqwest and str0m use. With two providers rustls cannot pick
a process-wide one, and every TLS client built without an explicit provider
panics: tokio-tungstenite's for wss:// gateways ("Could not automatically
determine the process-level CryptoProvider"), leaving observation stuck at
Connecting. tonic uses tls-aws-lc now (second local patch, VOELIN-PATCH.md);
ring is gone from rustls in Cargo.lock.
voelin-core's one_rustls_crypto_provider test builds a rustls client config
with the app's TLS dependencies (voelin-myts is a dev-dependency there); it
panics as above with tls-ring and passes with tls-aws-lc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
42 lines
1.3 KiB
TOML
42 lines
1.3 KiB
TOML
[package]
|
|
name = "schema-api"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Complete Rust gRPC bindings and client utilities for the supplied API schemas"
|
|
readme = "README.md"
|
|
publish = false
|
|
include = ["src/**", "proto/**", "build.rs", "Cargo.toml", "Cargo.lock", "README.md", "docs/**", "examples/**", "tests/**", "scripts/**"]
|
|
|
|
[features]
|
|
default = ["reflection"]
|
|
reflection = ["dep:prost-reflect", "dep:serde_json"]
|
|
server = []
|
|
infrastructure = []
|
|
gzip = ["tonic/gzip"]
|
|
|
|
[dependencies]
|
|
prost = "0.14"
|
|
prost-types = "0.14"
|
|
# Voelin: aws-lc-rs (was tls-ring), the one rustls provider of the app (VOELIN-PATCH.md).
|
|
tonic = { version = "0.14", features = ["transport", "tls-aws-lc", "tls-native-roots"] }
|
|
tonic-prost = "0.14"
|
|
thiserror = "2"
|
|
prost-reflect = { version = "0.16", features = ["serde"], optional = true }
|
|
serde_json = { version = "1", optional = true }
|
|
|
|
[build-dependencies]
|
|
prost-build = "0.14"
|
|
tonic-prost-build = "0.14"
|
|
protoc-bin-vendored = "3"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "net", "sync", "time"] }
|
|
tokio-stream = { version = "0.1", features = ["net"] }
|
|
|
|
[[example]]
|
|
name = "inspect_schema"
|
|
required-features = ["reflection"]
|
|
|
|
# Voelin: keep this vendored package independent of enclosing workspaces.
|
|
[workspace]
|