[package]
edition = "2024"
rust-version = "1.85.0"
name = "deranged"
version = "0.5.9"
authors = ["Jacob Pratt <jacob@jhpratt.dev>"]
build = false
include = [
"src/**/*",
"LICENSE-*",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ranged integers"
readme = "README.md"
keywords = [
"integer",
"int",
"range",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jhpratt/deranged"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
"--generate-link-to-definition",
"--generate-macro-expansion",
]
[features]
alloc = []
default = []
macros = ["dep:deranged-macros"]
num = ["dep:num-traits"]
powerfmt = ["dep:powerfmt"]
quickcheck = [
"dep:quickcheck",
"alloc",
]
rand = [
"rand08",
"rand09",
"rand010",
]
rand010 = ["dep:rand010"]
rand08 = ["dep:rand08"]
rand09 = ["dep:rand09"]
serde = ["dep:serde_core"]
[lib]
name = "deranged"
path = "src/lib.rs"
[dependencies.deranged-macros]
version = "=0.3.1"
optional = true
[dependencies.num-traits]
version = "0.2.15"
optional = true
default-features = false
[dependencies.powerfmt]
version = "0.2.0"
optional = true
default-features = false
[dependencies.quickcheck]
version = "1.0.3"
optional = true
default-features = false
[dependencies.rand010]
version = "0.10.0"
optional = true
default-features = false
package = "rand"
[dependencies.rand08]
version = "0.8.4"
optional = true
default-features = false
package = "rand"
[dependencies.rand09]
version = "0.9.0"
optional = true
default-features = false
package = "rand"
[dependencies.serde_core]
version = "1.0.220"
optional = true
default-features = false
[dev-dependencies.rand010]
version = "0.10.0"
package = "rand"
[dev-dependencies.rand08]
version = "0.8.4"
package = "rand"
[dev-dependencies.rand09]
version = "0.9.0"
package = "rand"
[dev-dependencies.serde_json]
version = "1.0.86"
[dev-dependencies.serde_test2]
version = "2.0.0"
[lints.clippy]
alloc_instead_of_core = "deny"
dbg_macro = "warn"
decimal_literal_representation = "warn"
explicit_auto_deref = "warn"
get_unwrap = "warn"
manual_let_else = "warn"
missing_docs_in_private_items = "warn"
missing_enforced_import_renames = "warn"
obfuscated_if_else = "warn"
option_if_let_else = "allow"
print_stdout = "warn"
redundant_pub_crate = "allow"
semicolon_outside_block = "warn"
std_instead_of_core = "deny"
todo = "warn"
undocumented_unsafe_blocks = "deny"
unimplemented = "warn"
uninlined_format_args = "warn"
unnested_or_patterns = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
use_debug = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.rust]
ambiguous_glob_reexports = "deny"
clashing_extern_declarations = "deny"
const_item_mutation = "deny"
dangling_pointers_from_temporaries = "deny"
deref_nullptr = "deny"
drop_bounds = "deny"
hidden_glob_reexports = "deny"
improper_ctypes = "deny"
improper_ctypes_definitions = "deny"
invalid_from_utf8 = "deny"
invalid_macro_export_arguments = "deny"
invalid_nan_comparisons = "deny"
invalid_reference_casting = "deny"
invalid_value = "deny"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_abi = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
named_arguments_used_positionally = "deny"
non_ascii_idents = "deny"
noop_method_call = "warn"
opaque_hidden_inferred_bound = "deny"
overlapping_range_endpoints = "deny"
single_use_lifetimes = "warn"
suspicious_double_ref_op = "deny"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unconditional_recursion = "deny"
unnameable_test_items = "deny"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
unstable_syntax_pre_expansion = "deny"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.keyword_idents]
level = "warn"
priority = -1
[lints.rust.let_underscore]
level = "warn"
priority = -1
[lints.rust.unstable_name_collisions]
level = "warn"
priority = 1
[lints.rust.unused]
level = "warn"
priority = -1
[lints.rustdoc]
private_doc_tests = "warn"
unescaped_backticks = "warn"