J. Ryan Stinnett 11e274b477 Add spans feature to control proc-macro2
Using `proc-macro2`'s `nightly` feature is a good default for most use cases.
However, it causes a build error if used together with crates such as
`cssparser` that also use `proc-macro2` from a build script.

This change adds a default enabled feature `spans` that users can disable if
they need to work around this conflict.

Fixes #160.
2018-04-25 14:42:21 -05:00

26 lines
738 B
TOML

[package]
name = "wasm-bindgen-macro"
version = "0.2.5"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
description = """
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 = "0.3"
serde_json = "1"
wasm-bindgen-shared = { path = "../shared", version = "=0.2.5" }
wasm-bindgen-backend = { path = "../backend", version = "=0.2.5" }