# 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.96.0"
name = "croma-core"
version = "1.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library-first ABC to MusicXML exporter"
readme = "README.md"
keywords = [
    "abc",
    "musicxml",
    "music",
    "notation",
]
categories = ["parser-implementations"]
license = "Apache-2.0"
repository = "https://github.com/ro-ag/croma"

[features]
musicxml-reader = ["dep:roxmltree"]

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

[[bench]]
name = "parser"
path = "benches/parser.rs"
harness = false

[[bench]]
name = "reader"
path = "benches/reader.rs"
harness = false
required-features = ["musicxml-reader"]

[[bench]]
name = "writer"
path = "benches/writer.rs"
harness = false

[dependencies.roxmltree]
version = "0.21"
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false

[lints.clippy]
dbg_macro = "warn"
todo = "warn"
unwrap_used = "warn"

[lints.rust]
unsafe_code = "forbid"
