# 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"
name = "fea-rs"
version = "0.21.0"
authors = ["Colin Rofls <colin@cmyr.net>"]
build = false
exclude = ["test-data"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tools for working with Adobe OpenType Feature files."
readme = "README.md"
keywords = [
    "fonts",
    "opentype",
]
categories = [
    "parsing",
    "text-processing",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/googlefonts/fontc"
resolver = "2"

[features]
cli = [
    "norad",
    "clap",
]
test = [
    "diff",
    "rayon",
    "serde",
    "serde_json",
    "clap",
]

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

[[bin]]
name = "fea-rs"
path = "src/bin/compile.rs"
required-features = ["cli"]

[[bin]]
name = "highlight"
path = "src/bin/highlight.rs"

[[bin]]
name = "parse_test"
path = "src/bin/parse_test.rs"

[[bin]]
name = "ttx_test"
path = "src/bin/ttx_test.rs"
required-features = ["test"]

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

[dependencies.ansi_term]
version = "0.12.1"

[dependencies.clap]
version = "4.0.32"
features = ["derive"]
optional = true

[dependencies.diff]
version = "0.1.12"
optional = true

[dependencies.env_logger]
version = "0.11.0"

[dependencies.fontdrasil]
version = "0.3.0"

[dependencies.indexmap]
version = "2.0"
features = ["serde"]

[dependencies.log]
version = "0.4"

[dependencies.norad]
version = "0.16.1"
optional = true
default-features = false

[dependencies.ordered-float]
version = "4.1.0"
features = ["serde"]

[dependencies.rayon]
version = "1.6"
optional = true

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

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

[dependencies.smol_str]
version = "0.2.0"
features = ["serde"]

[dependencies.thiserror]
version = "2.0"

[dependencies.write-fonts]
version = "0.44.1"
features = [
    "serde",
    "read",
]

[dev-dependencies.criterion]
version = "0.7"

[dev-dependencies.diff]
version = "0.1.12"

[dev-dependencies.rayon]
version = "1.5"

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

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