wasm-bindgen/Cargo.toml
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

49 lines
1.0 KiB
TOML

[package]
name = "wasm-bindgen"
version = "0.2.5"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT/Apache-2.0"
readme = "README.md"
categories = ["wasm"]
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Easy support for interacting between JS and Rust.
"""
[lib]
test = false
doctest = false
[features]
default = ["spans", "std"]
spans = ["wasm-bindgen-macro/spans"]
std = []
[dependencies]
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.5" }
[dev-dependencies]
wasm-bindgen-cli-support = { path = "crates/cli-support", version = '=0.2.5' }
[workspace]
members = [
"crates/cli",
"examples/hello_world",
"examples/smorgasboard",
"examples/console_log",
"examples/dom",
"examples/math",
"examples/performance",
"examples/wasm-in-wasm",
"examples/closures",
"examples/no_modules",
"examples/add",
]
[profile.release]
lto = true
opt-level = 's'
panic = 'abort'