Cargo.toml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [package]
  2. name = "rathole"
  3. version = "0.2.0"
  4. edition = "2021"
  5. authors = ["Yujia Qiao <code@rapiz.me>"]
  6. description = "A reverse proxy for NAT traversal"
  7. license = "Apache-2.0"
  8. repository = "https://github.com/rapiz1/rathole"
  9. readme = "README.md"
  10. [features]
  11. default = ["tls", "server", "client", "noise"]
  12. server = []
  13. client = []
  14. tls = ["tokio-native-tls"]
  15. noise = ["snowstorm", "base64"]
  16. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  17. [profile.bench]
  18. debug = 1
  19. [profile.minimal]
  20. inherits = "release"
  21. opt-level = "s"
  22. [dependencies]
  23. tokio = { version = "1", features = ["full"] }
  24. bytes = { version = "1", features = ["serde"] }
  25. clap = { version = "3.0.0-rc.7", features = ["derive"] }
  26. toml = "0.5"
  27. serde = { version = "1.0", features = ["derive"] }
  28. anyhow = "1.0"
  29. sha2 = "0.10"
  30. bincode = "1"
  31. lazy_static = "1.4.0"
  32. hex = "0.4"
  33. rand = "0.8.0"
  34. backoff = { version="0.3.0", features=["tokio"] }
  35. tracing = "0.1"
  36. tracing-subscriber = "0.2"
  37. socket2 = "0.4"
  38. fdlimit = "0.2.1"
  39. tokio-native-tls = { version = "0.3.0", optional = true }
  40. async-trait = "0.1.52"
  41. snowstorm = { version = "0.1.3", optional = true }
  42. base64 = { version = "0.13.0", optional = true }