1
0

Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [package]
  2. name = "rathole"
  3. version = "0.3.3"
  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", "hot-reload"]
  13. # Run as a server
  14. server = []
  15. # Run as a client
  16. client = []
  17. # TLS support
  18. tls = ["tokio-native-tls"]
  19. # Noise support
  20. noise = ["snowstorm", "base64"]
  21. # Configuration hot-reload support
  22. hot-reload = ["notify"]
  23. # Feature to enable tokio-console. Disabled by default.
  24. # Don't enable it unless for debugging purposes.
  25. console = ["console-subscriber", "tokio/tracing"]
  26. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  27. [profile.dev]
  28. panic = "abort"
  29. [profile.release]
  30. panic = "abort"
  31. lto = true
  32. [profile.bench]
  33. debug = 1
  34. [profile.minimal]
  35. inherits = "release"
  36. opt-level = "z"
  37. lto = true
  38. codegen-units = 1
  39. [dependencies]
  40. tokio = { version = "1", features = ["full"] }
  41. bytes = { version = "1", features = ["serde"] }
  42. clap = { version = "3.0", features = ["derive"] }
  43. toml = "0.5"
  44. serde = { version = "1.0", features = ["derive"] }
  45. anyhow = "1.0"
  46. sha2 = "0.10"
  47. bincode = "1"
  48. lazy_static = "1.4"
  49. hex = "0.4"
  50. rand = "0.8"
  51. backoff = { version="0.3", features=["tokio"] }
  52. tracing = "0.1"
  53. tracing-subscriber = "0.2"
  54. socket2 = "0.4"
  55. fdlimit = "0.2"
  56. tokio-native-tls = { version = "0.3", optional = true }
  57. async-trait = "0.1"
  58. snowstorm = { version = "0.2", optional = true }
  59. base64 = { version = "0.13", optional = true }
  60. notify = { version = "5.0.0-pre.13", optional = true }
  61. console-subscriber = { version = "0.1", optional = true, features = ["parking_lot"] }
  62. const_format = "0.2"
  63. [build-dependencies]
  64. vergen = "6.0"
  65. anyhow = "1.0"