# 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.88"
name = "srcmap-hermes"
version = "0.3.6"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hermes/React Native source map support"
readme = "README.md"
keywords = [
    "sourcemap",
    "hermes",
    "react-native",
    "metro",
]
categories = [
    "parser-implementations",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/fallow-rs/srcmap"

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

[dependencies.serde_json]
version = "1"
features = ["raw_value"]

[dependencies.srcmap-codec]
version = "0.3.6"

[dependencies.srcmap-sourcemap]
version = "0.3.6"

[lints.clippy]
allow_attributes_without_reason = "warn"
assigning_clones = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
doc_markdown = "allow"
elidable_lifetime_names = "allow"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
excessive_nesting = "warn"
exit = "warn"
explicit_iter_loop = "allow"
filetype_is_file = "warn"
fn_params_excessive_bools = "allow"
get_unwrap = "warn"
if_not_else = "allow"
implicit_hasher = "allow"
infinite_loop = "warn"
inline_always = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
map_with_unused_argument_over_ranges = "warn"
match_same_arms = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
naive_bytecount = "allow"
needless_pass_by_value = "allow"
non_zero_suggestions = "warn"
option_if_let_else = "allow"
pathbuf_init_then_push = "warn"
precedence_bits = "warn"
print_stderr = "warn"
print_stdout = "warn"
pub_underscore_fields = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
ref_option = "allow"
rest_pat_in_fully_bound_structs = "warn"
self_named_module_files = "warn"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
todo = "warn"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
uninlined_format_args = "allow"
unnecessary_safety_comment = "warn"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unused_result_ok = "warn"
use_self = "allow"
wildcard_imports = "allow"
wrong_self_convention = "allow"

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

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

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

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

[lints.rust]
non_ascii_idents = "warn"
tail_expr_drop_order = "warn"
unit_bindings = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_unsafe = "warn"
