# 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" rust-version = "1.56" name = "rpc-core" version = "0.3.2" authors = ["liushuai <770722922@qq.com>"] autotests = true description = "a tiny rpc library for rust" homepage = "https://github.com/shuai132/rpc_core/tree/master/rust" readme = "README.md" categories = [ "rpc", "rpc-core", ] license = "MIT" repository = "https://github.com/shuai132/rpc_core" [package.metadata.docs.rs] features = ["full"] [[example]] name = "tcp_client" path = "src/examples/tcp_client.rs" required-features = ["net"] [[example]] name = "tcp_server" path = "src/examples/tcp_server.rs" required-features = ["net"] [[example]] name = "rpc_client" path = "src/examples/rpc_client.rs" required-features = ["net"] [[example]] name = "rpc_server" path = "src/examples/rpc_server.rs" required-features = ["net"] [[test]] name = "rpc" path = "src/tests/rpc.rs" [[test]] name = "net_rpc" path = "src/tests/net_rpc.rs" required-features = ["net"] [[test]] name = "net_tcp" path = "src/tests/net_tcp.rs" required-features = ["net"] [dependencies.bitflags] version = "2.4" [dependencies.log] version = "0.4" [dependencies.serde] version = "1.0" [dependencies.serde_json] version = "1.0" [dependencies.tokio] version = "1" features = [ "rt", "net", "io-util", "macros", ] optional = true [dependencies.tokio-stream] version = "0.1" optional = true [dev-dependencies.env_logger] version = "0.10.0" [features] default = [] full = ["net"] net = [ "tokio", "tokio-stream", ]