# 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.94"
name = "rfham-bands"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data types to represent band plans."
homepage = "https://simonkjohnston.life/rust-rfham"
readme = "README.md"
keywords = [
    "ham",
    "radio",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/johnstonskj/rust-rfham"

[package.metadata.docs.rs]
features = ["std"]
rustdoc-args = ["--generate-link-to-definition"]

[package.metadata.playground]
features = ["std"]

[features]
default = ["std"]
no-color = [
    "std",
    "colored/no-color",
]
std = [
    "serde/std",
    "serde_json/std",
    "serde_with/std",
    "thiserror/std",
    "uom/std",
    "colored",
]

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

[dependencies.colored]
version = "3.1"
optional = true

[dependencies.rfham-core]
version = "0.1.1"

[dependencies.rfham-itu]
version = "0.1.2"

[dependencies.rfham-markdown]
version = "0.1.1"

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false

[dependencies.serde_with]
version = "3.18"
features = [
    "alloc",
    "macros",
]
default-features = false

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

[dependencies.uom]
version = "0.38"
features = [
    "autoconvert",
    "f64",
    "serde",
    "si",
]
default-features = false

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"

[lints.clippy]
all = "warn"

[lints.rust]
absolute_paths_not_starting_with_crate = "warn"
anonymous_parameters = "deny"
bare_trait_objects = "deny"
deref_nullptr = "deny"
drop_bounds = "deny"
dyn_drop = "deny"
elided_lifetimes_in_paths = "warn"
ellipsis_inclusive_range_patterns = "deny"
explicit_outlives_requirements = "warn"
exported_private_dependencies = "deny"
macro_use_extern_crate = "warn"
missing_debug_implementations = "warn"
noop_method_call = "warn"
rust_2021_prelude_collisions = "warn"
semicolon_in_expressions_from_macros = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unexpected_cfgs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "forbid"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1

[lints.rust.unused]
level = "warn"
priority = -1

[lints.rustdoc]
all = "warn"
broken_intra_doc_links = "warn"
missing_crate_level_docs = "warn"
