Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-05-08 12:02:17 +00:00
Code Issues Projects Releases Wiki Activity
wasm-bindgen/build.rs

5 lines
138 B
Rust
Raw Normal View History

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.
2018-08-30 11:22:48 -07:00
// Empty `build.rs` so that `[package] links = ...` works in `Cargo.toml`.
Implement `AsRef<JsValue> for Closure<T>` This commit adds an implementation of `AsRef<JsValue>` for the `Closure<T>` type. Previously this was not possible because the `JsValue` didn't actually exist until the closure was passed to JS, but the implementation has been changed to ... something a bit more unconventional. The end result, however, is that `Closure<T>` now always contains a `JsValue`. The end result of this work is intended to be a precursor to binding callbacks in `web-sys` as `JsValue` everywhere but still allowing usage with `Closure<T>`.
2018-09-05 23:59:49 -07:00
fn main() {
println!("cargo:rerun-if-changed=build.rs");
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 58ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API