Cargo.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.release]
  18. lto = true
  19. [profile.bench]
  20. debug = 1
  21. [profile.minimal]
  22. inherits = "release"
  23. opt-level = "z"
  24. lto = true
  25. codegen-units = 1
  26. panic = "abort"
  27. [dependencies]
  28. tokio = { version = "1", features = ["full"] }
  29. bytes = { version = "1", features = ["serde"] }
  30. clap = { version = "3.0.0-rc.7", features = ["derive"] }
  31. toml = "0.5"
  32. serde = { version = "1.0", features = ["derive"] }
  33. anyhow = "1.0"
  34. sha2 = "0.10"
  35. bincode = "1"
  36. lazy_static = "1.4.0"
  37. hex = "0.4"
  38. rand = "0.8.0"
  39. backoff = { version="0.3.0", features=["tokio"] }
  40. tracing = "0.1"
  41. tracing-subscriber = "0.2"
  42. socket2 = "0.4"
  43. fdlimit = "0.2.1"
  44. tokio-native-tls = { version = "0.3.0", optional = true }
  45. async-trait = "0.1.52"
  46. snowstorm = { git = "https://github.com/black-binary/snowstorm", rev = "1887755", optional = true }
  47. base64 = { version = "0.13.0", optional = true }
  48. notify = "5.0.0-pre.13"