2014-06-25 01:25:57 +08:00
|
|
|
[package]
|
|
|
|
name = "nalgebra"
|
2022-04-30 16:59:26 +08:00
|
|
|
version = "0.31.0"
|
2016-12-05 05:44:42 +08:00
|
|
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
2014-06-25 01:25:57 +08:00
|
|
|
|
2021-01-29 20:33:37 +08:00
|
|
|
description = "General-purpose linear algebra library with transformations and statically-sized or dynamically-sized matrices."
|
|
|
|
documentation = "https://www.nalgebra.org/docs"
|
2019-06-12 02:56:50 +08:00
|
|
|
homepage = "https://nalgebra.org"
|
2021-01-29 20:33:37 +08:00
|
|
|
repository = "https://github.com/dimforge/nalgebra"
|
2014-11-23 02:51:28 +08:00
|
|
|
readme = "README.md"
|
2021-02-22 21:27:31 +08:00
|
|
|
categories = [ "science", "mathematics", "wasm", "no-std" ]
|
2018-08-31 18:57:52 +08:00
|
|
|
keywords = [ "linear", "algebra", "matrix", "vector", "math" ]
|
2021-01-29 20:33:37 +08:00
|
|
|
license = "BSD-3-Clause"
|
2019-03-23 21:29:07 +08:00
|
|
|
edition = "2018"
|
2019-02-18 01:22:29 +08:00
|
|
|
exclude = ["/ci/*", "/.travis.yml", "/Makefile"]
|
|
|
|
|
2021-01-29 20:33:37 +08:00
|
|
|
[badges]
|
|
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
|
2014-08-16 18:16:26 +08:00
|
|
|
[lib]
|
2014-07-23 01:58:26 +08:00
|
|
|
name = "nalgebra"
|
|
|
|
path = "src/lib.rs"
|
2014-12-26 05:05:33 +08:00
|
|
|
|
2015-01-10 08:36:13 +08:00
|
|
|
[features]
|
2021-04-30 22:47:09 +08:00
|
|
|
default = [ "std", "macros" ]
|
2021-04-12 18:14:16 +08:00
|
|
|
std = [ "matrixmultiply", "simba/std" ]
|
|
|
|
sparse = [ ]
|
|
|
|
debug = [ "approx/num-complex", "rand" ]
|
|
|
|
alloc = [ ]
|
|
|
|
io = [ "pest", "pest_derive" ]
|
2019-08-12 00:26:12 +08:00
|
|
|
compare = [ "matrixcompare-core" ]
|
2021-04-12 18:14:16 +08:00
|
|
|
libm = [ "simba/libm" ]
|
2020-08-26 02:44:03 +08:00
|
|
|
libm-force = [ "simba/libm_force" ]
|
2021-04-30 22:47:09 +08:00
|
|
|
macros = [ "nalgebra-macros" ]
|
2022-03-17 01:07:29 +08:00
|
|
|
cuda = [ "cust_core", "simba/cuda" ]
|
2020-08-26 02:44:03 +08:00
|
|
|
|
2021-03-06 19:20:38 +08:00
|
|
|
# Conversion
|
|
|
|
convert-mint = [ "mint" ]
|
|
|
|
convert-bytemuck = [ "bytemuck" ]
|
2021-06-01 16:27:32 +08:00
|
|
|
convert-glam014 = [ "glam014" ]
|
|
|
|
convert-glam015 = [ "glam015" ]
|
2021-08-08 18:37:02 +08:00
|
|
|
convert-glam016 = [ "glam016" ]
|
|
|
|
convert-glam017 = [ "glam017" ]
|
2021-08-31 00:31:21 +08:00
|
|
|
convert-glam018 = [ "glam018" ]
|
2022-01-09 20:43:45 +08:00
|
|
|
convert-glam019 = [ "glam019" ]
|
|
|
|
convert-glam020 = [ "glam020" ]
|
2021-03-06 19:20:38 +08:00
|
|
|
|
2022-05-28 01:57:26 +08:00
|
|
|
# Const Generic specializations through Const<1024>
|
|
|
|
const-generics-1024 = [ ]
|
|
|
|
|
2021-03-06 19:20:38 +08:00
|
|
|
# Serialization
|
2021-04-12 20:35:44 +08:00
|
|
|
## To use serde in a #[no-std] environment, enable the
|
|
|
|
## `serde-serialize-no-std` feature instead of `serde-serialize`.
|
|
|
|
## Serialization of dynamically-sized matrices/vectors require
|
|
|
|
## `serde-serialize`.
|
2021-04-12 18:14:16 +08:00
|
|
|
serde-serialize-no-std = [ "serde", "num-complex/serde" ]
|
|
|
|
serde-serialize = [ "serde-serialize-no-std", "serde/std" ]
|
2022-03-22 21:49:32 +08:00
|
|
|
rkyv-serialize-no-std = [ "rkyv" ]
|
|
|
|
rkyv-serialize = [ "rkyv-serialize-no-std", "rkyv/std", "bytecheck" ]
|
2021-03-06 19:20:38 +08:00
|
|
|
|
|
|
|
# Randomness
|
2021-04-12 20:35:44 +08:00
|
|
|
## To use rand in a #[no-std] environment, enable the
|
|
|
|
## `rand-no-std` feature instead of `rand`.
|
2021-03-06 19:20:38 +08:00
|
|
|
rand-no-std = [ "rand-package" ]
|
|
|
|
rand = [ "rand-no-std", "rand-package/std", "rand-package/std_rng", "rand_distr" ]
|
|
|
|
|
|
|
|
# Tests
|
|
|
|
arbitrary = [ "quickcheck" ]
|
|
|
|
proptest-support = [ "proptest" ]
|
|
|
|
slow-tests = []
|
2020-08-26 02:44:03 +08:00
|
|
|
|
2014-12-26 05:05:33 +08:00
|
|
|
[dependencies]
|
2021-04-30 22:47:09 +08:00
|
|
|
nalgebra-macros = { version = "0.1", path = "nalgebra-macros", optional = true }
|
2020-10-25 21:50:33 +08:00
|
|
|
typenum = "1.12"
|
2021-03-02 19:25:12 +08:00
|
|
|
rand-package = { package = "rand", version = "0.8", optional = true, default-features = false }
|
2018-05-19 23:15:15 +08:00
|
|
|
num-traits = { version = "0.2", default-features = false }
|
2021-06-02 20:53:43 +08:00
|
|
|
num-complex = { version = "0.4", default-features = false }
|
|
|
|
num-rational = { version = "0.4", default-features = false }
|
|
|
|
approx = { version = "0.5", default-features = false }
|
2022-01-02 22:30:05 +08:00
|
|
|
simba = { version = "0.7", default-features = false }
|
2020-04-05 23:53:27 +08:00
|
|
|
alga = { version = "0.9", default-features = false, optional = true }
|
2021-03-01 17:02:22 +08:00
|
|
|
rand_distr = { version = "0.4", default-features = false, optional = true }
|
2021-03-01 00:52:14 +08:00
|
|
|
matrixmultiply = { version = "0.3", optional = true }
|
2020-10-29 07:05:12 +08:00
|
|
|
serde = { version = "1.0", default-features = false, features = [ "derive" ], optional = true }
|
2022-03-22 00:08:46 +08:00
|
|
|
rkyv = { version = "~0.7.1", optional = true }
|
2022-03-22 00:47:03 +08:00
|
|
|
bytecheck = { version = "~0.6.1", optional = true }
|
2018-05-19 23:15:15 +08:00
|
|
|
mint = { version = "0.5", optional = true }
|
2021-03-01 00:52:14 +08:00
|
|
|
quickcheck = { version = "1", optional = true }
|
2020-10-25 21:50:33 +08:00
|
|
|
pest = { version = "2", optional = true }
|
|
|
|
pest_derive = { version = "2", optional = true }
|
2021-02-11 12:12:09 +08:00
|
|
|
bytemuck = { version = "1.5", optional = true }
|
2019-08-12 00:26:12 +08:00
|
|
|
matrixcompare-core = { version = "0.1", optional = true }
|
2021-11-23 19:03:11 +08:00
|
|
|
proptest = { version = "1", optional = true, default-features = false, features = ["std"] }
|
2021-06-01 16:27:32 +08:00
|
|
|
glam014 = { package = "glam", version = "0.14", optional = true }
|
|
|
|
glam015 = { package = "glam", version = "0.15", optional = true }
|
2021-08-08 18:37:02 +08:00
|
|
|
glam016 = { package = "glam", version = "0.16", optional = true }
|
|
|
|
glam017 = { package = "glam", version = "0.17", optional = true }
|
2021-08-31 00:31:21 +08:00
|
|
|
glam018 = { package = "glam", version = "0.18", optional = true }
|
2022-01-09 20:43:45 +08:00
|
|
|
glam019 = { package = "glam", version = "0.19", optional = true }
|
|
|
|
glam020 = { package = "glam", version = "0.20", optional = true }
|
2022-03-17 01:07:29 +08:00
|
|
|
cust_core = { version = "0.1", optional = true }
|
2021-11-23 19:03:11 +08:00
|
|
|
|
2017-02-13 01:17:09 +08:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2017-04-25 02:05:45 +08:00
|
|
|
serde_json = "1.0"
|
2021-03-01 00:52:14 +08:00
|
|
|
rand_xorshift = "0.3"
|
|
|
|
rand_isaac = "0.3"
|
2021-04-12 14:45:46 +08:00
|
|
|
criterion = { version = "0.3", features = ["html_reports"] }
|
2017-08-03 01:37:44 +08:00
|
|
|
|
2019-08-12 00:26:12 +08:00
|
|
|
# For matrix comparison macro
|
2021-05-07 15:23:44 +08:00
|
|
|
matrixcompare = "0.3.0"
|
2021-03-01 00:52:14 +08:00
|
|
|
itertools = "0.10"
|
2019-08-12 00:26:12 +08:00
|
|
|
|
2017-08-03 01:37:44 +08:00
|
|
|
[workspace]
|
2021-04-11 14:01:30 +08:00
|
|
|
members = [ "nalgebra-lapack", "nalgebra-glm", "nalgebra-sparse", "nalgebra-macros" ]
|
2021-04-10 12:42:56 +08:00
|
|
|
resolver = "2"
|
2019-03-03 02:33:49 +08:00
|
|
|
|
2021-04-10 11:52:54 +08:00
|
|
|
[[example]]
|
|
|
|
name = "matrixcompare"
|
|
|
|
required-features = ["compare"]
|
|
|
|
|
2019-03-24 01:01:04 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "nalgebra_bench"
|
|
|
|
harness = false
|
|
|
|
path = "benches/lib.rs"
|
2021-04-12 13:41:31 +08:00
|
|
|
required-features = ["rand"]
|
2019-03-24 01:01:04 +08:00
|
|
|
|
2021-08-08 18:31:23 +08:00
|
|
|
#[profile.bench]
|
|
|
|
#opt-level = 0
|
|
|
|
#lto = false
|
|
|
|
|
2019-03-24 01:01:04 +08:00
|
|
|
[profile.bench]
|
|
|
|
lto = true
|
2020-11-10 21:46:33 +08:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
# Enable certain features when building docs for docs.rs
|
2021-07-27 01:13:58 +08:00
|
|
|
features = [ "proptest-support", "compare", "macros", "rand" ]
|
2021-11-24 19:32:30 +08:00
|
|
|
|