[[bench]]
harness = false
name = "client"
path = "benches/client.rs"
[dependencies.bytes]
version = "1.9"
[dependencies.chrono]
default-features = false
features = ["std"]
optional = true
version = "0.4"
[dependencies.futures-core]
version = "0.3"
[dependencies.lru]
version = "0.16"
[dependencies.mssql-auth]
version = "0.6.0"
[dependencies.mssql-codec]
version = "0.6.0"
[dependencies.mssql-tls]
optional = true
version = "0.6.0"
[dependencies.mssql-types]
version = "0.6.0"
[dependencies.once_cell]
version = "1.20"
[dependencies.opentelemetry]
optional = true
version = "0.31"
[dependencies.opentelemetry_sdk]
optional = true
version = "0.31"
[dependencies.regex]
version = "1.11"
[dependencies.rust_decimal]
optional = true
version = "1.36"
[dependencies.tds-protocol]
version = "0.6.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
features = ["full"]
version = "1.48"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-opentelemetry]
optional = true
version = "0.32"
[dev-dependencies.chrono]
default-features = false
features = ["std"]
version = "0.4"
[dev-dependencies.criterion]
features = ["async_tokio"]
version = "0.7"
[dev-dependencies.mssql-derive]
version = "0.6.0"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.rsa]
features = ["sha2"]
version = "0.9"
[dev-dependencies.rust_decimal]
version = "1.36"
[dev-dependencies.sha2]
version = "0.10"
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tracing-subscriber]
version = "0.3"
[dev-dependencies.uuid]
features = ["v4"]
version = "1.11"
[[example]]
name = "azure_sql"
path = "examples/azure_sql.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "bulk_insert"
path = "examples/bulk_insert.rs"
[[example]]
name = "collation_encoding"
path = "examples/collation_encoding.rs"
[[example]]
name = "derive_macros"
path = "examples/derive_macros.rs"
[[example]]
name = "error_handling"
path = "examples/error_handling.rs"
[[example]]
name = "streaming"
path = "examples/streaming.rs"
[[example]]
name = "transactions"
path = "examples/transactions.rs"
[features]
always-encrypted = ["mssql-auth/always-encrypted"]
chrono = ["mssql-types/chrono", "dep:chrono"]
decimal = ["mssql-types/decimal", "dep:rust_decimal"]
default = ["chrono", "uuid", "decimal", "encoding", "tls"]
encoding = ["tds-protocol/encoding", "mssql-types/encoding"]
json = ["mssql-types/json"]
otel = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:tracing-opentelemetry"]
tls = ["dep:mssql-tls"]
uuid = ["mssql-types/uuid"]
zeroize = ["mssql-auth/zeroize"]
[lib]
name = "mssql_client"
path = "src/lib.rs"
[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
panic = "warn"
todo = "warn"
unwrap_used = "warn"
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["database", "asynchronous"]
description = "High-level async SQL Server client with type-state connection management"
edition = "2024"
keywords = ["sql-server", "mssql", "database", "async", "tokio"]
license = "MIT OR Apache-2.0"
name = "mssql-client"
readme = "README.md"
repository = "https://github.com/praxiomlabs/rust-mssql-driver"
rust-version = "1.85"
version = "0.6.0"
[package.metadata.cargo-machete]
ignored = ["tokio-test", "mssql-derive", "opentelemetry_sdk", "tracing-opentelemetry", "mssql-tls"]
[[test]]
name = "always_encrypted"
path = "tests/always_encrypted.rs"
[[test]]
name = "azure_sql"
path = "tests/azure_sql.rs"
[[test]]
name = "collation_test"
path = "tests/collation_test.rs"
[[test]]
name = "config"
path = "tests/config.rs"
[[test]]
name = "edge_cases"
path = "tests/edge_cases.rs"
[[test]]
name = "error_handling"
path = "tests/error_handling.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "protocol_conformance"
path = "tests/protocol_conformance.rs"
[[test]]
name = "resilience"
path = "tests/resilience.rs"
[[test]]
name = "stress"
path = "tests/stress.rs"
[[test]]
name = "version_compatibility"
path = "tests/version_compatibility.rs"