# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "async-jsonrpc-client" version = "0.3.0" authors = ["koushiro "] description = "An asynchronous JSON-RPC 2.0 client library" documentation = "https://docs.rs/async-jsonrpc-client" readme = "README.md" keywords = ["jsonrpc", "rpc", "async", "client"] categories = ["network-programming", "web-programming"] license = "MIT/Apache-2.0" repository = "https://github.com/koushiro/async-jsonrpc" [[example]] name = "http-async-std" path = "examples/http/async_std.rs" required-features = ["http-async-std"] [[example]] name = "http-tokio" path = "examples/http/tokio.rs" required-features = ["http-tokio"] [[example]] name = "ws-async-std" path = "examples/ws/async_std.rs" required-features = ["ws-async-std"] [[example]] name = "ws-tokio" path = "examples/ws/tokio.rs" required-features = ["ws-tokio"] [dependencies.anyhow] version = "1.0" optional = true [dependencies.async-std] version = "1.9" optional = true [dependencies.async-trait] version = "0.1" [dependencies.async-tungstenite] version = "0.13" optional = true [dependencies.base64] version = "0.13" [dependencies.futures] version = "0.3" [dependencies.http] version = "0.2" [dependencies.jsonrpc-types] version = "0.3" [dependencies.log] version = "0.4" [dependencies.reqwest] version = "0.11" features = ["json"] optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.surf] version = "2.1" features = ["curl-client"] optional = true default-features = false [dependencies.thiserror] version = "1.0" [dependencies.tokio] version = "1.2" features = ["time"] optional = true [dev-dependencies.async-std] version = "1.9" features = ["attributes"] [dev-dependencies.env_logger] version = "0.8" [dev-dependencies.hyper] version = "0.14" features = ["server"] [dev-dependencies.tide] version = "0.16" features = ["h1-server"] default-features = false [dev-dependencies.tokio] version = "1.2" features = ["macros", "rt-multi-thread"] [features] async-std-runtime = ["ws-async-std"] default = ["tokio-runtime"] http-async-std = ["async-std", "surf", "anyhow"] http-tokio = ["tokio", "reqwest"] tokio-runtime = ["http-tokio", "ws-tokio"] ws-async-std = ["async-std", "async-tungstenite/async-std-runtime", "async-tungstenite/async-tls"] ws-tokio = ["tokio", "async-tungstenite/tokio-runtime", "async-tungstenite/tokio-native-tls"]