# 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"
name = "oracledb-protocol"
version = "0.1.1"
build = false
exclude = [
    "tests/",
    "fuzz/",
    "proptest-regressions/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sans-I/O Oracle TNS/TTC protocol core for the oracledb crate."
homepage = "https://github.com/MuhDur/rust-oracledb"
documentation = "https://docs.rs/oracledb-protocol"
readme = false
keywords = [
    "oracle",
    "database",
    "protocol",
    "tns",
    "ttc",
]
categories = [
    "database",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MuhDur/rust-oracledb"

[features]
cassette = []
default = []
experimental = [
    "dep:cbc",
    "dep:der",
    "dep:hmac",
]
simd-decode = ["dep:simdutf8"]

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

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

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

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

[dependencies.aes]
version = "0.8"

[dependencies.cbc]
version = "0.1"
optional = true

[dependencies.der]
version = "0.7"
features = ["oid"]
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.md-5]
version = "0.10"

[dependencies.pbkdf2]
version = "0.12"

[dependencies.rand]
version = "0.8"

[dependencies.rustls-pemfile]
version = "2.2"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.simdutf8]
version = "0.1.5"
optional = true

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.allocation-counter]
version = "0.8"

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.pkcs8]
version = "0.10"

[dev-dependencies.proptest]
version = "1.11"

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.x509-cert]
version = "0.2"

[lints.clippy]
dbg_macro = "deny"
todo = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]
