# 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 = "2024"
name = "range-set-blaze"
version = "0.6.0"
authors = ["Carl Kadie"]
build = "build.rs"
exclude = ["docs/**/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Integer sets as fast, sorted integer ranges; Maps with integer-range keys; Full set operations"
homepage = "https://github.com/CarlKCarlK/range-set-blaze"
documentation = "https://docs.rs/range-set-blaze/latest/range-set-blaze/"
readme = "README.md"
keywords = [
    "set",
    "range",
    "data-structures",
    "no_std",
    "wasm",
]
categories = [
    "data-structures",
    "no-std",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/CarlKCarlK/range-set-blaze"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["std"]
from_slice = []
rog_experimental = []
std = [
    "itertools/use_std",
    "num-traits/std",
    "num-integer/std",
]
test_util = ["rand"]

[lib]
name = "range_set_blaze"
path = "src/lib.rs"

[[example]]
name = "fonts"
path = "examples/fonts.rs"

[[example]]
name = "nine_rules_maps"
path = "examples/nine_rules_maps.rs"

[[example]]
name = "routing_ipv4"
path = "examples/routing_ipv4.rs"

[[example]]
name = "routing_ipv6"
path = "examples/routing_ipv6.rs"

[[test]]
name = "fonts_wasm"
path = "tests/fonts_wasm.rs"

[[test]]
name = "formal"
path = "tests/formal.rs"

[[test]]
name = "map_tests"
path = "tests/map_tests.rs"

[[test]]
name = "set_tests"
path = "tests/set_tests.rs"

[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false

[[bench]]
name = "bench_map"
path = "benches/bench_map.rs"
harness = false

[dependencies.gen_ops]
version = "0.4.0"

[dependencies.itertools]
version = "0.14.0"
features = ["use_alloc"]
default-features = false

[dependencies.num-integer]
version = "0.1.46"
default-features = false

[dependencies.num-traits]
version = "0.2.19"
default-features = false

[dependencies.rand]
version = "0.9.1"
optional = true

[dev-dependencies.anyhow]
version = "1.0.98"

[dev-dependencies.rand]
version = "0.9.1"

[dev-dependencies.syntactic-for]
version = "0.1.1"

[dev-dependencies.wasm-bindgen-test]
version = "0.3.50"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.getrandom]
version = "0.3.3"
features = ["wasm_js"]

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.web-time]
version = "1.1.0"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.5.1"
features = ["html_reports"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.glob]
version = "0.3.2"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.quickcheck]
version = "1.0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.quickcheck_macros]
version = "1.1.0"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.rand]
version = "0.9.1"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.range-collections]
version = "0.4.6"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.range-set]
version = "0.0.11"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.rangemap]
version = "1.5.1"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.roaring]
version = "0.10.12"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.thousands]
version = "0.2.0"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.trybuild]
version = "1.0.105"

[lints.clippy]
must_use_candidate = "warn"
panic_in_result_fn = "warn"
uninlined_format_args = "warn"
unwrap_used = "warn"
use_self = "warn"

[lints.clippy.cargo]
level = "warn"
priority = -8

[lints.clippy.cargo_common_metadata]
level = "warn"
priority = -9

[lints.clippy.complexity]
level = "warn"
priority = -5

[lints.clippy.correctness]
level = "warn"
priority = -3

[lints.clippy.nursery]
level = "warn"
priority = -7

[lints.clippy.pedantic]
level = "warn"
priority = -2

[lints.clippy.perf]
level = "warn"
priority = -6

[lints.clippy.style]
level = "warn"
priority = -4

[lints.rust]
missing_docs = "warn"
single_use_lifetimes = "warn"
unreachable_pub = "warn"
unused_lifetimes = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -2

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(coverage)",
    "cfg(never)",
]
