[package] name = "boomnet" version = "0.0.25" edition = "2021" license = "MIT" description = "Framework for building low latency websocket client based applications." readme = "./README.md" documentation = "https://docs.rs/boomnet" repository = "https://github.com/HaveFunTrading/boomnet" keywords = ["tungstenite", "async", "client", "websocket", "mio"] categories = ["network-programming", "web-programming::websocket"] rust-version = "1.74.1" [package.metadata.docs.rs] features = ["full"] [features] default = [] disable-checks = [] full = ["full-tls-webpki"] full-tls-webpki = ["mio", "tls-webpki", "ws"] full-tls-native = ["mio", "tls-native", "ws"] mio = ["dep:mio"] tls-native = ["rustls", "rustls-native-certs"] tls-webpki = ["rustls", "webpki-roots"] ws = ["rand", "base64", "http", "httparse"] [dependencies] url = "2.5.0" thiserror = "1.0.50" log = "0.4.20" socket2 = { version = "0.5.5", features = ["all"] } pnet = "0.34.0" idle = "0.2.0" mio = { version = "0.8.10", features = ["net", "os-poll"], optional = true } rustls = { version = "0.22.4", optional = true } rand = { version = "0.8.5", optional = true } base64 = { version = "0.21.5", optional = true } httparse = { version = "1.8.0", optional = true } http = { version = "1.0.0", optional = true } [dependencies.webpki-roots] version = "0.26.0" optional = true [dependencies.rustls-native-certs] version = "0.7.0" optional = true [dev-dependencies] anyhow = "1" env_logger = "0.10.1" ansi_term = "0.12.1" tungstenite = "0.21.0" criterion = "0.5.1" [lints.clippy] uninit_assumed_init = "allow" mem_replace_with_uninit = "allow" [lints.rust] dead_code = "warn" [profile.release] debug = true [[bench]] name = "latency" path = "benches/latency/main.rs" harness = false