span-lang 0.4.0

Source positions, spans, and byte-to-line/col mapping for language tooling.
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.85"
name = "span-lang"
version = "0.4.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Source positions, spans, and byte-to-line/col mapping for language tooling."
homepage = "https://github.com/jamesgober/span-lang"
documentation = "https://docs.rs/span-lang"
readme = "README.md"
keywords = [
    "compiler",
    "parser",
    "language",
    "spans",
]
categories = [
    "development-tools",
    "parsing",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/span-lang"

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

[features]
default = ["std"]
serde = ["dep:serde"]
std = []

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

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

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

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

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

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

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

[dev-dependencies.serde_json]
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"