Add links section to Cargo.toml

Because only a single `wasm_bindgen` version can be used in a dependency graph,
pretend we link a native library so that `cargo` will provide better error
messages than the esoteric linker errors we would otherwise trigger.
This commit is contained in:
Nick Fitzgerald 2018-08-30 11:22:48 -07:00
parent df19b63c60
commit 81c9bbd1bd
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,10 @@ name = "wasm-bindgen"
version = "0.2.19"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
# Because only a single `wasm_bindgen` version can be used in a dependency
# graph, pretend we link a native library so that `cargo` will provide better
# error messages than the esoteric linker errors we would otherwise trigger.
links = "wasm_bindgen"
readme = "README.md"
categories = ["wasm"]
repository = "https://github.com/rustwasm/wasm-bindgen"

2
build.rs Normal file
View File

@ -0,0 +1,2 @@
// Empty `build.rs` so that `[package] links = ...` works in `Cargo.toml`.
fn main() {}