Skip to content

Commit b2ecf56

Browse files
authored
Merge pull request #165 from jryans/spans-feature
Add `spans` feature to control `proc-macro2`
2 parents 7aaf780 + 11e274b commit b2ecf56

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ test = false
1717
doctest = false
1818

1919
[features]
20-
default = ["std"]
20+
default = ["spans", "std"]
21+
spans = ["wasm-bindgen-macro/spans"]
2122
std = []
2223

2324
[dependencies]

crates/backend/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ description = """
1010
Backend code generation of the wasm-bindgen tool
1111
"""
1212

13+
[features]
14+
spans = ["proc-macro2/nightly"]
15+
1316
[dependencies]
1417
quote = '0.5'
15-
proc-macro2 = { version = "0.3", features = ["nightly"] }
18+
proc-macro2 = "0.3"
1619
wasm-bindgen-shared = { path = "../shared", version = "=0.2.5" }
1720
syn = { version = '0.13', features = ['full', 'visit-mut'] }
1821
serde_json = "1.0"

crates/macro/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ Definition of the `#[wasm_bindgen]` attribute, an internal dependency
1313
[lib]
1414
proc-macro = true
1515

16+
[features]
17+
spans = ["proc-macro2/nightly", "wasm-bindgen-backend/spans"]
18+
1619
[dependencies]
1720
syn = { version = '0.13', features = ['full'] }
1821
quote = '0.5'
19-
proc-macro2 = { version = "0.3", features = ["nightly"] }
22+
proc-macro2 = "0.3"
2023
serde_json = "1"
2124
wasm-bindgen-shared = { path = "../shared", version = "=0.2.5" }
2225
wasm-bindgen-backend = { path = "../backend", version = "=0.2.5" }

0 commit comments

Comments
 (0)