[package]
edition = "2021"
rust-version = "1.71"
name = "intid-core"
version = "0.3.8"
authors = ["Techcable <git@techcable.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Defines the IntegerId trait without a dependency on intid_derive"
readme = "README.md"
keywords = [
"intid",
"id",
"counter",
"idmap",
"integer",
]
categories = [
"no-std::no-alloc",
"no-std",
"rust-patterns",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/DuckLogic/intid.rs"
[package.metadata.docs.rs]
all-features = true
[features]
bytemuck = [
"dep:bytemuck",
"primint/bytemuck",
]
default = ["std"]
nightly = []
nonmax = ["dep:nonmax"]
num-traits = [
"dep:num-traits",
"primint/num-traits-02",
]
primint-nonmax = ["primint/nonmax"]
primint-nonzero = ["primint/nonzero"]
std = []
[lib]
name = "intid_core"
path = "src/lib.rs"
[[test]]
name = "declarative_macros"
path = "tests/declarative_macros.rs"
[dependencies.bytemuck]
version = "1"
optional = true
[dependencies.nonmax]
version = "0.5"
optional = true
[dependencies.num-traits]
version = "0.2"
optional = true
[dependencies.primint]
version = "0.1.4"
default-features = false
[lints.clippy]
alloc_instead_of_core = "deny"
cast_lossless = "allow"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_ptr_alignment = "deny"
cast_sign_loss = "deny"
char_lit_as_u8 = "deny"
fn_to_numeric_cast = "deny"
fn_to_numeric_cast_any = "deny"
fn_to_numeric_cast_with_truncation = "deny"
if_not_else = "allow"
items_after_statements = "allow"
missing_panics_doc = "allow"
multiple_unsafe_ops_per_block = "deny"
must_use_candidate = "allow"
needless_continue = "allow"
no_effect_underscore_binding = "allow"
ptr_as_ptr = "allow"
redundant_else = "allow"
redundant_test_prefix = "warn"
return_self_not_must_use = "allow"
std_instead_of_alloc = "deny"
std_instead_of_core = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "deny"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(intid_derive_use_expander)"]