# 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.1"
name = "eccodes"
version = "0.14.0-alpha.1"
authors = ["Jakub Lewandowski <scaleweather@gmail.com>"]
build = false
exclude = [
    ".github/*",
    ".vscode/*",
    ".idea/*",
    "data/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial high-level Rust bindings of the latest ecCodes release"
readme = "README.md"
keywords = [
    "eccodes",
    "grib",
    "bufr",
    "meteorology",
    "weather",
]
categories = [
    "api-bindings",
    "external-ffi-bindings",
    "filesystem",
    "encoding",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/ScaleWeather/eccodes"

[package.metadata.docs.rs]
features = [
    "docs",
    "ndarray",
]

[features]
default = ["ndarray"]
docs = ["eccodes-sys/docs"]
ndarray = ["dep:ndarray"]

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

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

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

[[bench]]
name = "main"
path = "benches/main.rs"
harness = false

[dependencies.eccodes-sys]
version = "0.7.0"
default-features = false

[dependencies.errno]
version = "0.3"
default-features = false

[dependencies.fallible-iterator]
version = "0.3"
default-features = false

[dependencies.libc]
version = "0.2"
default-features = false

[dependencies.ndarray]
version = "0.17"
features = ["std"]
optional = true
default-features = false

[dependencies.num-derive]
version = "0.4"
default-features = false

[dependencies.num-traits]
version = "0.2"
default-features = false

[dependencies.thiserror]
version = "2.0"
default-features = false

[dependencies.tracing]
version = "0.1"
features = [
    "std",
    "attributes",
    "log",
]
default-features = false

[dev-dependencies.anyhow]
version = "1.0"
features = ["backtrace"]

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.float-cmp]
version = "0.10"

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.reqwest]
version = "0.13"
features = ["rustls"]
