-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a reusable lightningcss-napi crate
- Loading branch information
1 parent
4eaed5c
commit db5a8ed
Showing
9 changed files
with
1,258 additions
and
1,201 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[workspace] | ||
members = [ | ||
"node", | ||
"napi", | ||
"selectors", | ||
"c", | ||
"derive", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
authors = ["Devon Govett <[email protected]>"] | ||
name = "lightningcss-napi" | ||
version = "0.1.0" | ||
description = "Node-API bindings for Lightning CSS" | ||
license = "MPL-2.0" | ||
repository = "https://github.com/parcel-bundler/lightningcss" | ||
edition = "2021" | ||
|
||
[features] | ||
default = [] | ||
visitor = ["lightningcss/visitor"] | ||
bundler = ["dep:crossbeam-channel", "dep:rayon"] | ||
|
||
[dependencies] | ||
serde = { version = "1.0.123", features = ["derive"] } | ||
serde_bytes = "0.11.5" | ||
cssparser = "0.33.0" | ||
lightningcss = { path = "../", features = ["nodejs", "serde"] } | ||
parcel_sourcemap = { version = "2.1.1", features = ["json"] } | ||
serde-detach = "0.0.1" | ||
smallvec = { version = "1.7.0", features = ["union"] } | ||
napi = {version = "=2.10.3", default-features = false, features = ["napi4", "napi5", "compat-mode", "serde-json"]} | ||
crossbeam-channel = { version = "0.5.6", optional = true } | ||
rayon = { version = "1.5.1", optional = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.