# 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.77.0" name = "wsrx" version = "0.2.31" authors = ["Reverier-Xu "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Controlled TCP-over-WebSocket forwarding tunnel." homepage = "https://github.com/XDSEC/WebSocketReflectorX" documentation = "https://docs.rs/wsrx" readme = "README.md" license = "MIT" repository = "https://github.com/XDSEC/WebSocketReflectorX" resolver = "2" [package.metadata.binstall] disabled-strategies = [ "quick-install", "compile", ] [package.metadata.binstall.overrides.aarch64-apple-darwin] bin-dir = "target/release/{ bin }" pkg-ext = "zip" pkg-url = "{ repo }/releases/download/{ version }/{ name }-cli-{ version }-macOS-arm64{ archive-suffix }" [package.metadata.binstall.overrides.x86_64-apple-darwin] bin-dir = "target/release/{ bin }" pkg-ext = "zip" pkg-url = "{ repo }/releases/download/{ version }/{ name }-cli-{ version }-macOS-x86_64{ archive-suffix }" [package.metadata.binstall.overrides.x86_64-pc-windows-msvc] bin-dir = "target/release/{ bin }.exe" pkg-ext = "zip" pkg-url = "{ repo }/releases/download/{ version }/{ name }-cli-{ version }-win64{ archive-suffix }" [package.metadata.binstall.overrides.x86_64-unknown-linux-gnu] bin-dir = "{ bin }" pkg-fmt = "tgz" pkg-url = "{ repo }/releases/download/{ version }/{ name }-cli-{ version }-linux64-gnu{ archive-suffix }" [package.metadata.binstall.overrides.x86_64-unknown-linux-musl] bin-dir = "{ bin }" pkg-fmt = "tgz" pkg-url = "{ repo }/releases/download/{ version }/{ name }-cli-{ version }-linux64-musl{ archive-suffix }" [lib] name = "wsrx" path = "src/lib.rs" [[bin]] name = "wsrx" path = "src/main.rs" required-features = ["binary"] [dependencies.axum] version = "0.7" features = [ "ws", "macros", ] optional = true [dependencies.chrono] version = "0.4" optional = true [dependencies.clap] version = "4.5" features = ["derive"] optional = true [dependencies.futures-util] version = "0.3" features = ["sink"] [dependencies.once_cell] version = "1.20" optional = true [dependencies.rustls] version = "0.23" features = ["ring"] [dependencies.serde] version = "1.0" features = ["derive"] optional = true [dependencies.serde_json] version = "1.0" optional = true [dependencies.subprocess] version = "0.2" optional = true [dependencies.thiserror] version = "2.0" [dependencies.tokio] version = "1.41" features = ["full"] [dependencies.tokio-tungstenite] version = "0.24" features = ["rustls-tls-native-roots"] optional = true [dependencies.tokio-util] version = "0.7" features = ["codec"] [dependencies.tower-http] version = "0.6" features = [ "trace", "cors", ] optional = true [dependencies.tracing] version = "0.1" optional = true [dependencies.tracing-subscriber] version = "0.3" features = [ "env-filter", "json", ] optional = true [dependencies.url] version = "2.5" optional = true [features] binary = [ "dep:clap", "dep:once_cell", "dep:tracing", "dep:url", "dep:tower-http", "dep:serde", "dep:serde_json", "dep:tracing-subscriber", "dep:subprocess", "dep:chrono", "server", "client", ] client = ["dep:tokio-tungstenite"] default = ["binary"] server = ["dep:axum"]