# 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 = "ntrip-client"
version = "0.2.0"
authors = [
    "Guillaume W. Bres <guillaume.bressaix@gmail.com>",
    "Ryan Kurte <ryan@kurte.nz>",
]
build = false
exclude = ["tools/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "NTRIP client"
homepage = "https://github.com/nav-solutions"
readme = "README.md"
keywords = [
    "geo",
    "rtcm",
    "tcp",
    "tokio",
]
categories = [
    "science",
    "science::geo",
]
license = "MPL-2.0"
repository = "https://github.com/nav-solutions/ntrip-client"

[package.metadata]
msrv = "1.82"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docrs",
    "--generate-link-to-definition",
]

[features]
clap = ["dep:clap"]
default = [
    "log",
    "clap",
    "serde",
]
log = [
    "dep:tracing",
    "dep:tracing-subscriber",
]
serde = [
    "dep:serde",
    "rtcm-rs/serde",
    "geoutils/serde",
]

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

[[example]]
name = "simple-cli"
path = "examples/simple-cli.rs"
required-features = [
    "clap",
    "log",
]

[dependencies.base64]
version = "0.22"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.geoutils]
version = "0.5"

[dependencies.http]
version = "1.3"

[dependencies.isocountry]
version = "0.3"

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]

[dependencies.rtcm-rs]
version = "0.11"

[dependencies.rustls]
version = "0.23.31"

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

[dependencies.strum]
version = "0.27.2"
features = ["derive"]

[dependencies.thiserror]
version = "2"

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

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

[dependencies.tracing]
version = "0.1.41"
features = ["log"]
optional = true

[dependencies.tracing-subscriber]
version = "0.3.17"
features = [
    "fmt",
    "env-filter",
]
optional = true

[dependencies.webpki-roots]
version = "1"

[dev-dependencies.anyhow]
version = "1"
