1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! SecretRS re-exports [`cosmrs`] at the top-level of the crate.
//! This allows `secretrs` to be used as a drop-in replacement for `cosmrs`.
//!
//! # Feature flags
//!
//! The default features are `bip32`, `getrandom`, and `grpc-core`.
//!
//! - `bip32`: Enables the `bip32` feature in `cosmrs`.
//! - `getrandom`: Enables the `getrandom` feature in `cosmrs`.
//! - `grpc-core`: Enables the use of [`tonic`] generated gRPC query and service clients.
//! - `grpc`: Enables [`tonic::transport`], which provides a fully featured HTTP/2 [`Channel`] built on top of [`tokio`], [`hyper`] and [`tower`].
//! - `rpc`: Enables the `rpc` feature in `cosmrs`.
//!
//! # WASM support
//! SecretRS has support for gRPC-web in browsers, thanks to [`tonic_web_wasm_client`]. When building for the `wasm32-unknown-unknown` target, create each [`tonic::client::Grpc<T>`] using a [`tonic_web_wasm_client::Client`] instead of [`tonic::transport::Channel`]. The `grpc` feature must be disabled (this will disable the default transport layer of tonic).
//!
//! [`cosmrs`]: https://docs.rs/cosmrs
//! [`tonic`]: https://docs.rs/tonic
//! [`tonic::transport`]: https://docs.rs/tonic/latest/tonic/transport/index.html
//! [`Channel`]: https://docs.rs/tonic/latest/tonic/transport/struct.Channel.html
//! [`tokio`]: https://docs.rs/tokio
//! [`hyper`]: https://docs.rs/hyper
//! [`tower`]: https://docs.rs/tower
//! [`tonic_web_wasm_client`]: https://docs.rs/tonic_web_wasm_client
//! [`tonic_web_wasm_client::Client`]: https://docs.rs/tonic-web-wasm-client/latest/tonic_web_wasm_client/struct.Client.html
pub use *;
pub use ;