mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 21:02:10 +03:00
b71f3374c5
This commit rejiggers some documentation of `wasm-bindgen` in a few significant ways: * The main landing page now has text and links to the Game of Life tutorial and `wasm-pack`. * The "whirlwind tour" was deleted as it wasn't really serving any purpose that the Game of Life plus the later references weren't already serving. * The "no modules" example was renamed to "without a bundler" * A dedicated section on "Deployment" was added which replaces the previous "No ES Modules" page. This is hopefully more descriptive and also prominently mentions the various options for deployment.
94 lines
2.7 KiB
TOML
94 lines
2.7 KiB
TOML
[package]
|
|
name = "wasm-bindgen"
|
|
version = "0.2.37"
|
|
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"
|
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
|
documentation = "https://docs.rs/wasm-bindgen"
|
|
description = """
|
|
Easy support for interacting between JS and Rust.
|
|
"""
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ['serde-serialize']
|
|
|
|
[lib]
|
|
test = false
|
|
doctest = false
|
|
|
|
[features]
|
|
default = ["spans", "std"]
|
|
spans = ["wasm-bindgen-macro/spans"]
|
|
std = []
|
|
serde-serialize = ["serde", "serde_json", "std"]
|
|
nightly = []
|
|
|
|
# Whether or not the `#[wasm_bindgen]` macro is strict and generates an error on
|
|
# all unused attributes
|
|
strict-macro = ["wasm-bindgen-macro/strict-macro"]
|
|
|
|
# This is only for debugging wasm-bindgen! No stability guarantees, so enable
|
|
# this at your own peril!
|
|
xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"]
|
|
|
|
[dependencies]
|
|
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.37" }
|
|
serde = { version = "1.0", optional = true }
|
|
serde_json = { version = "1.0", optional = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
|
js-sys = { path = 'crates/js-sys', version = '0.3.14' }
|
|
wasm-bindgen-test = { path = 'crates/test', version = '=0.2.37' }
|
|
serde_derive = "1.0"
|
|
wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' }
|
|
wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' }
|
|
|
|
[workspace]
|
|
members = [
|
|
"crates/cli",
|
|
"crates/js-sys",
|
|
"crates/test",
|
|
"crates/test/sample",
|
|
"crates/macro/ui-tests",
|
|
"crates/web-sys",
|
|
"crates/webidl",
|
|
"crates/webidl-tests",
|
|
"examples/add",
|
|
"examples/canvas",
|
|
"examples/char",
|
|
"examples/closures",
|
|
"examples/console_log",
|
|
"examples/duck-typed-interfaces",
|
|
"examples/dom",
|
|
"examples/fetch",
|
|
"examples/guide-supported-types-examples",
|
|
"examples/hello_world",
|
|
"examples/import_js",
|
|
"examples/julia_set",
|
|
"examples/paint",
|
|
"examples/performance",
|
|
"examples/raytrace-parallel",
|
|
"examples/request-animation-frame",
|
|
"examples/todomvc",
|
|
"examples/wasm-in-wasm",
|
|
"examples/wasm2js",
|
|
"examples/webaudio",
|
|
"examples/webgl",
|
|
"examples/without-a-bundler",
|
|
"tests/no-std",
|
|
]
|
|
exclude = ['crates/typescript']
|
|
|
|
[patch.crates-io]
|
|
wasm-bindgen = { path = '.' }
|
|
wasm-bindgen-futures = { path = 'crates/futures' }
|
|
js-sys = { path = 'crates/js-sys' }
|
|
web-sys = { path = 'crates/web-sys' }
|