2023-01-06 10:54:34 +00:00
|
|
|
[package]
|
2023-01-08 10:52:53 -05:00
|
|
|
name = "grass_compiler"
|
2024-02-07 05:26:21 +00:00
|
|
|
version = "0.13.2"
|
2023-01-06 10:54:34 +00:00
|
|
|
edition = "2021"
|
2023-01-08 00:33:39 +00:00
|
|
|
description = "Internal implementation of the grass compiler"
|
2023-02-18 15:05:51 -05:00
|
|
|
readme = "README.md"
|
2023-01-08 00:33:39 +00:00
|
|
|
license = "MIT"
|
|
|
|
categories = ["web-programming"]
|
|
|
|
keywords = ["scss", "sass", "css", "web"]
|
|
|
|
repository = "https://github.com/connorskees/grass"
|
|
|
|
authors = ["Connor Skees <39542938+ConnorSkees@users.noreply.github.com>"]
|
2024-02-06 20:03:57 +01:00
|
|
|
rust-version = "1.70"
|
2023-01-06 10:54:34 +00:00
|
|
|
|
|
|
|
[lib]
|
2023-01-08 10:52:53 -05:00
|
|
|
name = "grass_compiler"
|
2023-01-06 10:54:34 +00:00
|
|
|
path = "src/lib.rs"
|
|
|
|
# crate-type = ["cdylib", "rlib"]
|
|
|
|
bench = false
|
|
|
|
|
2023-06-30 06:22:21 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
# To build locally:
|
2023-07-09 22:12:12 +00:00
|
|
|
# RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --no-deps --open
|
2023-06-30 06:22:21 +00:00
|
|
|
rustdoc-args = ["--cfg", "doc_cfg"]
|
|
|
|
|
2023-01-06 10:54:34 +00:00
|
|
|
[dependencies]
|
|
|
|
# todo: use lazy_static
|
|
|
|
once_cell = "1.15.0"
|
|
|
|
# todo: use xorshift for random numbers
|
|
|
|
rand = { version = "0.8", optional = true }
|
|
|
|
# todo: update to use asref<path>
|
|
|
|
# todo: update to expose more info (for eww)
|
|
|
|
# todo: update to use text_size::TextRange
|
|
|
|
codemap = "0.1.3"
|
|
|
|
wasm-bindgen = { version = "0.2.68", optional = true }
|
|
|
|
# todo: benchmark using phf for global functions
|
2024-02-06 20:03:57 +01:00
|
|
|
phf = { version = "0.11", features = ["macros"] }
|
|
|
|
indexmap = "2"
|
2023-01-06 10:54:34 +00:00
|
|
|
# todo: do we really need interning for things?
|
2024-02-06 20:03:57 +01:00
|
|
|
lasso = "0.7"
|
2023-01-06 10:54:34 +00:00
|
|
|
|
|
|
|
[features]
|
2023-02-18 15:05:51 -05:00
|
|
|
default = ["random", "custom-builtin-fns"]
|
2023-01-06 10:54:34 +00:00
|
|
|
# Option (enabled by default): enable the builtin functions `random([$limit])` and `unique-id()`
|
|
|
|
random = ["rand"]
|
|
|
|
# Option: expose JavaScript-friendly WebAssembly exports
|
2023-02-18 15:05:51 -05:00
|
|
|
wasm-exports = ["wasm-bindgen"]
|
|
|
|
# Option: expose internals necessary to implement custom builtin functions
|
2024-02-06 20:03:57 +01:00
|
|
|
custom-builtin-fns = []
|