[package]
edition = "2021"
rust-version = "1.95"
name = "leto"
version = "0.46.1"
authors = ["Ryan Clanton <ryanclanton@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "N-dimensional strided arrays, zero-copy views, and storage backends"
documentation = "https://docs.rs/leto"
readme = "README.md"
keywords = [
"array",
"multidimensional",
"strided",
"zero-copy",
"views",
]
categories = [
"data-structures",
"science",
"mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ryancinsight/leto.git"
[features]
alloc = ["serde/alloc"]
default = [
"std",
"parallel",
"mnemosyne-memory",
]
mnemosyne-alloc = [
"dep:mnemosyne",
"alloc",
]
mnemosyne-memory = ["mnemosyne-alloc"]
parallel = []
serde = ["dep:serde"]
std = [
"aequitas/std",
"serde/std",
]
[lib]
name = "leto"
path = "src/lib.rs"
[[example]]
name = "book_array_basics"
path = "examples/book_array_basics.rs"
[[example]]
name = "book_statistics"
path = "examples/book_statistics.rs"
[[test]]
name = "core_tests"
path = "tests/core_tests.rs"
[[test]]
name = "layout_property_tests"
path = "tests/layout_property_tests.rs"
[[test]]
name = "operator_allocations"
path = "tests/operator_allocations.rs"
[dependencies.aequitas]
version = ">=0.3.1, <0.5.0"
default-features = false
package = "aequitas"
[dependencies.eunomia]
version = ">=0.10.0, <0.12.0"
default-features = false
package = "eunomia"
[dependencies.mnemosyne]
version = "0.10.0"
features = ["eunomia"]
optional = true
package = "mnemosyne-memory"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false
[dependencies.thiserror]
version = "2"
[dev-dependencies.proptest]
version = "1.11"
[dev-dependencies.serde_json]
version = "1"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cloned_instead_of_copied = "allow"
collapsible_else_if = "allow"
comparison_chain = "allow"
doc_markdown = "allow"
elidable_lifetime_names = "allow"
explicit_iter_loop = "allow"
float_cmp = "allow"
ignored_unit_patterns = "allow"
inline_always = "allow"
into_iter_without_iter = "allow"
items_after_statements = "allow"
iter_without_into_iter = "allow"
manual_assert = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
no_effect_underscore_binding = "allow"
ptr_as_ptr = "allow"
range_minus_one = "allow"
redundant_closure_for_method_calls = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_self = "allow"
unwrap_used = "deny"
used_underscore_binding = "allow"
[lints.clippy.pedantic]
level = "deny"
priority = -1