# 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 = "dial9-viewer"
version = "0.3.3"
build = "build.rs"
exclude = ["src/bin/dev_server.rs"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "dial9-viewer"
description = "CLI trace viewer and S3 browser for dial9-tokio-telemetry"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/dial9-rs/dial9-tokio-telemetry"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }-v{ version }{ archive-suffix }"

[features]
dev-server = [
    "dep:s3s",
    "dep:s3s-fs",
    "dep:s3s-aws",
    "dep:tempfile",
]

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

[[bin]]
name = "dial9-viewer"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1"

[dependencies.aws-config]
version = "1"
features = ["behavior-version-latest"]

[dependencies.aws-sdk-s3]
version = "1"
features = ["behavior-version-latest"]

[dependencies.axum]
version = "0.8"

[dependencies.axum-extra]
version = "0.10"
features = ["query"]

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.flate2]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.mime_guess]
version = "2"

[dependencies.rust-embed]
version = "8"
features = ["mime-guess"]

[dependencies.s3s]
version = "0.13.0"
optional = true

[dependencies.s3s-aws]
version = "0.13.0"
optional = true

[dependencies.s3s-fs]
version = "0.13.0"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"
optional = true

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

[dependencies.tower-http]
version = "0.6"
features = ["fs"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dev-dependencies.assert2]
version = "0.4"

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false

[dev-dependencies.s3s]
version = "0.13.0"

[dev-dependencies.s3s-aws]
version = "0.13.0"

[dev-dependencies.s3s-fs]
version = "0.13.0"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.urlencoding]
version = "2"
