[package]
edition = "2021"
rust-version = "1.83"
name = "font-subset"
version = "0.1.0"
authors = ["Alex Ostrovski <ostrovski.alex@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenType font subsetting"
readme = "README.md"
keywords = [
"font",
"OpenType",
"WOFF2",
"subsetting",
]
categories = [
"encoding",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/slowli/font-tools"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
tracing = ["dep:tracing"]
woff2 = ["dep:brotli"]
[lib]
name = "font_subset"
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
required-features = ["woff2"]
[[test]]
name = "version_match"
path = "tests/version_match.rs"
[dependencies.brotli]
version = "8"
optional = true
default-features = false
[dependencies.tracing]
version = "0.1.44"
optional = true
[dev-dependencies.allsorts]
version = "0.16.1"
[dev-dependencies.assert_matches]
version = "1.5.0"
[dev-dependencies.chrono]
version = "0.4.42"
[dev-dependencies.doc-comment]
version = "0.3.4"
[dev-dependencies.tempfile]
version = "3.24.0"
[dev-dependencies.test-casing]
version = "=0.2.0-beta.1"
[dev-dependencies.version-sync]
version = "0.9.5"
[lints.clippy]
module_name_repetitions = "allow"
must_use_candidate = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"