# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70.0" name = "clickhouse" version = "0.13.1" authors = [ "ClickHouse Contributors", "Paul Loyd ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Official Rust client for ClickHouse DB" homepage = "https://clickhouse.com" readme = "README.md" keywords = [ "clickhouse", "database", "driver", "tokio", "hyper", ] license = "MIT OR Apache-2.0" repository = "https://github.com/ClickHouse/clickhouse-rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.release] debug = 2 [lib] name = "clickhouse" path = "src/lib.rs" [[example]] name = "async_insert" path = "examples/async_insert.rs" [[example]] name = "clickhouse_cloud" path = "examples/clickhouse_cloud.rs" required-features = ["rustls-tls"] [[example]] name = "clickhouse_settings" path = "examples/clickhouse_settings.rs" [[example]] name = "custom_http_client" path = "examples/custom_http_client.rs" [[example]] name = "custom_http_headers" path = "examples/custom_http_headers.rs" [[example]] name = "data_types_derive_containers" path = "examples/data_types_derive_containers.rs" [[example]] name = "data_types_derive_simple" path = "examples/data_types_derive_simple.rs" required-features = [ "time", "uuid", ] [[example]] name = "enums" path = "examples/enums.rs" [[example]] name = "mock" path = "examples/mock.rs" required-features = ["test-util"] [[example]] name = "query_id" path = "examples/query_id.rs" [[example]] name = "session_id" path = "examples/session_id.rs" [[example]] name = "usage" path = "examples/usage.rs" [[test]] name = "it" path = "tests/it/main.rs" [[bench]] name = "common" path = "benches/common.rs" [[bench]] name = "insert" path = "benches/insert.rs" harness = false [[bench]] name = "select" path = "benches/select.rs" harness = false [[bench]] name = "select_numbers" path = "benches/select_numbers.rs" harness = false [dependencies.bstr] version = "1.2" default-features = false [dependencies.bytes] version = "1.5.0" [dependencies.cityhash-rs] version = "=1.0.1" optional = true [dependencies.clickhouse-derive] version = "0.2.0" [dependencies.futures] version = "0.3.5" [dependencies.futures-channel] version = "0.3.30" [dependencies.http-body-util] version = "0.1.2" [dependencies.hyper] version = "1.4" [dependencies.hyper-rustls] version = "0.27.2" features = [ "http1", "tls12", ] optional = true default-features = false [dependencies.hyper-tls] version = "0.6.0" optional = true [dependencies.hyper-util] version = "0.1.6" features = [ "client-legacy", "http1", ] [dependencies.lz4_flex] version = "0.11.3" features = ["std"] optional = true default-features = false [dependencies.quanta] version = "0.12" optional = true [dependencies.replace_with] version = "0.1.7" [dependencies.rustls] version = "0.23" optional = true default-features = false [dependencies.sealed] version = "0.6" [dependencies.serde] version = "1.0.106" [dependencies.serde_json] version = "1.0.68" optional = true [dependencies.sha-1] version = "0.10" optional = true [dependencies.static_assertions] version = "1.1" [dependencies.thiserror] version = "1.0.16" [dependencies.time] version = "0.3" optional = true [dependencies.tokio] version = "1.0.1" features = [ "rt", "macros", ] [dependencies.url] version = "2.1.1" [dependencies.uuid] version = "1" optional = true [dev-dependencies.criterion] version = "0.5.0" [dev-dependencies.fixnum] version = "0.9.2" features = [ "serde", "i32", "i64", "i128", ] [dev-dependencies.hyper] version = "1.1" features = ["server"] [dev-dependencies.rand] version = "0.8.5" features = ["small_rng"] [dev-dependencies.serde] version = "1.0.106" features = ["derive"] [dev-dependencies.serde_bytes] version = "0.11.4" [dev-dependencies.serde_json] version = "1" [dev-dependencies.serde_repr] version = "0.1.7" [dev-dependencies.time] version = "0.3.17" features = [ "macros", "rand", ] [dev-dependencies.tokio] version = "1.0.1" features = [ "full", "test-util", ] [dev-dependencies.uuid] version = "1" features = [ "v4", "serde", ] [features] default = ["lz4"] inserter = ["dep:quanta"] lz4 = [ "dep:lz4_flex", "dep:cityhash-rs", ] native-tls = ["dep:hyper-tls"] rustls-tls = [ "rustls-tls-aws-lc", "rustls-tls-webpki-roots", ] rustls-tls-aws-lc = [ "dep:rustls", "dep:hyper-rustls", "hyper-rustls?/aws-lc-rs", ] rustls-tls-native-roots = [ "dep:rustls", "dep:hyper-rustls", "hyper-rustls?/native-tokio", ] rustls-tls-ring = [ "dep:rustls", "dep:hyper-rustls", "hyper-rustls?/ring", ] rustls-tls-webpki-roots = [ "dep:rustls", "dep:hyper-rustls", "hyper-rustls?/webpki-tokio", ] test-util = ["hyper/server"] time = ["dep:time"] uuid = ["dep:uuid"] watch = [ "dep:sha-1", "dep:serde_json", "serde/derive", ] [lints.clippy] undocumented_unsafe_blocks = "warn" [lints.rust] unexpected_cfgs = "allow" unreachable_pub = "warn" [lints.rust.rust_2018_idioms] level = "warn" priority = -1