nalgebra/Cargo.toml

155 lines
5.4 KiB
TOML
Raw Normal View History

2014-06-25 01:25:57 +08:00
[package]
2024-06-23 01:06:20 +08:00
name = "nalgebra"
2024-06-23 21:28:37 +08:00
version = "0.33.0"
2024-06-23 01:06:20 +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"
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"
2024-06-23 01:06:20 +08:00
categories = ["science", "mathematics", "wasm", "no-std"]
keywords = ["linear", "algebra", "matrix", "vector", "math"]
license = "Apache-2.0"
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]
2024-06-23 01:06:20 +08:00
default = ["std", "macros"]
std = ["matrixmultiply", "num-traits/std", "num-complex/std", "num-rational/std", "approx/std", "simba/std"]
sparse = []
debug = ["approx/num-complex", "rand"]
alloc = []
io = ["pest", "pest_derive"]
compare = ["matrixcompare-core"]
libm = ["simba/libm"]
libm-force = ["simba/libm_force"]
macros = ["nalgebra-macros"]
# Conversion
2024-06-23 01:06:20 +08:00
convert-mint = ["mint"]
convert-bytemuck = ["bytemuck"]
convert-glam014 = ["glam014"]
convert-glam015 = ["glam015"]
convert-glam016 = ["glam016"]
convert-glam017 = ["glam017"]
convert-glam018 = ["glam018"]
convert-glam019 = ["glam019"]
convert-glam020 = ["glam020"]
convert-glam021 = ["glam021"]
convert-glam022 = ["glam022"]
convert-glam023 = ["glam023"]
convert-glam024 = ["glam024"]
convert-glam025 = ["glam025"]
convert-glam027 = ["glam027"]
convert-glam028 = ["glam028"]
# 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`.
2024-06-23 01:06:20 +08:00
serde-serialize-no-std = ["serde", "num-complex/serde"]
serde-serialize = ["serde-serialize-no-std", "serde/std"]
rkyv-serialize-no-std = ["rkyv/size_32"]
rkyv-serialize = ["rkyv-serialize-no-std", "rkyv/std", "rkyv/validation"]
# Randomness
## To use rand in a #[no-std] environment, enable the
## `rand-no-std` feature instead of `rand`.
2024-06-23 01:06:20 +08:00
rand-no-std = ["rand-package"]
rand = ["rand-no-std", "rand-package/std", "rand-package/std_rng", "rand_distr"]
# Tests
2024-06-23 01:06:20 +08:00
arbitrary = ["quickcheck"]
proptest-support = ["proptest"]
slow-tests = []
rkyv-safe-deser = ["rkyv-serialize", "rkyv/validation"]
[dependencies]
2024-06-23 21:28:37 +08:00
nalgebra-macros = { version = "0.2.2", path = "nalgebra-macros", optional = true }
2024-06-23 01:06:20 +08:00
typenum = "1.12"
rand-package = { package = "rand", version = "0.8", optional = true, default-features = false }
num-traits = { version = "0.2", default-features = false }
num-complex = { version = "0.4", default-features = false }
num-rational = { version = "0.4", default-features = false }
approx = { version = "0.5", default-features = false }
simba = { version = "0.9", default-features = false }
alga = { version = "0.9", default-features = false, optional = true }
rand_distr = { version = "0.4", default-features = false, optional = true }
2021-03-01 00:52:14 +08:00
matrixmultiply = { version = "0.3", optional = true }
2024-06-23 01:06:20 +08:00
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
rkyv = { version = "0.7.41", default-features = false, optional = true }
mint = { version = "0.5", optional = true }
quickcheck = { version = "1", optional = true }
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 }
2024-06-23 01:06:20 +08:00
proptest = { version = "1", optional = true, default-features = false, features = ["std"] }
glam014 = { package = "glam", version = "0.14", optional = true }
glam015 = { package = "glam", version = "0.15", optional = true }
glam016 = { package = "glam", version = "0.16", optional = true }
glam017 = { package = "glam", version = "0.17", optional = true }
glam018 = { package = "glam", version = "0.18", optional = true }
glam019 = { package = "glam", version = "0.19", optional = true }
glam020 = { package = "glam", version = "0.20", optional = true }
glam021 = { package = "glam", version = "0.21", optional = true }
glam022 = { package = "glam", version = "0.22", optional = true }
glam023 = { package = "glam", version = "0.23", optional = true }
glam024 = { package = "glam", version = "0.24", optional = true }
glam025 = { package = "glam", version = "0.25", optional = true }
glam027 = { package = "glam", version = "0.27", optional = true }
glam028 = { package = "glam", version = "0.28", optional = true }
rayon = { version = "1.6", optional = true }
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"
2023-01-15 00:04:22 +08:00
criterion = { version = "0.4", features = ["html_reports"] }
2024-06-23 01:06:20 +08:00
nalgebra = { path = ".", features = ["debug", "compare", "rand", "macros"] }
2019-08-12 00:26:12 +08:00
# For matrix comparison macro
matrixcompare = "0.3.0"
itertools = "0.13"
2019-08-12 00:26:12 +08:00
Improved stack! implementation, tests (#1375) * Add macro for concatenating matrices * Replace DimUnify with DimEq::representative * Add some simple cat macro output generation tests * Fix formatting in cat macro code * Add random prefix to cat macro output * Add simple quote_spanned for cat macro * Use `generic_view_mut` in cat macro * Fix clippy lints in cat macro * Clean up documentation for cat macro * Remove identity literal from cat macro * Allow references in input to cat macro * Rename cat macro to stack * Add more stack macro tests * Add comment to explain reason for prefix in stack! macro * Refactor matrix!, stack! macros into separate modules * Take all blocks by reference in stack! macro * Make empty stack![] invocation well-defined * Fix stack! macro incorrect reference to data * More extensive tests for stack! macro * Move nalgebra-macros tests to nalgebra tests By testing matrix!, stack! macros etc. in nalgebra, we ensure that these macros are used in the same way that users will be using them. * Fix stack! code generation tests * Add back nalgebra as dev-dependency of nalgebra-macros * Fix accidental wrong matrix! macro references in docs * Rewrite stack! documentation for clarity * Formatting * Skip formatting of macro, rustfmt messes it up * Rewrite stack! impl for improved clarity, Span behavior This improves error messages upon dimension mismatch, among other things. I've also tried to make the implementation easier to understand, adding some comments to help the reader understand the individual steps. * Use SameNumberOfRows/Columns instead of DimEq in stack! macro This gives more accurate compiler errors if matrix dimensions are mismatched. * Check that stack! panics at runtime for basic dimension mismatch * Add suggested edge cases from initial PR to tests * stack! impl: use fixed prefix everywhere This ensures that the expected generated code in tests is the actual generated code when used in the wild. * nalgebra-macros: Remove clippy pedantic, fix clippy complaints pedantic seems to be mostly intent on wasting the programmer's time * Add stack! sanity tests for built-ins and Complex * Fix formatting in test * Improve readability of format_ident! calls in stack! impl * fix trybuild tests * chore: run tests with a specific rust version * More trybuild fixes --------- Co-authored-by: Birk Tjelmeland <git@birktj.no> Co-authored-by: Sébastien Crozet <sebcrozet@dimforge.com>
2024-06-23 17:29:28 +08:00
# For macro testing
trybuild = "1.0.90"
cool_asserts = "2.0.3"
[workspace]
2024-06-23 01:06:20 +08:00
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"]
2021-08-08 18:31:23 +08:00
#[profile.bench]
#opt-level = 0
#lto = false
[profile.bench]
lto = true
[package.metadata.docs.rs]
2022-07-31 15:42:02 +08:00
# Enable all the features when building the docs on docs.rs
all-features = true
2022-11-13 21:54:26 +08:00
# define the configuration attribute `docsrs`
rustdoc-args = ["--cfg", "docsrs"]