[package] name = "sandhole" version = "0.10.6" edition = "2024" rust-version = "1.95.0" description = "Expose HTTP/SSH/TCP services through SSH port forwarding." repository = "https://codeberg.org/sandhole/sandhole" homepage = "https://sandhole.com.br/" license = "AGPL-3.0-or-later" authors = ["Eric Rodrigues Pires "] readme = "README.md" keywords = ["ssh", "proxy", "reverse-proxy", "tunnel", "hole-punching"] categories = ["network-programming", "web-programming", "authentication"] exclude = [".github", "book", "docker-compose-example", "tests/data"] [workspace] members = ["sandhole_socket", "udp_over_tcp"] [workspace.dependencies] ahash = "0.8.12" clap = { version = "4.6.7", features = ["derive", "string"] } color-eyre = "0.6.5" dashmap = "6.2.1" sandhole_socket = { version = "0.1.1", path = "sandhole_socket" } socket2 = "0.6.5" tokio = { version = "1.54.1", features = ["full"] } [features] default = ["acme", "duper", "login", "prometheus", "rustrict"] acme = ["dep:rustls-acme"] duper = ["dep:tracing_duper"] login = ["dep:reqwest"] prometheus = ["dep:metrics-exporter-prometheus"] [dependencies] ahash = { workspace = true } async-speed-limit = { version = "0.4.2", features = ["tokio"] } aws-lc-rs = "1.19.0" axum = { version = "0.8.9", default-features = false } block-id = "0.2.1" bon = "3.10.3" bytes = "1.12.1" bytesize = "2.7.0" clap = { workspace = true } clap_complete = "4.6.11" color-eyre = { workspace = true } crossterm = { version = "0.29.0", default-features = false } dashmap = { workspace = true } deadpool = { version = "0.13.1", default-features = false, features = ["rt_tokio_1", "unmanaged"] } enumflags2 = "0.7.12" futures-util = { version = "0.3.34", default-features = false, features = [ "std", ] } hickory-resolver = "0.26.3" http = "1.5.0" http-body-util = "0.1.5" humantime = "2.4.0" hyper = { version = "1.12.0", features = ["full"] } hyper-util = { version = "0.1.21", features = ["full"] } ipnet = "2.12.2" ipnet-trie = "0.3.1" itertools = "0.15.0" jiff = "1.0.0" metrics = "0.24.6" metrics-exporter-prometheus = { version = "0.18.3", optional = true } notify = "8.2.2" owo-colors = { version = "4.4.0", features = [ "supports-colors" ] } pretty-duration = "0.1.1" rand = { version = "0.10.4", default-features = false, features = [ "std", "std_rng", "sys_rng", "thread_rng", ] } rand_chacha = "0.10.0" rand_seeder = "0.5.0" ratatui = { version = "0.30.2", default-features = false, features = [ "crossterm", ] } reqwest = { version = "0.13.5", optional = true, default-features = false, features = [ "charset", "http2", "hickory-dns", "json", "rustls", ] } russh = "0.65.1" rustls = "0.23.46" rustls-native-certs = "0.8.5" rustls-acme = { version = "0.15.4", optional = true, default-features = false, features = [ "tokio", "aws-lc-rs", "tls12", "webpki-roots", ] } rustls-pki-types = "1.16.0" rustls-webpki = "0.103.17" rustrict = { version = "0.7.39", optional = true, features = ["customize"] } sandhole_socket = { workspace = true } serde = { version = "1.0.229", default-features = false, features = [ "serde_derive", ] } serde_json = "1.0.154" socket2 = { workspace = true } sysinfo = "0.40.3" thiserror = "2.0.21" tokio = { workspace = true } tokio-rustls = "0.26.6" tokio-stream = "0.1.19" tokio-util = { version = "0.7.20", features = ["net"] } tracing = "0.1.44" tracing_duper = { version = "0.2.2", optional = true } tracing-error = "0.2.1" tracing-subscriber = { version = "0.3.23", features = [ "chrono", "env-filter", "fmt", "json", ] } trie-rs = "0.4.2" webpki-roots = "1" [dev-dependencies] axum = { version = "0.8.9", features = ["macros", "ws"] } insta = { version = "1.49.0", features = ["yaml"] } mockall = "0.15.0" nix = "0.32.0" regex = "1.13.1" test-log = { version = "0.2.21", features = ["trace", "color"] } tokio-tungstenite = "0.30.0" tower = "0.5.3" vt100-ctt = { version = "0.17.1", default-features = false } [profile.release] strip = true lto = true [profile.bench] strip = false lto = true [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ["cfg(coverage_nightly)"] } [package.metadata.binstall] pkg-url = "https://sandhole.com.br/download/v{ version }/sandhole-{ target-family }-{ target-arch }{ binary-ext }" pkg-fmt = "bin" disabled-strategies = ["quick-install"]