# 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" name = "diman" version = "0.5.1" authors = ["Toni Peter "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Zero-cost compile-time dimensional analysis." readme = "README.md" keywords = [ "units", "dimensional-analysis", ] categories = ["science"] license = "MIT OR Apache-2.0" repository = "https://github.com/tehforsch/diman" [lib] name = "diman" path = "src/lib.rs" [[test]] name = "mod" path = "tests/mod.rs" [dependencies.diman_lib] version = "0.5.1" [dependencies.diman_unit_system] version = "0.5.1" default-features = false [dependencies.glam] version = "0.24.2" optional = true [dependencies.hdf5] version = "0.9.0" optional = true package = "hdf5-metno" [dependencies.mpi] version = "0.7" features = ["derive"] optional = true default-features = false [dependencies.once_cell] version = "1.18.0" optional = true [dependencies.rand] version = "0.8.5" optional = true [dependencies.serde] version = "1.0.193" features = ["derive"] optional = true [dev-dependencies.lazy_static] version = "1.4.0" [dev-dependencies.serde_yaml] version = "0.9.27" [features] default = [ "f32", "f64", "si", "std", ] f32 = ["diman_unit_system/f32"] f64 = ["diman_unit_system/f64"] glam = [ "dep:glam", "diman_unit_system/glam", ] glam-dvec2 = [ "glam", "f64", "diman_unit_system/glam-dvec2", ] glam-dvec3 = [ "glam", "f64", "diman_unit_system/glam-dvec3", ] glam-vec2 = [ "glam", "f32", "diman_unit_system/glam-vec2", ] glam-vec3 = [ "glam", "f32", "diman_unit_system/glam-vec3", ] hdf5 = [ "dep:hdf5", "diman_unit_system/hdf5", ] mpi = [ "dep:once_cell", "dep:mpi", "diman_unit_system/mpi", ] num-traits-libm = [ "diman_unit_system/num-traits-libm", "diman_lib/num-traits-libm", ] rand = [ "dep:rand", "diman_unit_system/rand", ] rational-dimensions = ["diman_unit_system/rational-dimensions"] serde = [ "dep:serde", "diman_unit_system/serde", ] si = [] std = [ "diman_unit_system/std", "diman_lib/std", ]