hafas 1.0.0

Client for the HAFAS ReST public transport API
Documentation
# 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.89"
name = "hafas"
version = "1.0.0"
authors = ["Daniel Schroeder"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Client for the HAFAS ReST public transport API"
readme = "README.md"
keywords = [
    "hafas",
    "transit",
    "public-transport",
    "realtime",
    "api",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
]
license = "Apache-2.0"
repository = "https://github.com/udondan/rmv"

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

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

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

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

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

[dependencies.jiff]
version = "1.0.3"
features = ["std"]
default-features = false

[dependencies.reqwest]
version = "0.13.5"
features = [
    "gzip",
    "http2",
    "rustls-no-provider",
]
default-features = false

[dependencies.rustls]
version = "0.23.46"
features = [
    "ring",
    "std",
    "tls12",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.154"

[dependencies.thiserror]
version = "2.0.21"

[dependencies.tracing]
version = "0.1.44"
features = ["std"]
default-features = false

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

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

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

[dev-dependencies.tracing-subscriber]
version = "=0.3.23"
features = [
    "fmt",
    "std",
]
default-features = false

[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"