# 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"
rust-version = "1.70.0"
name = "eccodes"
version = "0.12.0"
authors = ["Jakub Lewandowski <scaleweather@gmail.com>"]
build = false
exclude = [
    ".github/*",
    ".vscode/*",
    ".idea/*",
    "data/*",
]
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",
    "experimental_index",
    "message_ndarray",
]

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

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

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

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

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

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

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

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

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

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

[dependencies.ndarray]
version = "0.16"
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 = "1.0"
default-features = false

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

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

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

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

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

[dev-dependencies.testing_logger]
version = "0.1"

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