# 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"
name = "ldap-rs"
version = "0.6.0"
authors = ["Dmitry Pankratov <dmitry@pankratov.net>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LDAP client for Rust"
documentation = "https://docs.rs/ldap-rs"
readme = "README.md"
keywords = [
    "ldap",
    "client",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/ancwrd1/ldap-rs"

[package.metadata.docs.rs]
features = [
    "tls-rustls",
    "tls-native-tls",
]

[features]
default = ["tls-rustls"]
gssapi = ["dep:cross-krb5"]
tls-native-tls = [
    "dep:native-tls",
    "dep:tokio-native-tls",
]
tls-rustls = [
    "dep:rustls",
    "dep:tokio-rustls",
    "dep:rustls-native-certs",
    "dep:rustls-pki-types",
]

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

[[example]]
name = "bind"
path = "examples/bind.rs"

[[example]]
name = "modify"
path = "examples/modify.rs"

[[example]]
name = "root_dse"
path = "examples/root_dse.rs"

[[example]]
name = "search_paged_tls"
path = "examples/search_paged_tls.rs"

[[example]]
name = "search_start_tls"
path = "examples/search_start_tls.rs"

[dependencies.bytes]
version = "1"

[dependencies.cross-krb5]
version = "0.4"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.log]
version = "0.4"

[dependencies.native-tls]
version = "0.2"
optional = true

[dependencies.once_cell]
version = "1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.pest]
version = "2"

[dependencies.pest_derive]
version = "2"

[dependencies.rasn]
version = "0.28"

[dependencies.rasn-ldap]
version = "0.28"

[dependencies.regex]
version = "1"

[dependencies.rustls]
version = "0.23"
optional = true

[dependencies.rustls-native-certs]
version = "0.8"
optional = true

[dependencies.rustls-pki-types]
version = "1"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "time",
    "rt-multi-thread",
]

[dependencies.tokio-native-tls]
version = "0.3"
optional = true

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]

[dev-dependencies.pretty_env_logger]
version = "0.5"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]
