# 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 = "rs-consul"
version = "0.14.0"
authors = ["Roblox"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "This crate provides access to a set of strongly typed apis to interact with consul (https://www.consul.io/)"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Roblox/rs-consul"

[features]
default = []
metrics = []
trace = ["dep:opentelemetry"]

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "test_runner"
path = "tests/test_runner.rs"

[dependencies.base64]
version = "0.22"

[dependencies.bon]
version = "3"

[dependencies.http]
version = "1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.hyper]
version = "1"
features = ["full"]

[dependencies.hyper-rustls]
version = "0.27"
features = [
    "webpki-roots",
    "ring",
    "http1",
]
default-features = false

[dependencies.hyper-util]
version = "0.1"
features = [
    "client",
    "client-legacy",
    "tokio",
    "http2",
]

[dependencies.opentelemetry]
version = "0.32"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.slog-scope]
version = "4"

[dependencies.smart-default]
version = "0.7"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.ureq]
version = "3"
features = ["json"]

[dev-dependencies.tokio-test]
version = "0.4"
