ayaml 1.0.0

A safe, pure-Rust YAML parser, event stream, value model, Serde layer, and emitter
Documentation
# 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 = "ayaml"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A safe, pure-Rust YAML parser, event stream, value model, Serde layer, and emitter"
documentation = "https://docs.rs/ayaml"
readme = "README.md"
keywords = [
    "yaml",
    "parser",
    "serde",
    "serialization",
    "no-unsafe",
]
categories = [
    "parser-implementations",
    "encoding",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/asamarts/ayaml"

[package.metadata.docs.rs]
features = ["libyaml-compat"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
bench-internals = []
libyaml-compat = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.indexmap]
version = "2.6.0"

[dependencies.serde]
version = "1.0.220"

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

[dev-dependencies.serde]
version = "1.0.220"
features = ["derive"]

[dev-dependencies.serde_json]
version = "=1.0.154"

[lints.clippy]
allow_attributes_without_reason = "warn"
dbg_macro = "deny"
literal_string_with_formatting_args = "warn"
mem_forget = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
needless_pass_by_ref_mut = "warn"
or_fun_call = "warn"
redundant_clone = "warn"
similar_names = "allow"
todo = "deny"
unimplemented = "deny"

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

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

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

[lints.rust]
let_underscore_drop = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_lifetimes = "warn"
unused_qualifications = "warn"

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

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

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