mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
script: Feature-gate all crown support. (#35055)
* script: Feature-gate all crown support. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Use cfg(crown) instead of a cargo feature. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
1bd34a5781
commit
875e387004
223 changed files with 442 additions and 417 deletions
|
@ -13,6 +13,7 @@ name = "script"
|
|||
path = "lib.rs"
|
||||
|
||||
[features]
|
||||
crown = ['js/crown']
|
||||
debugmozjs = ['js/debugmozjs']
|
||||
jitspew = ['js/jitspew']
|
||||
profilemozjs = ['js/profilemozjs']
|
||||
|
@ -23,6 +24,9 @@ refcell_backtrace = ["accountable-refcell"]
|
|||
webxr = ["webxr-api"]
|
||||
webgpu = []
|
||||
|
||||
[lints.rust]
|
||||
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(crown)'] }
|
||||
|
||||
[build-dependencies]
|
||||
phf_codegen = "0.11"
|
||||
phf_shared = "0.11"
|
||||
|
@ -72,7 +76,7 @@ image = { workspace = true }
|
|||
indexmap = { workspace = true }
|
||||
ipc-channel = { workspace = true }
|
||||
itertools = { workspace = true }
|
||||
js = { package = "mozjs", git = "https://github.com/servo/mozjs", features = ["crown"] }
|
||||
js = { package = "mozjs", git = "https://github.com/servo/mozjs" }
|
||||
jstraceable_derive = { path = "../jstraceable_derive" }
|
||||
keyboard-types = { workspace = true }
|
||||
libc = { workspace = true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue