[package] name = "questdb-rs" version = "4.0.3" edition = "2021" license = "Apache-2.0" description = "QuestDB Client Library for Rust" homepage = "https://questdb.io/" repository = "https://github.com/questdb/c-questdb-client" keywords = ["questdb", "ilp", "client-library"] categories = ["database"] authors = ["Adam Cimarosti "] [package.metadata.docs.rs] all-features = true [lib] name = "questdb" crate-type = ["lib"] [dependencies] libc = "0.2" socket2 = "0.5.5" dns-lookup = "2.0.4" base64ct = { version = "1.6.0", features = ["alloc"] } rustls-pemfile = "2.0.0" ryu = "1.0.15" itoa = "1.0.9" ring = "0.17.5" rustls-pki-types = "1.0.1" rustls = "0.22.0" rustls-native-certs = { version = "0.7.0", optional = true } webpki-roots = { version = "0.26.0", optional = true } chrono = { version = "0.4.30", optional = true } ureq = { version = "=2.9", optional = true } serde_json = { version = "1.0.108", optional = true } questdb-confstr = "0.1.0" rand = { version = "0.8.5", optional = true } [target.'cfg(windows)'.dependencies] winapi = { version = "0.3.9", features = ["ws2def"] } [build-dependencies] serde_json = { version = "1.0.108" } serde = { version = "1.0.193", features = ["derive"] } slugify = "0.1.0" indoc = "2.0.4" [dev-dependencies] mio = { version = "0.8.10", features = ["os-poll", "net"] } chrono = "0.4.31" tempfile = "3.2.0" [features] default = ["tls-webpki-certs", "ilp-over-http"] # Include support for ILP over HTTP. ilp-over-http = ["dep:ureq", "dep:serde_json", "dep:rand"] # Allow use OS-provided root TLS certificates tls-native-certs = ["dep:rustls-native-certs"] # Allow use of the `webpki-roots` crate to validate TLS certificates. tls-webpki-certs = ["dep:webpki-roots"] # Allow skipping verification of insecure certificates. insecure-skip-verify = [] # Enable code-generation in `build.rs` for additional tests. json_tests = [] # Enable methods to create timestamp objects from chrono::DateTime objects. chrono_timestamp = ["chrono"] [[example]] name = "basic" required-features = ["chrono_timestamp"] [[example]] name = "auth" required-features = ["chrono_timestamp"] [[example]] name = "auth_tls" required-features = ["chrono_timestamp"] [[example]] name = "http" required-features = ["ilp-over-http"]