# 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"
rust-version = "1.85.0"
name = "oxc_index"
version = "5.0.0"
authors = ["Boshen <boshenc@gmail.com>"]
build = false
include = ["/src"]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Newtype-style helpers for `Vec` and `usize`."
readme = "README.md"
keywords = [
    "newtype",
    "vec",
    "index",
    "indexed",
    "usize",
]
categories = [
    "data-structures",
    "no-std",
    "rust-patterns",
]
license = "MIT"
repository = "https://github.com/oxc-project/oxc-index-vec"

[features]
nonmax = ["dep:nonmax"]
rayon = ["dep:rayon"]
serde = ["dep:serde"]

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

[dependencies.nonmax]
version = "0.5"
optional = true

[dependencies.rayon]
version = "1"
optional = true

[dependencies.serde]
version = "1"
optional = true

[lints.clippy]
allow_attributes = "warn"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
filetype_is_file = "warn"
get_unwrap = "warn"
impl_trait_in_params = "warn"
infinite_loop = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
self_named_module_files = "warn"
todo = "warn"
undocumented_unsafe_blocks = "allow"
unimplemented = "warn"
unnecessary_safety_comment = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
absolute_paths_not_starting_with_crate = "warn"
non_ascii_idents = "warn"
unit-bindings = "warn"

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