[package]
name = "absolute_unit"
description = "A unit system for Rust's type system to catch unit errors in your physical calculations."
version = "0.12.1"
authors = ["Terrence Cole <terrence.d.cole@gmail.com>"]
edition = "2024"
readme = "README.md"
homepage = "https://crates.io/crates/absolute_unit"
documentation = "https://docs.rs/absolute_unit/latest/absolute_unit/"
repository = "https://codeberg.org/terrence/absolute_unit"
license = "MIT"
keywords = ["unit", "physics", "type", "simulation", "arithmetics"]
[features]
default = []
bevy_reflect = ["dep:bevy_reflect"]
mint = ["dep:mint"]
serde = ["dep:serde", "glam/serde"]
[dependencies]
approx = ">= 0.5"
glam = { version = ">= 0.30", features = ["approx", "mint"] }
hashbag = ">= 0.1"
num-traits = ">= 0.2"
bevy_reflect = { version = "0.18", features = ["glam"], optional = true }
mint = { version = ">= 0.5", optional = true }
serde = { version = ">= 1.0", features = ["derive"], optional = true }
[dev-dependencies]
anyhow = { version = "1", features = ["backtrace"] }
serde_json = { version = "1.0" }