# 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 are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "jsonrpc-utils" version = "0.2.6" description = "Alternative pub/sub and server implementations for jsonrpc-core" readme = "README.md" license = "MIT" repository = "https://github.com/sopium/jsonrpc-utils" [package.metadata.docs.rs] all-features = true cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "openrpc" doc-scrape-examples = true [dependencies.anyhow] version = "1.0.57" optional = true [dependencies.axum] version = "0.6" features = ["ws"] optional = true [dependencies.futures-core] version = "0.3.21" optional = true [dependencies.futures-util] version = "0.3.21" optional = true [dependencies.hex] version = "0.4.3" optional = true [dependencies.jsonrpc-core] version = "18.0.0" [dependencies.jsonrpc-utils-macros] version = "=0.2.4" optional = true [dependencies.pin-project-lite] version = "0.2.9" [dependencies.rand] version = "0.8.5" optional = true [dependencies.reqwest] version = "0.11.11" optional = true default-features = false [dependencies.serde_json] version = "1.0.81" features = ["raw_value"] [dependencies.tokio] version = "1.19.0" features = [ "sync", "macros", "time", "rt", ] optional = true [dev-dependencies.async-stream] version = "0.3.3" [dev-dependencies.async-trait] version = "0.1.56" [dev-dependencies.schemars] version = "0.8.12" [dev-dependencies.serde] version = "1.0.156" features = ["derive"] [dev-dependencies.tokio] version = "1.19.0" features = ["rt-multi-thread"] [dev-dependencies.tokio-stream] version = "0.1.9" features = ["sync"] [dev-dependencies.tokio-util] version = "0.7.3" features = ["codec"] [dev-dependencies.tower-http] version = "0.4.0" features = ["cors"] [features] axum = [ "dep:axum", "server", ] blocking-client = [ "reqwest/blocking", "dep:anyhow", ] client = [ "reqwest", "dep:anyhow", ] macros = [ "dep:jsonrpc-utils-macros", "dep:anyhow", ] server = [ "dep:tokio", "dep:futures-core", "dep:futures-util", "dep:hex", "dep:rand", ]