# 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"
name = "dps-units"
version = "0.1.0"
authors = ["Mikalai Seva"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Newtype wrappers for physical units used in dive calculations"
readme = "README.md"
keywords = [
    "diving",
    "dive-planning",
    "scuba",
    "units",
]
categories = ["science"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/asakura/dps"

[features]
approx = ["dep:approx"]
serde = ["dep:serde"]

[lib]
name = "dps_units"
path = "src/lib.rs"
doctest = false

[dependencies.approx]
version = "0.5"
optional = true

[dependencies.ryu]
version = "1.0"

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

[dependencies.thiserror]
version = "2.0"

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

[dev-dependencies.rstest]
version = "0.26"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
await_holding_lock = "deny"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
dbg_macro = "deny"
exit = "deny"
expect_used = "deny"
large_futures = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
mem_forget = "deny"
multiple_crate_versions = "allow"
panic = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "deny"
priority = -1

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

[lints.rust]
missing_copy_implementations = "deny"
missing_debug_implementations = "deny"
missing_docs = "deny"
non_ascii_idents = "forbid"
unfulfilled_lint_expectations = "deny"
unsafe_code = "forbid"
warnings = "deny"

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

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

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

[lints.rustdoc.all]
level = "deny"
priority = -1
