Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ readme = "README.md"
crate-type = ["cdylib", "rlib"]

[dependencies]
# Proto types come from the published `sentrix-proto` crate (the chain
# repo's source of truth). Drops `tonic-prost` / `prost` from explicit
# deps — they're transitive through `sentrix-proto` now.
# `default-features = false` drops the `transport` feature so this crate
# compiles for the wasm32 target (transport pulls tokio-net / mio which
# don't support wasm). The browser's HTTP layer is `tonic-web-wasm-client`
# anyway, not tonic's hyper-based Channel.
sentrix-proto = { version = "0.1.1", default-features = false }
tonic = { version = "0.14", default-features = false, features = ["codegen"] }
tonic-prost = "0.14"
tonic-web-wasm-client = "0.9"
prost = "0.14"
hex = "0.4"

[build-dependencies]
tonic-prost-build = { version = "0.14", default-features = false }

[lints.rust]
unsafe_code = "forbid"
16 changes: 0 additions & 16 deletions build.rs

This file was deleted.

256 changes: 0 additions & 256 deletions proto/sentrix.proto

This file was deleted.

7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
#![allow(missing_docs)]
#![allow(clippy::doc_lazy_continuation)]

#[allow(clippy::all, clippy::pedantic, dead_code)]
/// Generated tonic + prost types for the `sentrix.v1` schema. Re-export
/// of the `sentrix-proto` crate published from the chain repo, so this
/// crate stays in sync with the server schema without vendoring its
/// own copy.
pub mod pb {
tonic::include_proto!("sentrix.v1");
pub use sentrix_proto::*;
}

pub mod client;
Expand Down
Loading