Merge pull request #165 from jryans/spans-feature

Add `spans` feature to control `proc-macro2`
This commit is contained in:
Alex Crichton 2018-04-25 15:23:23 -05:00 committed by GitHub
commit b2ecf56cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -17,7 +17,8 @@ test = false
doctest = false
[features]
default = ["std"]
default = ["spans", "std"]
spans = ["wasm-bindgen-macro/spans"]
std = []
[dependencies]

View File

@ -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"

View File

@ -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" }