# 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 = "citum-migrate"
version = "0.56.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Standalone CSL 1.0 to Citum style migration library and tool"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/citum/citum-core"
resolver = "2"

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

[[bin]]
name = "citum-migrate"
path = "src/main.rs"

[[bin]]
name = "migrate_all"
path = "src/bin/migrate_all.rs"

[[bin]]
name = "update_style_info"
path = "src/bin/update_style_info.rs"

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

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

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

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

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

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

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

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

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

[dependencies.citum-schema]
version = "0.56.0"

[dependencies.clap]
version = "4.4"
features = [
    "derive",
    "color",
]

[dependencies.csl-legacy]
version = "0.56.0"

[dependencies.deno_core]
version = "0.400.0"

[dependencies.indexmap]
version = "2.13.0"

[dependencies.roxmltree]
version = "0.21"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.10"
package = "serde_yaml_ng"

[dependencies.tracing]
version = "0.1"

[lints.clippy]
allow_attributes_without_reason = "deny"
assigning_clones = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cognitive_complexity = "deny"
default_trait_access = "allow"
doc_markdown = "allow"
empty_docs = "deny"
expect_used = "deny"
format_push_string = "allow"
four_forward_slashes = "deny"
get_unwrap = "deny"
implicit_hasher = "allow"
indexing_slicing = "deny"
items_after_statements = "allow"
manual_string_new = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_safety_doc = "deny"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
panic = "deny"
panic_in_result_fn = "deny"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
similar_names = "allow"
string_slice = "deny"
struct_excessive_bools = "allow"
tabs_in_doc_comments = "deny"
todo = "deny"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
unimplemented = "deny"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreachable = "deny"
unused_self = "allow"
unwrap_in_result = "deny"
unwrap_used = "deny"

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

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

[lints.rust]
missing_docs = "deny"
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("typescript"))']

[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "deny"
invalid_html_tags = "warn"
missing_crate_level_docs = "warn"
private_intra_doc_links = "warn"
redundant_explicit_links = "warn"
unescaped_backticks = "warn"
