river-data-core 0.10.0

Client, sync runner, and shared types for the river-data platform
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.95"
name = "river-data-core"
version = "0.10.0"
build = false
exclude = [
    "r_reference/**",
    "tests/fixtures/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Client, sync runner, and shared types for the river-data platform"
readme = "README.md"
keywords = [
    "sync",
    "client",
    "sensors",
    "environmental",
    "control-plane",
]
categories = [
    "api-bindings",
    "science",
]
license = "MIT"
repository = "https://github.com/RIVER-EPFL/river-data-core"

[features]
client = [
    "dep:reqwest",
    "dep:tokio",
    "dep:async-trait",
    "dep:dotenvy",
    "dep:tracing-subscriber",
    "tokio/rt-multi-thread",
]
default = []
openapi = ["dep:utoipa"]

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

[[example]]
name = "csv_folder"
path = "examples/csv_folder.rs"
required-features = ["client"]

[[example]]
name = "minimal_backend"
path = "examples/minimal_backend.rs"
required-features = ["client"]

[[example]]
name = "reconciled_backend"
path = "examples/reconciled_backend.rs"
required-features = ["client"]

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

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

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dotenvy]
version = "0.15"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.43"
features = [
    "rt",
    "time",
    "signal",
    "sync",
    "macros",
]
optional = true

[dependencies.tracing]
version = "0.1"

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

[dependencies.utoipa]
version = "5.3"
features = [
    "chrono",
    "uuid",
]
optional = true

[dependencies.uuid]
version = "1.11"
features = [
    "v4",
    "serde",
]

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

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

[dev-dependencies.wiremock]
version = "0.6"

[lints.rust]
unsafe_code = "forbid"