- used `syn::parse_quote!` instead of constructing `syn` structs directly. unsurprisingly, makes a world of difference! - code is, like, 1k lines shorter now - moved tests into dedicated crate - tweaked the tests even more, to represent complete lack of dependency on external crates
26 lines
784 B
TOML
26 lines
784 B
TOML
[package]
|
|
name = "nacfahi-tests"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
description = "Crate containing tests for nacfahi. Intended to ensure that exported macros are functioning properly in any environment"
|
|
|
|
[dependencies]
|
|
nacfahi = { path ="../nacfahi" }
|
|
static_assertions = "1.1.0"
|
|
approx = "0.5.1"
|
|
rand = "0.9.0"
|
|
typenum = { version = "1.18.0", optional = true }
|
|
generic-array = { version = "1.2.0", optional = true }
|
|
nalgebra = { version = "0.33.2", optional = true }
|
|
num-traits = { version = "0.2.19", optional = true }
|
|
|
|
[features]
|
|
default = ["alloc", "typenum", "generic-array", "nalgebra", "num-traits"]
|
|
alloc = ["nacfahi/alloc"]
|
|
typenum = ["dep:typenum"]
|
|
generic-array = ["dep:generic-array"]
|
|
nalgebra = ["dep:nalgebra"]
|
|
num-traits = ["dep:num-traits"]
|
|
|
|
[lints]
|
|
workspace = true
|