# 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.95.0"
name = "aozora"
version = "0.4.1"
authors = ["aozora contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Aozora Bunko notation parser — single front door (Document + AozoraTree)"
readme = "README.md"
keywords = [
    "aozora",
    "japanese",
    "typography",
    "parser",
    "ruby",
]
categories = [
    "parser-implementations",
    "text-processing",
    "localization",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/P4suta/aozora"

[features]
cst = ["dep:aozora-cst"]
default = []
proptest = [
    "dep:proptest",
    "dep:aozora-proptest",
]
query = [
    "cst",
    "dep:aozora-query",
]
schema = [
    "wire",
    "dep:schemars",
]
wire = [
    "dep:serde",
    "dep:serde_json",
]

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

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

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

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

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

[dependencies.aozora-cst]
version = "0.4.1"
optional = true

[dependencies.aozora-encoding]
version = "0.4.1"

[dependencies.aozora-pipeline]
version = "0.4.1"

[dependencies.aozora-proptest]
version = "0.4.1"
optional = true

[dependencies.aozora-query]
version = "0.4.1"
optional = true

[dependencies.aozora-render]
version = "0.4.1"

[dependencies.aozora-spec]
version = "0.4.1"

[dependencies.aozora-syntax]
version = "0.4.1"

[dependencies.proptest]
version = "1.11"
optional = true

[dependencies.schemars]
version = "1.0"
features = ["preserve_order"]
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dev-dependencies.proptest]
version = "1.11"

[lints.clippy]
absolute_paths = "warn"
allow_attributes_without_reason = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
empty_structs_with_brackets = "warn"
filetype_is_file = "warn"
format_push_string = "warn"
if_then_some_else_none = "warn"
large_enum_variant = "allow"
let_underscore_must_use = "warn"
lossy_float_literal = "warn"
missing_assert_message = "warn"
missing_const_for_fn = "allow"
mixed_read_write_in_expression = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_pub_crate = "allow"
rest_pat_in_fully_bound_structs = "warn"
same_name_method = "warn"
semicolon_outside_block = "warn"
str_to_string = "warn"
suspicious_xor_used_as_pow = "warn"
todo = "warn"
try_err = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
verbose_file_reads = "warn"

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

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

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

[lints.rust]
ambiguous_negative_literals = "warn"
dead_code = "deny"
elided_lifetimes_in_paths = "warn"
explicit_outlives_requirements = "warn"
keyword_idents_2024 = "warn"
let_underscore_drop = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
non_ascii_idents = "deny"
redundant_lifetimes = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
variant_size_differences = "allow"

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
private_intra_doc_links = "deny"
redundant_explicit_links = "deny"
unescaped_backticks = "deny"
