Signed-off-by: Nico Burns <nico@nicoburns.com> Differential Revision: https://phabricator.services.mozilla.com/D291829
48 lines
1.3 KiB
TOML
48 lines
1.3 KiB
TOML
[package]
|
|
name = "cssparser"
|
|
version = "0.37.0"
|
|
authors = ["Simon Sapin <simon.sapin@exyr.org>"]
|
|
|
|
description = "Rust implementation of CSS Syntax Level 3"
|
|
documentation = "https://docs.rs/cssparser/"
|
|
repository = "https://github.com/servo/rust-cssparser"
|
|
readme = "README.md"
|
|
keywords = ["css", "syntax", "parser"]
|
|
license = "MPL-2.0"
|
|
edition = "2018"
|
|
rust-version = "1.71"
|
|
|
|
exclude = ["src/css-parsing-tests/**", "src/big-data-url.css"]
|
|
|
|
[dependencies]
|
|
dtoa-short = "0.3"
|
|
itoa = "1.0"
|
|
smallvec = "1.0"
|
|
|
|
# Optional dependencies
|
|
cssparser-macros = { path = "./macros", version = "0.7.0", optional = true }
|
|
malloc_size_of = { version = "0.1", default-features = false, optional = true }
|
|
phf = { version = "0.13.1", features = ["macros"], optional = true }
|
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1.0.25"
|
|
difference = "2.0"
|
|
encoding_rs = "0.8"
|
|
|
|
[profile.profiling]
|
|
inherits = "release"
|
|
debug = true
|
|
|
|
[features]
|
|
default = ["fast_match_byte", "fast_match_color"]
|
|
bench = []
|
|
fast_match_byte = ["dep:cssparser-macros"]
|
|
fast_match_color = ["dep:phf"]
|
|
# Useful for skipping tests when execution is slow, e.g., under miri
|
|
skip_long_tests = []
|
|
|
|
[workspace]
|
|
members = [".", "./macros", "./color"]
|
|
default-members = [".", "./macros", "./color"]
|