[package]
edition = "2021"
rust-version = "1.75"
name = "space-units"
version = "0.1.2"
authors = [
"Jan Piotrzkowski (babilonczyk)",
"StateRuntime",
]
build = false
exclude = [
"target/",
".github/",
".claude/",
"CLAUDE.md",
"CONTRIBUTING.md",
"SECURITY.md",
"docs/AGENT.md",
"scripts/",
"justfile",
"deny.toml",
"rustfmt.toml",
"rust-toolchain.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe units of measure for aerospace quantities"
homepage = "https://github.com/stateruntime/space-units"
documentation = "https://docs.rs/space-units"
readme = "README.md"
keywords = [
"units",
"aerospace",
"physics",
"dimensional-analysis",
"space",
]
categories = [
"science",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/stateruntime/space-units"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
[lib]
name = "space_units"
path = "src/lib.rs"
[[example]]
name = "basics"
path = "examples/basics.rs"
[[example]]
name = "electromagnetic"
path = "examples/electromagnetic.rs"
[[example]]
name = "formatting"
path = "examples/formatting.rs"
[[example]]
name = "orbital_mechanics"
path = "examples/orbital_mechanics.rs"
[[example]]
name = "propulsion"
path = "examples/propulsion.rs"
[[test]]
name = "behavior"
path = "tests/behavior.rs"
[dependencies]
[dev-dependencies.behave]
version = "0.8"
[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1