# 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 = "2024"
rust-version = "1.88"
name = "tds-protocol"
version = "0.17.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure MS-TDS protocol implementation for SQL Server (no_std compatible)"
readme = "README.md"
keywords = [
    "tds",
    "sql-server",
    "protocol",
    "no_std",
]
categories = [
    "parser-implementations",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/praxiomlabs/rust-mssql-driver"

[package.metadata.docs.rs]
all-features = true

[package.metadata.cargo-machete]
ignored = ["criterion"]

[features]
alloc = []
default = [
    "std",
    "encoding",
]
encoding = ["dep:encoding_rs"]
std = []

[lib]
name = "tds_protocol"
path = "src/lib.rs"

[[bench]]
name = "protocol"
path = "benches/protocol.rs"
harness = false

[dependencies.bitflags]
version = "2.6"

[dependencies.bytes]
version = "1.9"

[dependencies.encoding_rs]
version = "0.8"
optional = true

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]

[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
panic = "warn"
todo = "warn"
unwrap_used = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
