# 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.85"
name = "source-lang"
version = "0.3.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Source file and buffer management with multi-file source maps."
homepage = "https://github.com/jamesgober/source-lang"
documentation = "https://docs.rs/source-lang"
readme = "README.md"
keywords = [
    "compiler",
    "parser",
    "language",
    "source-map",
]
categories = [
    "development-tools",
    "parsing",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/source-lang"

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

[features]
default = ["std"]
serde = [
    "dep:serde",
    "span-lang/serde",
]
std = ["span-lang/std"]

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

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

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

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

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dependencies.span-lang]
version = "0.4"
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

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

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"
