# 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 = "tcp-handler" version = "1.0.1" authors = ["xuxiaocheng <2762267080@qq.com>"] description = "Conveniently transfer data in chunk through tokio TCP stream." documentation = "https://docs.rs/tcp-handler/" readme = "README.md" keywords = [ "tcp", "tokio", "bytes", "io", "network", ] categories = ["network-programming"] license = "MIT OR Apache-2.0" repository = "https://github.com/xuxiaocheng0201/tcp-handler/" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.dev.package.num-bigint-dig] opt-level = 3 [[bench]] name = "protocols" harness = false [dependencies.__aead_with_feature] version = "0" features = ["bytes"] optional = true default-features = false package = "aead" [dependencies.aes-gcm] version = "~0.10" features = [ "std", "aes", "rand_core", ] optional = true default-features = false [dependencies.async-trait] version = "~0.1" optional = true [dependencies.bytes] version = "^1" [dependencies.flate2] version = "^1" optional = true [dependencies.once_cell] version = "^1" [dependencies.rand] version = "~0.8" optional = true [dependencies.rsa] version = "~0.9" features = [ "std", "sha2", ] optional = true default-features = false [dependencies.serde] version = "^1" features = ["derive"] optional = true [dependencies.thiserror] version = "^1" [dependencies.tokio] version = "^1" features = ["rt-multi-thread"] [dependencies.variable-len-reader] version = "^3.2" features = [ "std", "tokio-comp", "bytes", "async_raw", "async_bools", "async_varint_size", "async_string", ] default-features = false [dev-dependencies.anyhow] version = "^1" [dev-dependencies.criterion] version = "~0.5" features = ["async_tokio"] [dev-dependencies.serde_json] version = "^1" [dev-dependencies.tokio] version = "^1" features = [ "macros", "io-util", "net", ] [dev-dependencies.variable-len-reader] version = "^3" features = ["full"] [build-dependencies.reportme] version = ">=0.2" [features] __internal_variable_len_reader_with_feature = [ "variable-len-reader/sync", "variable-len-reader/std-comp", ] auto_flush = ["tokio/io-util"] compress_encryption = [ "compression", "encryption", "__internal_variable_len_reader_with_feature", ] compression = [ "dep:flate2", "__internal_variable_len_reader_with_feature", ] default = [ "compress_encryption", "auto_flush", "stream_net", ] encryption = [ "dep:rand", "dep:__aead_with_feature", "dep:rsa", "dep:aes-gcm", "__internal_variable_len_reader_with_feature", ] serde = ["dep:serde"] stream_net = [ "streams", "tokio/net", ] streams = ["dep:async-trait"] [badges.maintenance] status = "passively-maintained"