mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Merge pull request #165 from jryans/spans-feature
Add `spans` feature to control `proc-macro2`
This commit is contained in:
commit
b2ecf56cb6
@ -17,7 +17,8 @@ test = false
|
||||
doctest = false
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = ["spans", "std"]
|
||||
spans = ["wasm-bindgen-macro/spans"]
|
||||
std = []
|
||||
|
||||
[dependencies]
|
||||
|
@ -10,9 +10,12 @@ description = """
|
||||
Backend code generation of the wasm-bindgen tool
|
||||
"""
|
||||
|
||||
[features]
|
||||
spans = ["proc-macro2/nightly"]
|
||||
|
||||
[dependencies]
|
||||
quote = '0.5'
|
||||
proc-macro2 = { version = "0.3", features = ["nightly"] }
|
||||
proc-macro2 = "0.3"
|
||||
wasm-bindgen-shared = { path = "../shared", version = "=0.2.5" }
|
||||
syn = { version = '0.13', features = ['full', 'visit-mut'] }
|
||||
serde_json = "1.0"
|
||||
|
@ -13,10 +13,13 @@ Definition of the `#[wasm_bindgen]` attribute, an internal dependency
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
[features]
|
||||
spans = ["proc-macro2/nightly", "wasm-bindgen-backend/spans"]
|
||||
|
||||
[dependencies]
|
||||
syn = { version = '0.13', features = ['full'] }
|
||||
quote = '0.5'
|
||||
proc-macro2 = { version = "0.3", features = ["nightly"] }
|
||||
proc-macro2 = "0.3"
|
||||
serde_json = "1"
|
||||
wasm-bindgen-shared = { path = "../shared", version = "=0.2.5" }
|
||||
wasm-bindgen-backend = { path = "../backend", version = "=0.2.5" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user