grass/crates/lib/Cargo.toml

62 lines
1.6 KiB
TOML
Raw Normal View History

2023-01-07 19:47:04 +00:00
[package]
name = "grass"
2024-08-04 18:54:56 +00:00
version = "0.13.4"
2023-01-07 19:47:04 +00:00
description = "A Sass compiler written purely in Rust"
2023-01-08 12:06:58 -05:00
readme = "../../README.md"
2023-01-07 19:47:04 +00:00
license = "MIT"
categories = ["command-line-utilities", "web-programming"]
keywords = ["scss", "sass", "css", "web"]
repository = "https://github.com/connorskees/grass"
2023-01-08 00:33:39 +00:00
authors = ["Connor Skees <39542938+ConnorSkees@users.noreply.github.com>"]
2023-01-07 19:47:04 +00:00
edition = "2021"
2024-05-19 04:06:29 +00:00
include = [
"src",
"Cargo.toml",
"README.md",
"CHANGELOG.md",
"Cargo.lock",
"LICENSE",
]
2023-01-07 19:47:04 +00:00
default-run = "grass"
2024-02-06 20:03:57 +01:00
rust-version = "1.70"
2023-01-07 19:47:04 +00:00
[[bin]]
name = "grass"
path = "src/main.rs"
required-features = ["commandline"]
[lib]
name = "grass"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
2023-01-07 19:47:04 +00:00
bench = false
[package.metadata.docs.rs]
# To build locally:
2023-07-09 22:24:54 +00:00
# RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --features=macro --no-deps --open
features = ["macro"]
rustdoc-args = ["--cfg", "doc_cfg"]
2023-01-07 19:47:04 +00:00
[dependencies]
wasm-bindgen = { version = "0.2", optional = true }
getrandom = { version = "0.2", features = ["js"] }
2024-08-04 18:54:56 +00:00
grass_compiler = { path = "../compiler", version = "=0.13.4", default-features = false }
include_sass = { path = "../include_sass", version = "0.13.4", optional = true }
2023-07-14 16:04:25 +00:00
clap = { version = "4.3.10", optional = true }
2023-01-07 19:47:04 +00:00
[features]
# todo: no commandline by default
default = ["commandline", "random"]
# Option (enabled by default): build a binary using clap
commandline = ["clap"]
2023-01-08 10:52:53 -05:00
random = ["grass_compiler/random"]
wasm-exports = ["grass_compiler/wasm-exports", "wasm-bindgen"]
2023-01-07 19:47:04 +00:00
# Option: include the proc macro `include_sass!`
macro = ["include_sass"]
nightly = ["include_sass/nightly"]
[dev-dependencies]
tempfile = "3.3.0"
paste = "1.0.3"