# 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.85.0"
name = "foxglove"
version = "0.25.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Foxglove SDK"
readme = "README.md"
license = "MIT"
repository = "https://github.com/foxglove/foxglove-sdk"
resolver = "2"

[package.metadata.docs.rs]
features = ["full"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
_protocol = ["_remote-common"]
_remote-common = [
    "dep:base64",
    "dep:flume",
    "dep:futures-util",
    "dep:tokio",
    "dep:tokio-util",
    "dep:serde_repr",
    "dep:serde_with",
]
aws-lc-rs = [
    "rustls?/aws-lc-rs",
    "tokio-rustls?/aws-lc-rs",
]
chrono = ["dep:chrono"]
data_provider = ["remote_data_loader_backend"]
default = [
    "aws-lc-rs",
    "derive",
    "lz4",
    "websocket",
    "zstd",
]
derive = ["dep:foxglove_derive"]
full = [
    "aws-lc-rs",
    "chrono",
    "data_provider",
    "derive",
    "img2yuv",
    "live_visualization",
    "lz4",
    "remote-access",
    "schemars",
    "schemars-chrono",
    "serde",
    "stream",
    "sysinfo",
    "websocket",
    "websocket-tls",
    "zstd",
]
img2yuv = [
    "img2yuv-png",
    "img2yuv-jpeg",
    "img2yuv-webp",
    "img2yuv-ros1",
    "img2yuv-ros2",
]
img2yuv-core = [
    "dep:image",
    "dep:yuv",
]
img2yuv-jpeg = [
    "img2yuv-core",
    "image/jpeg",
]
img2yuv-png = [
    "img2yuv-core",
    "image/png",
]
img2yuv-ros1 = [
    "img2yuv-core",
    "dep:regex",
]
img2yuv-ros2 = [
    "img2yuv-core",
    "dep:cdr",
    "dep:regex",
]
img2yuv-webp = [
    "img2yuv-core",
    "image/webp",
]
live_visualization = ["websocket"]
lz4 = ["mcap/lz4"]
remote-access = [
    "_remote-common",
    "img2yuv",
    "dep:livekit",
    "dep:libwebrtc",
    "dep:reqwest",
    "dep:rustls",
    "dep:semver",
]
remote_data_loader_backend = [
    "dep:chrono",
    "chrono/serde",
    "dep:serde_with",
    "dep:serde-constant",
]
require-cuda = []
ring = [
    "rustls?/ring",
    "tokio-rustls?/ring",
]
schemars = ["dep:schemars"]
schemars-chrono = [
    "schemars",
    "chrono",
    "schemars/chrono04",
]
serde = ["dep:base64"]
stream = [
    "dep:futures",
    "dep:tokio",
]
sysinfo = [
    "dep:sysinfo",
    "dep:tokio",
    "tokio/rt-multi-thread",
    "tokio/time",
]
unstable = []
websocket = [
    "_remote-common",
    "dep:tokio-tungstenite",
]
websocket-tls = [
    "websocket",
    "tokio-tungstenite/rustls-tls-native-roots",
    "dep:rustls",
    "dep:tokio-rustls",
]
zstd = ["mcap/zstd"]

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

[dependencies.arc-swap]
version = "1.7.1"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bimap]
version = "0.6.3"

[dependencies.bytes]
version = "1.11.1"

[dependencies.cdr]
version = "0.2.4"
optional = true

[dependencies.chrono]
version = "0.4.39"
optional = true

[dependencies.delegate]
version = "0.13.2"

[dependencies.flume]
version = "0.11.1"
optional = true

[dependencies.foxglove_derive]
version = "0.25.0"
optional = true

[dependencies.futures]
version = "0.3.31"
optional = true

[dependencies.futures-util]
version = "0.3.31"
features = [
    "sink",
    "std",
]
optional = true

[dependencies.image]
version = "0.25.9"
optional = true
default-features = false

[dependencies.indexmap]
version = "2"

[dependencies.libwebrtc]
version = "0.3.30"
optional = true

[dependencies.livekit]
version = "0.7.37"
features = ["rustls-tls-native-roots"]
optional = true

[dependencies.mcap]
version = "0.24"
default-features = false

[dependencies.parking_lot]
version = "0.12.4"

[dependencies.prost]
version = "0.14"

[dependencies.prost-types]
version = "0.14"

[dependencies.regex]
version = "1"
optional = true

[dependencies.reqwest]
version = "0.13.1"
features = [
    "http2",
    "json",
    "query",
    "rustls-no-provider",
    "stream",
    "system-proxy",
]
optional = true
default-features = false

[dependencies.rustls]
version = "0.23"
features = [
    "logging",
    "std",
    "tls12",
]
optional = true
default-features = false

[dependencies.schemars]
version = "1.0.4"
optional = true

[dependencies.semver]
version = "1.0"
optional = true

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

[dependencies.serde-constant]
version = "0.1.0"
optional = true

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_repr]
version = "0.1.19"
optional = true

[dependencies.serde_with]
version = ">=3.14, <3.18"
features = [
    "macros",
    "base64",
]
optional = true

[dependencies.smallbytes]
version = "0.1.0"

[dependencies.smallvec]
version = "1.15.1"

[dependencies.sysinfo]
version = "=0.36.1"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.47"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "signal",
    "time",
]
optional = true

[dependencies.tokio-rustls]
version = "0.26.0"
features = [
    "logging",
    "tls12",
]
optional = true
default-features = false

[dependencies.tokio-tungstenite]
version = "0.28"
optional = true

[dependencies.tokio-util]
version = "0.7"
features = [
    "io",
    "rt",
]
optional = true

[dependencies.tracing]
version = "0.1"
features = ["log"]

[dependencies.urlencoding]
version = "2.1.3"

[dependencies.yuv]
version = "0.8.9"
optional = true

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.axum]
version = "0.8.8"

[dev-dependencies.hexdump]
version = "0.1.2"

[dev-dependencies.insta]
version = "1.42.2"
features = ["json"]

[dev-dependencies.maplit]
version = "1.0.2"

[dev-dependencies.rcgen]
version = "0.14.3"
features = [
    "crypto",
    "pem",
    "x509-parser",
]

[dev-dependencies.reqwest]
version = "0.13.1"
features = ["rustls"]
default-features = false

[dev-dependencies.serde_cbor]
version = "0.11.2"

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

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

[dev-dependencies.tracing-test]
version = "0.2.5"

[lints.clippy]
assigning_clones = "warn"
borrow_as_ptr = "warn"
cloned_instead_of_copied = "warn"
copy_iterator = "warn"
expl_impl_clone_on_copy = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
flat_map_option = "warn"
implicit_clone = "warn"
inconsistent_struct_constructor = "warn"
inefficient_to_string = "warn"
invalid_upcast_comparisons = "warn"
iter_not_returning_iterator = "warn"
macro_use_imports = "warn"
manual_let_else = "warn"
manual_ok_or = "warn"
match_bool = "warn"
match_same_arms = "warn"
mismatching_type_param_order = "warn"
mut_mut = "warn"
needless_for_each = "warn"
no_mangle_with_rust_abi = "warn"
option_as_ref_cloned = "warn"
ref_binding_to_reference = "warn"
ref_option = "warn"
ref_option_ref = "warn"
return_self_not_must_use = "warn"
unnecessary_literal_bound = "warn"
unused_async = "warn"
