# 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.74" name = "shadowsocks" version = "1.21.0" authors = ["Shadowsocks Contributors"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "shadowsocks is a fast tunnel proxy that helps you bypass firewalls." documentation = "https://docs.rs/shadowsocks-core" readme = "README.md" keywords = [ "shadowsocks", "proxy", "socks", "socks5", "firewall", ] license = "MIT" repository = "https://github.com/shadowsocks/shadowsocks-rust" [lib] name = "shadowsocks" path = "src/lib.rs" [[test]] name = "tcp" path = "tests/tcp.rs" [[test]] name = "tcp_tfo" path = "tests/tcp_tfo.rs" [[test]] name = "udp" path = "tests/udp.rs" [dependencies.aes] version = "0.8" optional = true [dependencies.arc-swap] version = "1.7" optional = true [dependencies.async-trait] version = "0.1" [dependencies.base64] version = "0.22" [dependencies.blake3] version = "1.5" [dependencies.bloomfilter] version = "1.0.8" optional = true [dependencies.byte_string] version = "1.0" [dependencies.bytes] version = "1.7" [dependencies.cfg-if] version = "1" [dependencies.futures] version = "0.3" [dependencies.hickory-resolver] version = "0.24" optional = true [dependencies.libc] version = "0.2.141" [dependencies.log] version = "0.4" [dependencies.lru_time_cache] version = "0.11" optional = true [dependencies.notify] version = "6.0" optional = true [dependencies.once_cell] version = "1.17" [dependencies.percent-encoding] version = "2.1" [dependencies.pin-project] version = "1.1" [dependencies.rand] version = "0.8" optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.serde_urlencoded] version = "0.7" [dependencies.socket2] version = "0.5" features = ["all"] [dependencies.spin] version = "0.9" features = ["std"] [dependencies.thiserror] version = "1.0" [dependencies.tokio] version = "1.9.0" features = [ "io-util", "macros", "net", "parking_lot", "process", "rt", "sync", "time", ] [dependencies.url] version = "2.5" [dev-dependencies.env_logger] version = "0.11" [features] aead-cipher-2022 = [ "shadowsocks-crypto/v2", "rand/small_rng", "aes", "lru_time_cache", ] aead-cipher-2022-extra = [ "aead-cipher-2022", "shadowsocks-crypto/v2-extra", ] aead-cipher-extra = ["shadowsocks-crypto/v1-aead-extra"] default = ["hickory-dns"] hickory-dns = [ "hickory-resolver", "arc-swap", "notify", ] security-replay-attack-detect = ["bloomfilter"] stream-cipher = ["shadowsocks-crypto/v1-stream"] trust-dns = ["hickory-dns"] [target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies.shadowsocks-crypto] version = "0.5.4" features = ["ring"] [target.'cfg(any(windows, target_os = "linux", target_os = "android", target_os = "freebsd", target_os = "macos", target_os = "ios", target_os = "watchos", target_os = "tvos"))'.dependencies.tokio-tfo] version = "0.3" [target.'cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))'.dependencies.shadowsocks-crypto] version = "0.5.4" features = [] [target."cfg(unix)".dependencies.sendfd] version = "0.4" features = ["tokio"] [target."cfg(windows)".dependencies.windows-sys] version = "0.59" features = [ "Win32_Foundation", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock", "Win32_System_IO", ] [badges.maintenance] status = "passively-maintained"