[package]
edition = "2024"
rust-version = "1.85.1"
name = "satint"
version = "0.3.1"
build = false
exclude = [
".github/**",
".gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Saturating integers"
documentation = "https://docs.rs/satint"
readme = "README.md"
keywords = [
"saturating",
"integer",
"arithmetic",
"scalar",
"no-std",
]
categories = [
"no-std",
"no-std::no-alloc",
"mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Jmgr/satint"
resolver = "2"
[features]
default = []
panicking-ops = []
rand = ["dep:rand"]
serde = ["dep:serde"]
[lib]
name = "satint"
path = "src/lib.rs"
[[test]]
name = "operator_matrix"
path = "tests/operator_matrix.rs"
[[test]]
name = "rand"
path = "tests/rand.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[dependencies.rand]
version = "0.10.1"
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
optional = true
default-features = false
[dev-dependencies.rstest]
version = "0.26.1"
[dev-dependencies.serde_test]
version = "1.0"
[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
arithmetic_side_effects = "allow"
as_conversions = "allow"
assertions_on_result_states = "allow"
big_endian_bytes = "allow"
blanket_clippy_restriction_lints = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
default_numeric_fallback = "allow"
field_scoped_visibility_modifiers = "allow"
float_arithmetic = "allow"
float_cmp = "allow"
host_endian_bytes = "allow"
implicit_return = "allow"
integer_division_remainder_used = "allow"
little_endian_bytes = "allow"
min_ident_chars = "allow"
missing_docs_in_private_items = "allow"
missing_trait_methods = "allow"
modulo_arithmetic = "allow"
pub_use = "allow"
pub_with_shorthand = "allow"
question_mark_used = "allow"
separated_literal_suffix = "allow"
single_char_lifetime_names = "allow"
std_instead_of_core = "allow"
tests_outside_test_module = "allow"
unused_trait_names = "allow"
[lints.clippy.all]
level = "deny"
priority = -3
[lints.clippy.pedantic]
level = "deny"
priority = -2
[lints.clippy.restriction]
level = "deny"
priority = -1