Source code

Revision control

Copy as Markdown

Other Tools

# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.67.0"
name = "deranged"
version = "0.4.0"
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"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]
targets = ["x86_64-unknown-linux-gnu"]
[features]
alloc = []
default = ["std"]
macros = ["dep:deranged-macros"]
num = ["dep:num-traits"]
powerfmt = ["dep:powerfmt"]
quickcheck = [
"dep:quickcheck",
"alloc",
]
rand = [
"rand08",
"rand09",
]
rand08 = ["dep:rand08"]
rand09 = ["dep:rand09"]
serde = ["dep:serde"]
std = ["alloc"]
[lib]
name = "deranged"
path = "src/lib.rs"
[dependencies.deranged-macros]
version = "=0.2.0"
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.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]
version = "1.0.126"
optional = true
default-features = false
[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"
[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"
future-incompatible = "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"
keyword-idents = "warn"
let-underscore = "warn"
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.path-statements]
level = "allow"
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"