# 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 = "brk_rolldown_plugin"
version = "0.2.1"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "brk fork of rolldown_plugin"
homepage = "https://rolldown.rs/"
readme = false
license = "MIT"
repository = "https://github.com/rolldown/rolldown"

[package.metadata.cargo-shear]
ignored = [
    "serde",
    "serde_json",
]

[features]
default = ["serde"]
serde = [
    "dep:serde",
    "oxc_index/serde",
]

[lib]
name = "brk_rolldown_plugin"
path = "src/lib.rs"
doctest = false

[dependencies.anyhow]
version = "1.0.98"

[dependencies.arcstr]
version = "1.2.0"
default-features = false

[dependencies.async-trait]
version = "0.1.88"

[dependencies.bitflags]
version = "2.9.1"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.derive_more]
version = "2.0.1"
features = [
    "debug",
    "display",
]

[dependencies.oxc_index]
version = "3"
features = [
    "rayon",
    "serde",
]

[dependencies.rolldown_common]
version = "0.2.1"
package = "brk_rolldown_common"

[dependencies.rolldown_debug]
version = "0.2.1"
package = "brk_rolldown_debug"

[dependencies.rolldown_ecmascript]
version = "0.2.1"
package = "brk_rolldown_ecmascript"

[dependencies.rolldown_error]
version = "0.2.1"
package = "brk_rolldown_error"

[dependencies.rolldown_resolver]
version = "0.2.1"
package = "brk_rolldown_resolver"

[dependencies.rolldown_sourcemap]
version = "0.2.1"
package = "brk_rolldown_sourcemap"

[dependencies.rolldown_utils]
version = "0.2.1"
package = "brk_rolldown_utils"

[dependencies.rustc-hash]
version = "2.1.1"

[dependencies.serde]
version = "1.0.219"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.140"

[dependencies.string_wizard]
version = "0.2.1"
features = ["serde"]
package = "brk_string_wizard"

[dependencies.sugar_path]
version = "1.2.0"
features = ["cached_current_dir"]

[dependencies.tokio]
version = "1.45.0"
features = ["sync"]
default-features = false

[dependencies.tracing]
version = "0.1.41"
features = ["valuable"]

[dependencies.typedmap]
version = "0.6.0"
features = ["dashmap"]

[lints.clippy]
allow_attributes = "deny"
case_sensitive_file_extension_comparisons = "allow"
clone_on_ref_ptr = "deny"
collapsible_if = "allow"
dbg_macro = "deny"
debug_assert_with_mut_call = "warn"
doc_markdown = "allow"
empty_drop = "deny"
exit = "deny"
filetype_is_file = "deny"
get_unwrap = "deny"
inconsistent_struct_constructor = "allow"
iter_on_single_items = "warn"
map_unwrap_or = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_for_each = "allow"
needless_pass_by_ref_mut = "warn"
new_without_default = "allow"
print_stdout = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
redundant_clone = "warn"
redundant_pub_crate = "warn"
rest_pat_in_fully_bound_structs = "deny"
significant_drop_in_scrutinee = "warn"
similar_names = "allow"
single_match = "allow"
single_match_else = "allow"
unnecessary_safety_comment = "deny"
unused_peekable = "warn"

[lints.clippy.pedantic]
level = "deny"
priority = -1
