2021-12-11 13:30:42 +01:00
|
|
|
[package]
|
|
|
|
name = "rathole"
|
2021-12-25 12:17:21 +01:00
|
|
|
version = "0.2.0"
|
2021-12-11 13:30:42 +01:00
|
|
|
edition = "2021"
|
|
|
|
authors = ["Yujia Qiao <code@rapiz.me>"]
|
|
|
|
description = "A reverse proxy for NAT traversal"
|
2021-12-19 07:55:58 +01:00
|
|
|
license = "Apache-2.0"
|
2021-12-18 13:20:41 +01:00
|
|
|
repository = "https://github.com/rapiz1/rathole"
|
|
|
|
readme = "README.md"
|
2022-01-02 07:19:14 +01:00
|
|
|
build = "build.rs"
|
2021-12-11 13:30:42 +01:00
|
|
|
|
2021-12-20 05:40:02 +01:00
|
|
|
[features]
|
2021-12-23 14:06:40 +01:00
|
|
|
default = ["server", "client", "tls", "noise", "notify"]
|
2021-12-20 05:40:02 +01:00
|
|
|
server = []
|
|
|
|
client = []
|
2021-12-25 12:01:01 +01:00
|
|
|
tls = ["tokio-native-tls"]
|
|
|
|
noise = ["snowstorm", "base64"]
|
2021-12-20 05:40:02 +01:00
|
|
|
|
2021-12-23 14:06:40 +01:00
|
|
|
# Feature to enable tokio-console. Disabled by default.
|
|
|
|
# Don't enable it unless for debugging purposes.
|
|
|
|
console = ["console-subscriber", "tokio/tracing"]
|
|
|
|
|
2021-12-11 13:30:42 +01:00
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
2021-12-26 07:47:31 +01:00
|
|
|
[profile.release]
|
|
|
|
lto = true
|
|
|
|
|
2021-12-11 13:30:42 +01:00
|
|
|
[profile.bench]
|
|
|
|
debug = 1
|
|
|
|
|
2021-12-20 05:40:02 +01:00
|
|
|
[profile.minimal]
|
|
|
|
inherits = "release"
|
2021-12-26 07:47:31 +01:00
|
|
|
opt-level = "z"
|
|
|
|
lto = true
|
|
|
|
codegen-units = 1
|
|
|
|
panic = "abort"
|
2021-12-20 05:40:02 +01:00
|
|
|
|
2021-12-11 13:30:42 +01:00
|
|
|
[dependencies]
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
2021-12-21 14:11:46 +01:00
|
|
|
bytes = { version = "1", features = ["serde"] }
|
2022-01-02 04:51:29 +01:00
|
|
|
clap = { version = "3.0", features = ["derive"] }
|
2021-12-11 13:30:42 +01:00
|
|
|
toml = "0.5"
|
2021-12-19 07:45:52 +01:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2021-12-11 13:30:42 +01:00
|
|
|
anyhow = "1.0"
|
2021-12-19 11:11:09 +01:00
|
|
|
sha2 = "0.10"
|
2021-12-11 13:30:42 +01:00
|
|
|
bincode = "1"
|
|
|
|
lazy_static = "1.4.0"
|
|
|
|
hex = "0.4"
|
2022-01-02 04:51:29 +01:00
|
|
|
rand = "0.8"
|
2021-12-19 07:45:52 +01:00
|
|
|
backoff = { version="0.3.0", features=["tokio"] }
|
2021-12-11 13:30:42 +01:00
|
|
|
tracing = "0.1"
|
|
|
|
tracing-subscriber = "0.2"
|
|
|
|
socket2 = "0.4"
|
|
|
|
fdlimit = "0.2.1"
|
2021-12-20 05:40:02 +01:00
|
|
|
tokio-native-tls = { version = "0.3.0", optional = true }
|
2021-12-15 08:12:36 +01:00
|
|
|
async-trait = "0.1.52"
|
2021-12-27 03:59:00 +01:00
|
|
|
snowstorm = { git = "https://github.com/black-binary/snowstorm", rev = "1887755", optional = true }
|
2021-12-25 12:01:01 +01:00
|
|
|
base64 = { version = "0.13.0", optional = true }
|
2021-12-26 11:35:23 +01:00
|
|
|
notify = { version = "5.0.0-pre.13", optional = true }
|
2021-12-23 14:06:40 +01:00
|
|
|
console-subscriber = { version = "0.1.0", optional = true, features = ["parking_lot"] }
|
2022-01-02 07:19:14 +01:00
|
|
|
const_format = "0.2"
|
|
|
|
|
|
|
|
[build-dependencies]
|
|
|
|
vergen = "5"
|
|
|
|
anyhow = "1.0"
|