| 1 |
[package] |
| 2 |
name = "nalgebra" |
| 3 |
version = "0.34.1" |
| 4 |
authors = ["Sébastien Crozet <[email protected]>"] |
| 5 |
|
| 6 |
description = "General-purpose linear algebra library with transformations and statically-sized or dynamically-sized matrices." |
| 7 |
documentation = "https://www.nalgebra.rs/docs" |
| 8 |
homepage = "https://nalgebra.rs" |
| 9 |
repository = "https://github.com/dimforge/nalgebra" |
| 10 |
readme = "README.md" |
| 11 |
categories = ["science", "mathematics", "wasm", "no-std"] |
| 12 |
keywords = ["linear", "algebra", "matrix", "vector", "math"] |
| 13 |
license = "Apache-2.0" |
| 14 |
edition = "2024" |
| 15 |
rust-version = "1.87.0" |
| 16 |
exclude = ["/ci/*", "/.travis.yml", "/Makefile"] |
| 17 |
|
| 18 |
[badges] |
| 19 |
maintenance = { status = "actively-developed" } |
| 20 |
|
| 21 |
[lib] |
| 22 |
name = "nalgebra" |
| 23 |
path = "src/lib.rs" |
| 24 |
|
| 25 |
[features] |
| 26 |
default = ["std", "macros"] |
| 27 |
std = [ |
| 28 |
"matrixmultiply", |
| 29 |
"num-traits/std", |
| 30 |
"num-complex/std", |
| 31 |
"num-rational/std", |
| 32 |
"approx/std", |
| 33 |
"simba/std", |
| 34 |
"glam014?/std", |
| 35 |
"glam015?/std", |
| 36 |
"glam016?/std", |
| 37 |
"glam017?/std", |
| 38 |
"glam018?/std", |
| 39 |
"glam019?/std", |
| 40 |
"glam020?/std", |
| 41 |
"glam021?/std", |
| 42 |
"glam022?/std", |
| 43 |
"glam023?/std", |
| 44 |
"glam024?/std", |
| 45 |
"glam025?/std", |
| 46 |
"glam027?/std", |
| 47 |
"glam028?/std", |
| 48 |
"glam029?/std", |
| 49 |
"glam030?/std", |
| 50 |
] |
| 51 |
sparse = [] |
| 52 |
debug = ["approx/num-complex", "rand"] |
| 53 |
alloc = [] |
| 54 |
io = ["pest", "pest_derive"] |
| 55 |
compare = ["matrixcompare-core"] |
| 56 |
libm = ["simba/libm"] |
| 57 |
libm-force = ["simba/libm_force"] |
| 58 |
macros = ["nalgebra-macros"] |
| 59 |
|
| 60 |
# Conversion |
| 61 |
convert-mint = ["mint"] |
| 62 |
convert-bytemuck = ["bytemuck", "num-complex/bytemuck"] |
| 63 |
convert-glam014 = ["glam014"] |
| 64 |
convert-glam015 = ["glam015"] |
| 65 |
convert-glam016 = ["glam016"] |
| 66 |
convert-glam017 = ["glam017"] |
| 67 |
convert-glam018 = ["glam018"] |
| 68 |
convert-glam019 = ["glam019"] |
| 69 |
convert-glam020 = ["glam020"] |
| 70 |
convert-glam021 = ["glam021"] |
| 71 |
convert-glam022 = ["glam022"] |
| 72 |
convert-glam023 = ["glam023"] |
| 73 |
convert-glam024 = ["glam024"] |
| 74 |
convert-glam025 = ["glam025"] |
| 75 |
convert-glam027 = ["glam027"] |
| 76 |
convert-glam028 = ["glam028"] |
| 77 |
convert-glam029 = ["glam029"] |
| 78 |
convert-glam030 = ["glam030"] |
| 79 |
|
| 80 |
# Serialization |
| 81 |
## To use serde in a #[no-std] environment, enable the |
| 82 |
## `serde-serialize-no-std` feature instead of `serde-serialize`. |
| 83 |
## Serialization of dynamically-sized matrices/vectors require |
| 84 |
## `serde-serialize`. |
| 85 |
serde-serialize-no-std = ["serde", "num-complex/serde"] |
| 86 |
serde-serialize = ["serde-serialize-no-std", "serde/std"] |
| 87 |
rkyv-serialize-no-std = ["rkyv/size_32"] |
| 88 |
rkyv-serialize = ["rkyv-serialize-no-std", "rkyv/std", "rkyv/validation"] |
| 89 |
|
| 90 |
# Randomness |
| 91 |
## To use rand in a #[no-std] environment, enable the |
| 92 |
## `rand-no-std` feature instead of `rand`. |
| 93 |
rand-no-std = ["rand-package"] |
| 94 |
rand = ["rand-no-std", "rand-package/std", "rand-package/std_rng", "rand-package/thread_rng", "rand_distr"] |
| 95 |
|
| 96 |
# Tests |
| 97 |
arbitrary = ["quickcheck"] |
| 98 |
proptest-support = ["proptest"] |
| 99 |
slow-tests = [] |
| 100 |
rkyv-safe-deser = ["rkyv-serialize", "rkyv/validation"] |
| 101 |
|
| 102 |
[dependencies] |
| 103 |
nalgebra-macros = { version = "0.3.0", path = "nalgebra-macros", optional = true } |
| 104 |
typenum = "1.12" |
| 105 |
rand-package = { package = "rand", version = "0.9", optional = true, default-features = false } |
| 106 |
num-traits = { version = "0.2", default-features = false } |
| 107 |
num-complex = { version = "0.4", default-features = false } |
| 108 |
num-rational = { version = "0.4", default-features = false } |
| 109 |
approx = { version = "0.5", default-features = false } |
| 110 |
simba = { version = "0.9", default-features = false } |
| 111 |
alga = { version = "0.9", default-features = false, optional = true } |
| 112 |
rand_distr = { version = "0.5", default-features = false, optional = true } |
| 113 |
matrixmultiply = { version = "0.3", optional = true } |
| 114 |
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true } |
| 115 |
# TODO: once rkyv is updated to 0.8, we could consider removing the `allow(unsafe_op_in_unsafe_fn)`. |
| 116 |
rkyv = { version = "0.7.41", default-features = false, optional = true } |
| 117 |
mint = { version = "0.5", optional = true } |
| 118 |
quickcheck = { version = "1", optional = true } |
| 119 |
pest = { version = "2", optional = true } |
| 120 |
pest_derive = { version = "2", optional = true } |
| 121 |
bytemuck = { version = "1.5", optional = true } |
| 122 |
matrixcompare-core = { version = "0.1", optional = true } |
| 123 |
proptest = { version = "1", optional = true, default-features = false, features = ["std"] } |
| 124 |
glam014 = { package = "glam", version = "0.14", optional = true, default-features = false } |
| 125 |
glam015 = { package = "glam", version = "0.15", optional = true, default-features = false } |
| 126 |
glam016 = { package = "glam", version = "0.16", optional = true, default-features = false } |
| 127 |
glam017 = { package = "glam", version = "0.17", optional = true, default-features = false } |
| 128 |
glam018 = { package = "glam", version = "0.18", optional = true, default-features = false } |
| 129 |
glam019 = { package = "glam", version = "0.19", optional = true, default-features = false } |
| 130 |
glam020 = { package = "glam", version = "0.20", optional = true, default-features = false } |
| 131 |
glam021 = { package = "glam", version = "0.21", optional = true, default-features = false } |
| 132 |
glam022 = { package = "glam", version = "0.22", optional = true, default-features = false } |
| 133 |
glam023 = { package = "glam", version = "0.23", optional = true, default-features = false } |
| 134 |
glam024 = { package = "glam", version = "0.24", optional = true, default-features = false } |
| 135 |
glam025 = { package = "glam", version = "0.25", optional = true, default-features = false } |
| 136 |
glam027 = { package = "glam", version = "0.27", optional = true, default-features = false } |
| 137 |
glam028 = { package = "glam", version = "0.28", optional = true, default-features = false } |
| 138 |
glam029 = { package = "glam", version = "0.29", optional = true, default-features = false } |
| 139 |
glam030 = { package = "glam", version = "0.30", optional = true, default-features = false } |
| 140 |
rayon = { version = "1.6", optional = true } |
| 141 |
defmt = { version = "1.0.1", optional = true } |
| 142 |
encase = { version = "0.12", optional = true } |
| 143 |
|
| 144 |
[dev-dependencies] |
| 145 |
serde_json = "1.0" |
| 146 |
rand_xorshift = "0.4" |
| 147 |
rand_isaac = "0.4" |
| 148 |
criterion = { version = "0.4", features = ["html_reports"] } |
| 149 |
nalgebra = { path = ".", features = ["debug", "compare", "rand", "macros"] } |
| 150 |
|
| 151 |
# For matrix comparison macro |
| 152 |
matrixcompare = "0.3.0" |
| 153 |
itertools = "0.13" |
| 154 |
|
| 155 |
# For macro testing |
| 156 |
trybuild = "1.0.90" |
| 157 |
|
| 158 |
cool_asserts = "2.0.3" |
| 159 |
|
| 160 |
[workspace] |
| 161 |
members = ["nalgebra-lapack", "nalgebra-glm", "nalgebra-sparse", "nalgebra-macros"] |
| 162 |
resolver = "2" |
| 163 |
|
| 164 |
[[example]] |
| 165 |
name = "matrixcompare" |
| 166 |
required-features = ["compare"] |
| 167 |
|
| 168 |
[[bench]] |
| 169 |
name = "nalgebra_bench" |
| 170 |
harness = false |
| 171 |
path = "benches/lib.rs" |
| 172 |
required-features = ["rand"] |
| 173 |
|
| 174 |
#[profile.bench] |
| 175 |
#opt-level = 0 |
| 176 |
#lto = false |
| 177 |
|
| 178 |
[profile.bench] |
| 179 |
lto = true |
| 180 |
|
| 181 |
[package.metadata.docs.rs] |
| 182 |
# Enable all the features when building the docs on docs.rs |
| 183 |
all-features = true |
| 184 |
# define the configuration attribute `docsrs` |
| 185 |
rustdoc-args = ["--cfg", "docsrs"] |