Cargo.toml 1.7 KB

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