Cargo.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 = ["server", "client", "tls", "noise", "notify"]
  12. server = []
  13. client = []
  14. tls = ["tokio-native-tls"]
  15. noise = ["snowstorm", "base64"]
  16. # Feature to enable tokio-console. Disabled by default.
  17. # Don't enable it unless for debugging purposes.
  18. console = ["console-subscriber", "tokio/tracing"]
  19. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  20. [profile.release]
  21. lto = true
  22. [profile.bench]
  23. debug = 1
  24. [profile.minimal]
  25. inherits = "release"
  26. opt-level = "z"
  27. lto = true
  28. codegen-units = 1
  29. panic = "abort"
  30. [dependencies]
  31. tokio = { version = "1", features = ["full"] }
  32. bytes = { version = "1", features = ["serde"] }
  33. clap = { version = "3.0.0-rc.7", features = ["derive"] }
  34. toml = "0.5"
  35. serde = { version = "1.0", features = ["derive"] }
  36. anyhow = "1.0"
  37. sha2 = "0.10"
  38. bincode = "1"
  39. lazy_static = "1.4.0"
  40. hex = "0.4"
  41. rand = "0.8.0"
  42. backoff = { version="0.3.0", features=["tokio"] }
  43. tracing = "0.1"
  44. tracing-subscriber = "0.2"
  45. socket2 = "0.4"
  46. fdlimit = "0.2.1"
  47. tokio-native-tls = { version = "0.3.0", optional = true }
  48. async-trait = "0.1.52"
  49. snowstorm = { git = "https://github.com/black-binary/snowstorm", rev = "1887755", optional = true }
  50. base64 = { version = "0.13.0", optional = true }
  51. notify = { version = "5.0.0-pre.13", optional = true }
  52. console-subscriber = { version = "0.1.0", optional = true, features = ["parking_lot"] }