nalgebra/Cargo.toml

96 lines
3.4 KiB
TOML
Raw Normal View History

2014-06-25 01:25:57 +08:00
[package]
name = "nalgebra"
2020-12-30 22:07:13 +08:00
version = "0.24.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
2014-06-25 01:25:57 +08:00
2017-05-26 04:04:42 +08:00
description = "Linear algebra library with transformations and statically-sized or dynamically-sized matrices."
documentation = "https://nalgebra.org/rustdoc/nalgebra/index.html"
homepage = "https://nalgebra.org"
2018-09-15 12:29:53 +08:00
repository = "https://github.com/rustsim/nalgebra"
2014-11-23 02:51:28 +08:00
readme = "README.md"
categories = [ "science" ]
keywords = [ "linear", "algebra", "matrix", "vector", "math" ]
license = "Apache-2.0"
2019-03-23 21:29:07 +08:00
edition = "2018"
2014-11-23 02:51:28 +08:00
2019-02-18 01:22:29 +08:00
exclude = ["/ci/*", "/.travis.yml", "/Makefile"]
[lib]
2014-07-23 01:58:26 +08:00
name = "nalgebra"
path = "src/lib.rs"
[features]
default = [ "std" ]
2020-03-21 19:16:46 +08:00
std = [ "matrixmultiply", "rand/std", "rand_distr", "simba/std" ]
stdweb = [ "rand/stdweb" ]
arbitrary = [ "quickcheck" ]
serde-serialize = [ "serde", "num-complex/serde" ]
2017-08-14 22:26:36 +08:00
abomonation-serialize = [ "abomonation" ]
sparse = [ ]
debug = [ "approx/num-complex", "rand/std" ]
2018-05-24 23:17:34 +08:00
alloc = [ ]
2018-11-07 01:31:04 +08:00
io = [ "pest", "pest_derive" ]
2019-08-12 00:26:12 +08:00
compare = [ "matrixcompare-core" ]
libm = [ "simba/libm" ]
libm-force = [ "simba/libm_force" ]
proptest-support = [ "proptest" ]
# This feature is only used for tests, and enables tests that require more time to run
slow-tests = []
[dependencies]
2020-10-25 21:50:33 +08:00
typenum = "1.12"
generic-array = "0.14"
rand = { version = "0.7", default-features = false }
num-traits = { version = "0.2", default-features = false }
2020-10-25 21:50:33 +08:00
num-complex = { version = "0.3", default-features = false }
num-rational = { version = "0.3", default-features = false }
approx = { version = "0.4", default-features = false }
simba = { version = "0.3", default-features = false }
alga = { version = "0.9", default-features = false, optional = true }
2020-10-25 21:50:33 +08:00
rand_distr = { version = "0.3", optional = true }
matrixmultiply = { version = "0.2", optional = true }
2020-10-29 07:05:12 +08:00
serde = { version = "1.0", default-features = false, features = [ "derive" ], optional = true }
abomonation = { version = "0.7", optional = true }
mint = { version = "0.5", optional = true }
quickcheck = { version = "0.9", optional = true }
2020-10-25 21:50:33 +08:00
pest = { version = "2", optional = true }
pest_derive = { version = "2", optional = true }
2019-08-12 00:26:12 +08:00
matrixcompare-core = { version = "0.1", optional = true }
proptest = { version = "0.10", optional = true, default-features = false, features = ["std"] }
2017-02-13 01:17:09 +08:00
[dev-dependencies]
2017-04-25 02:05:45 +08:00
serde_json = "1.0"
rand_xorshift = "0.2"
rand_isaac = "0.2"
### Uncomment this line before running benchmarks.
2019-06-08 00:54:56 +08:00
### We can't just let this uncommented because that would break
### compilation for #[no-std] because of the terrible Cargo bug
### https://github.com/rust-lang/cargo/issues/4866
2020-04-06 00:15:36 +08:00
#criterion = "0.2.10"
2019-08-12 00:26:12 +08:00
# For matrix comparison macro
matrixcompare = "0.2.0"
2019-08-12 00:26:12 +08:00
# Make sure that we use a specific version of proptest for tests. The reason is that we use a deterministic
# RNG for certain tests. However, different versions of proptest may give different sequences of numbers,
# which may cause more brittle tests (although ideally they should take enough samples for it not to matter).
proptest = { version = "=0.10.1" }
itertools = "0.9"
[workspace]
2019-02-18 01:22:29 +08:00
members = [ "nalgebra-lapack", "nalgebra-glm" ]
[[bench]]
name = "nalgebra_bench"
harness = false
path = "benches/lib.rs"
[profile.bench]
lto = true
[package.metadata.docs.rs]
# Enable certain features when building docs for docs.rs
features = [ "proptest-support", "compare" ]