Phase 2 section 7 (docs/SCALE-EXPANSION.md): the Rust counterpart to sdk/go/ration — client-only tonic stubs for gateway.proto/common.proto (build.rs also generates server stubs, same as ledger-core's build.rs does for audit.proto, so this crate's own tests can stand up a fake Gateway server with no network). Verified: cargo build, cargo clippy --all-targets -- -D warnings (clean), cargo fmt --check, cargo test (7 unit tests against an in-process duplex-pipe gateway server + 1 doc-test), all passing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
24 lines
494 B
TOML
24 lines
494 B
TOML
[package]
|
|
name = "ration-client"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Typed Rust client for Ration's gateway.proto Gateway service (docs/SCALE-EXPANSION.md section 7)."
|
|
|
|
[lib]
|
|
name = "ration_client"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
tonic = "0.12"
|
|
prost = "0.13"
|
|
thiserror = "1"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-stream = "0.1"
|
|
tower = "0.4"
|
|
hyper-util = { version = "0.1", features = ["tokio"] }
|
|
|
|
[build-dependencies]
|
|
tonic-build = "0.12"
|