rathole/Cargo.toml

81 lines
2.2 KiB
TOML
Raw Normal View History

2021-12-11 13:30:42 +01:00
[package]
name = "rathole"
2022-09-16 10:51:56 +02:00
version = "0.4.4"
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"
2022-01-11 04:45:52 +01:00
include = ["src/**/*", "LICENSE", "README.md", "build.rs"]
2021-12-11 13:30:42 +01:00
[features]
2022-01-02 09:38:31 +01:00
default = ["server", "client", "tls", "noise", "hot-reload"]
# Run as a server
server = []
2022-01-02 09:38:31 +01:00
# Run as a client
client = []
2022-01-02 09:38:31 +01:00
# TLS support
tls = ["tokio-native-tls"]
2022-01-02 09:38:31 +01:00
# Noise support
noise = ["snowstorm", "base64"]
2022-01-02 09:38:31 +01:00
# Configuration hot-reload support
hot-reload = ["notify"]
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
2022-01-03 10:50:28 +01:00
[profile.dev]
panic = "abort"
[profile.release]
2022-01-03 10:50:28 +01:00
panic = "abort"
lto = true
2022-02-06 15:51:18 +01:00
codegen-units = 1
2022-02-25 05:35:04 +01:00
strip = true
2021-12-11 13:30:42 +01:00
[profile.bench]
debug = 1
[profile.minimal]
inherits = "release"
opt-level = "z"
lto = true
codegen-units = 1
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"
2022-01-03 11:50:37 +01:00
lazy_static = "1.4"
2021-12-11 13:30:42 +01:00
hex = "0.4"
2022-01-02 04:51:29 +01:00
rand = "0.8"
backoff = { version = "0.4", features = ["tokio"] }
2021-12-11 13:30:42 +01:00
tracing = "0.1"
tracing-subscriber = "0.2"
socket2 = { version = "0.4", features = ["all"] }
2022-01-03 11:50:37 +01:00
fdlimit = "0.2"
tokio-native-tls = { version = "0.3", optional = true }
async-trait = "0.1"
2022-05-21 18:26:47 +02:00
snowstorm = { version = "0.4", optional = true, features = ["stream"], default-features = false }
2022-01-03 11:50:37 +01:00
base64 = { version = "0.13", optional = true }
2021-12-26 11:35:23 +01:00
notify = { version = "5.0.0-pre.13", optional = true }
2022-01-03 11:50:37 +01:00
console-subscriber = { version = "0.1", optional = true, features = ["parking_lot"] }
atty = "0.2"
async-http-proxy = { version = "1.2", features = ["runtime-tokio", "basic-auth"] }
async-socks5 = "0.5"
url = { version = "2.2", features = ["serde"] }
2022-01-02 07:19:14 +01:00
[build-dependencies]
2022-01-08 03:31:59 +01:00
vergen = { version = "6.0", default-features = false, features = ["build", "git", "cargo"] }
2022-01-02 07:19:14 +01:00
anyhow = "1.0"