nalgebra/Cargo.toml

119 lines
4.1 KiB
TOML
Raw Normal View History

2014-06-25 01:25:57 +08:00
[package]
name = "nalgebra"
2021-04-27 20:26:09 +08:00
version = "0.26.2"
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"
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" ]
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" }
[lib]
2014-07-23 01:58:26 +08:00
name = "nalgebra"
path = "src/lib.rs"
[features]
default = [ "std", "macros" ]
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" ]
libm = [ "simba/libm" ]
libm-force = [ "simba/libm_force" ]
no_unsound_assume_init = [ ]
macros = [ "nalgebra-macros" ]
# Conversion
convert-mint = [ "mint" ]
convert-glam = [ "glam" ]
2021-04-11 17:00:38 +08:00
convert-glam-unchecked = [ "convert-glam" ] # Enable edgy conversions like Mat4 -> Isometry3
convert-bytemuck = [ "bytemuck" ]
# Serialization
## 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`.
serde-serialize-no-std = [ "serde", "num-complex/serde" ]
serde-serialize = [ "serde-serialize-no-std", "serde/std" ]
abomonation-serialize = [ "abomonation" ]
rkyv-serialize-no-std = [ "rkyv" ]
rkyv-serialize = [ "rkyv-serialize-no-std", "rkyv/std" ]
# Randomness
## To use rand in a #[no-std] environment, enable the
## `rand-no-std` feature instead of `rand`.
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 = []
[dependencies]
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 }
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 }
2021-03-01 00:52:14 +08:00
simba = { version = "0.4", default-features = false }
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 }
abomonation = { version = "0.7", optional = true }
2021-05-07 08:59:02 +08:00
rkyv = { version = "~0.6.4", default-features = false, features = ["const_generics"], optional = true }
mint = { version = "0.5", optional = true }
glam = { version = "0.13", 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 }
bytemuck = { version = "1.5", optional = true }
2019-08-12 00:26:12 +08:00
matrixcompare-core = { version = "0.1", optional = true }
proptest = { version = "1", 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"
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"] }
2019-08-12 00:26:12 +08:00
# For matrix comparison macro
matrixcompare = "0.3.0"
2021-03-01 00:52:14 +08:00
itertools = "0.10"
2019-08-12 00:26:12 +08:00
[workspace]
members = [ "nalgebra-lapack", "nalgebra-glm", "nalgebra-sparse", "nalgebra-macros" ]
resolver = "2"
[[example]]
name = "matrixcompare"
required-features = ["compare"]
[[bench]]
name = "nalgebra_bench"
harness = false
path = "benches/lib.rs"
2021-04-12 13:41:31 +08:00
required-features = ["rand"]
[profile.bench]
lto = true
[package.metadata.docs.rs]
# Enable certain features when building docs for docs.rs
features = [ "proptest-support", "compare", "macros" ]