[dependencies.bytemuck]
features = ["derive"]
optional = true
version = "1.18.0"
[dependencies.derive_tools]
optional = true
version = "~0.29.0"
[dependencies.mdmath_core]
features = ["index", "float", "inner_product", "approx", "general"]
optional = true
version = "~0.3.0"
[dependencies.mod_interface]
optional = true
version = "~0.25.0"
[dependencies.ndarray]
optional = true
version = "0.16.1"
[dependencies.num-traits]
optional = true
version = "0.2.19"
[dev-dependencies.test_tools]
version = "~0.10.0"
[features]
default = ["enabled"]
enabled = ["dep:ndarray", "dep:num-traits", "dep:bytemuck", "dep:mod_interface", "dep:mdmath_core", "dep:derive_tools"]
full = ["default"]
[lib]
name = "ndarray_cg"
path = "src/lib.rs"
[lints.clippy]
absolute_paths = "allow"
inline_always = "allow"
module_name_repetitions = "allow"
pedantic = "warn"
restriction = "warn"
single_call_fn = "allow"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
undocumented_unsafe_blocks = "deny"
[lints.rust]
future_incompatible = "deny"
rust_2018_idioms = "deny"
unsafe-code = "warn"
[package]
authors = ["Kostiantyn Mysnyk <wandalen@obox.systems>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Math for computer graphics based on `ndarray`. The approach used in ndarray for computer graphics math is highly flexible and performant, even though there are many specialized crates focused on game development and computer graphics."
edition = "2021"
keywords = ["math", "cg"]
license = "MIT"
name = "ndarray_cg"
readme = "readme.md"
repository = "https://github.com/Wandalen/cg_tools"
version = "0.3.0"
[[test]]
name = "tests"
path = "tests/tests.rs"