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

22 lines
618 B
TOML

[package]
name = "wasm-bindgen-backend"
version = "0.2.5"
authors = ["Nick Fitzgerald <fitzgen@gmail.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-backend"
description = """
Backend code generation of the wasm-bindgen tool
"""
[features]
spans = ["proc-macro2/nightly"]
[dependencies]
quote = '0.5'
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"