diff --git a/.cargo/config.toml b/.cargo/config.toml index cf1995cbc32..59337eed45f 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,13 +3,13 @@ runner = 'cargo run -p wasm-bindgen-cli --bin wasm-bindgen-test-runner --' [target.'cfg(all())'] rustflags = [ - "-Adead_code", - "-Anon_upper_case_globals", - "-Aunused_doc_comments", - "-Aclippy::large_enum_variant", - "-Aclippy::missing_safety_doc", - "-Aclippy::new_without_default", - "-Aclippy::overly_complex_bool_expr", - "-Aclippy::too_many_arguments", - "-Aclippy::type_complexity" + "-Adead_code", + "-Anon_upper_case_globals", + "-Aunused_doc_comments", + "-Aclippy::large_enum_variant", + "-Aclippy::missing_safety_doc", + "-Aclippy::new_without_default", + "-Aclippy::overly_complex_bool_expr", + "-Aclippy::too_many_arguments", + "-Aclippy::type_complexity", ] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d3a57be9904..85f7ade42dc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,19 @@ jobs: - run: rustup update --no-self-update stable && rustup default stable - run: rustup component add rustfmt - run: cargo fmt --all -- --check + + # Check TOML style by using Taplo. + taplo: + name: Taplo + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/install-action@v2 + with: + tool: taplo-cli + - run: taplo fmt --check # Run `cargo check` over everything check: diff --git a/Cargo.toml b/Cargo.toml index 282df895512..251995815eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,19 +1,19 @@ [package] -name = "wasm-bindgen" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -readme = "README.md" categories = ["wasm"] -repository = "https://github.com/rustwasm/wasm-bindgen" -homepage = "https://rustwasm.github.io/" -documentation = "https://docs.rs/wasm-bindgen" description = """ Easy support for interacting between JS and Rust. """ +documentation = "https://docs.rs/wasm-bindgen" edition = "2021" -rust-version = "1.57" +homepage = "https://rustwasm.github.io/" include = ["/build.rs", "/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen" +readme = "README.md" +repository = "https://github.com/rustwasm/wasm-bindgen" +rust-version = "1.57" +version = "0.2.92" [package.metadata.docs.rs] features = ["serde-serialize"] @@ -23,10 +23,10 @@ test = false [features] default = ["spans", "std"] +enable-interning = ["std"] +serde-serialize = ["serde", "serde_json", "std"] spans = ["wasm-bindgen-macro/spans"] std = [] -serde-serialize = ["serde", "serde_json", "std"] -enable-interning = ["std"] # Whether or not the `#[wasm_bindgen]` macro is strict and generates an error on # all unused attributes @@ -38,31 +38,28 @@ gg-alloc = ["wasm-bindgen-test/gg-alloc"] # 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", -] +xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"] [dependencies] +cfg-if = "1.0.0" once_cell = "1.12" -wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.92" } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } -cfg-if = "1.0.0" +wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.92" } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] js-sys = { path = 'crates/js-sys' } -wasm-bindgen-test = { path = 'crates/test' } -wasm-bindgen-futures = { path = 'crates/futures' } serde_derive = "1.0" +wasm-bindgen-futures = { path = 'crates/futures' } +wasm-bindgen-test = { path = 'crates/test' } wasm-bindgen-test-crate-a = { path = 'tests/crates/a' } wasm-bindgen-test-crate-b = { path = 'tests/crates/b' } [lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = [ - 'cfg(wasm_bindgen_unstable_test_coverage)', -] } +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] } [workspace] +exclude = ["crates/msrv"] members = [ "benchmarks", "crates/cli", @@ -108,11 +105,10 @@ members = [ "examples/synchronous-instantiation", "tests/no-std", ] -exclude = ["crates/msrv"] resolver = "2" [patch.crates-io] +js-sys = { path = 'crates/js-sys' } wasm-bindgen = { path = '.' } wasm-bindgen-futures = { path = 'crates/futures' } -js-sys = { path = 'crates/js-sys' } web-sys = { path = 'crates/web-sys' } diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index 5b14b808884..8c41d2d7998 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "wasm-bindgen-benchmark" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-bindgen-benchmark" publish = false +version = "0.0.0" [dependencies] +js-sys = { path = '../crates/js-sys' } wasm-bindgen = { path = '../' } web-sys = { path = '../crates/web-sys', features = ['Node'] } -js-sys = { path = '../crates/js-sys' } [lib] crate-type = ['cdylib'] diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index 6852a5be5a9..a95f148fbb7 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -1,21 +1,21 @@ [package] -name = "wasm-bindgen-backend" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen-backend" description = """ Backend code generation of the wasm-bindgen tool """ +documentation = "https://docs.rs/wasm-bindgen-backend" edition = "2021" -rust-version = "1.57" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-backend" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend" +rust-version = "1.57" +version = "0.2.92" [features] -spans = [] extra-traits = ["syn/extra-traits"] +spans = [] [dependencies] bumpalo = "3.0.0" diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml index eba33234327..c38417d37c3 100644 --- a/crates/cli-support/Cargo.toml +++ b/crates/cli-support/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "wasm-bindgen-cli-support" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen-cli-support" description = """ Shared support for the wasm-bindgen-cli package, an internal dependency """ +documentation = "https://docs.rs/wasm-bindgen-cli-support" edition = "2021" -rust-version = "1.76" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-cli-support" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support" +rust-version = "1.76" +version = "0.2.92" [dependencies] anyhow = "1.0" @@ -20,6 +20,7 @@ log = "0.4" rustc-demangle = "0.1.13" serde_json = "1.0" tempfile = "3.0" +unicode-ident = "1.0.5" walrus = "0.21" wasm-bindgen-externref-xform = { path = '../externref-xform', version = '=0.2.92' } wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.92' } @@ -27,4 +28,3 @@ wasm-bindgen-shared = { path = "../shared", version = '=0.2.92' } wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.92' } wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.92' } wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.92' } -unicode-ident = "1.0.5" diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 8bcb97fe0e6..57dec1cbb1c 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,39 +1,36 @@ [package] -name = "wasm-bindgen-cli" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://rustwasm.github.io/wasm-bindgen/" categories = ["wasm"] +default-run = 'wasm-bindgen' description = """ Command line interface of the `#[wasm_bindgen]` attribute and project. For more information see https://github.com/rustwasm/wasm-bindgen. """ +documentation = "https://rustwasm.github.io/wasm-bindgen/" edition = "2021" -default-run = 'wasm-bindgen' -rust-version = "1.76" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-cli" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli" +rust-version = "1.76" +version = "0.2.92" [package.metadata.binstall] -pkg-url = "https://github.com/rustwasm/wasm-bindgen/releases/download/{ version }/wasm-bindgen-{ version }-{ target }{ archive-suffix }" bin-dir = "wasm-bindgen-{ version }-{ target }/{ bin }{ binary-ext }" +pkg-url = "https://github.com/rustwasm/wasm-bindgen/releases/download/{ version }/wasm-bindgen-{ version }-{ target }{ archive-suffix }" [dependencies] +anyhow = "1.0" docopt = "1.0" env_logger = "0.11.5" -anyhow = "1.0" log = "0.4" native-tls = { version = "0.2", default-features = false, optional = true } rouille = { version = "3.0.0", default-features = false } serde = { version = "1.0", features = ['derive'] } serde_derive = "1.0" serde_json = "1.0" -ureq = { version = "2.7", default-features = false, features = [ - "brotli", - "gzip", -] } +ureq = { version = "2.7", default-features = false, features = ["brotli", "gzip"] } walrus = { version = "0.21", features = ['parallel'] } wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.92" } wasm-bindgen-shared = { path = "../shared", version = "=0.2.92" } @@ -48,8 +45,8 @@ wasmparser = "0.212" wasmprinter = "0.212" [[test]] -name = "reference" harness = false +name = "reference" [features] default = ["rustls-tls"] diff --git a/crates/example-tests/Cargo.toml b/crates/example-tests/Cargo.toml index 03fdfe5c43c..ae947439437 100644 --- a/crates/example-tests/Cargo.toml +++ b/crates/example-tests/Cargo.toml @@ -1,26 +1,21 @@ [package] -name = "example-tests" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "example-tests" publish = false +version = "0.0.0" [features] default = ["stable"] -stable = [] nightly = [] +stable = [] [dependencies] anyhow = "1.0.75" futures-util = { version = "0.3.28", features = ["sink"] } http = "1" hyper = "1" -hyper-util = { version = "0.1.6", features = [ - "http1", - "service", - "server", - "tokio", -] } +hyper-util = { version = "0.1.6", features = ["http1", "service", "server", "tokio"] } mozprofile = "0.9" mozrunner = "0.15" serde = { version = "1.0", features = ["derive"] } diff --git a/crates/externref-xform/Cargo.toml b/crates/externref-xform/Cargo.toml index 8a5644dc693..1de15ddd248 100644 --- a/crates/externref-xform/Cargo.toml +++ b/crates/externref-xform/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "wasm-bindgen-externref-xform" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/externref-xform" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen-externref-xform" description = """ Internal externref transformations for wasm-bindgen """ +documentation = "https://docs.rs/wasm-bindgen-externref-xform" edition = "2021" -rust-version = "1.76" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-externref-xform" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/externref-xform" +rust-version = "1.76" +version = "0.2.92" [dependencies] anyhow = "1.0" @@ -25,5 +25,5 @@ wast = "212" wat = "1.0" [[test]] -name = "all" harness = false +name = "all" diff --git a/crates/futures/Cargo.toml b/crates/futures/Cargo.toml index 257c7fd2b4d..8ce2dd30d78 100644 --- a/crates/futures/Cargo.toml +++ b/crates/futures/Cargo.toml @@ -2,15 +2,15 @@ authors = ["The wasm-bindgen Developers"] description = "Bridging the gap between Rust Futures and JavaScript Promises" documentation = "https://docs.rs/wasm-bindgen-futures" +edition = "2021" homepage = "https://rustwasm.github.io/wasm-bindgen/" +include = ["/LICENSE-*", "/src"] license = "MIT OR Apache-2.0" name = "wasm-bindgen-futures" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures" readme = "./README.md" -version = "0.4.42" -edition = "2021" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures" rust-version = "1.57" -include = ["/LICENSE-*", "/src"] +version = "0.4.42" [package.metadata.docs.rs] all-features = true @@ -18,22 +18,19 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] cfg-if = "1.0.0" +futures-core = { version = '0.3.8', default-features = false, optional = true } js-sys = { path = "../js-sys", version = '0.3.69' } wasm-bindgen = { path = "../..", version = '0.2.92' } -futures-core = { version = '0.3.8', default-features = false, optional = true } [features] futures-core-03-stream = ['futures-core'] [target.'cfg(target_feature = "atomics")'.dependencies.web-sys] +features = ["MessageEvent", "Worker"] path = "../web-sys" version = "0.3.24" -features = [ - "MessageEvent", - "Worker", -] [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { path = '../test' } futures-channel-preview = { version = "0.3.0-alpha.18" } futures-lite = { version = "1.11.3", default-features = false } +wasm-bindgen-test = { path = '../test' } diff --git a/crates/js-sys/Cargo.toml b/crates/js-sys/Cargo.toml index 18f969e2e7c..986b1152c7f 100644 --- a/crates/js-sys/Cargo.toml +++ b/crates/js-sys/Cargo.toml @@ -1,31 +1,31 @@ [package] -name = "js-sys" -version = "0.3.69" authors = ["The wasm-bindgen Developers"] -readme = "./README.md" categories = ["wasm"] -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/js-sys" description = """ Bindings for all JS global objects and functions in all JS environments like Node.js and browsers, built on `#[wasm_bindgen]` using the `wasm-bindgen` crate. """ -license = "MIT OR Apache-2.0" +documentation = "https://docs.rs/js-sys" edition = "2021" -rust-version = "1.57" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "js-sys" +readme = "./README.md" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys" +rust-version = "1.57" +version = "0.3.69" [lib] -test = false doctest = false +test = false [dependencies] wasm-bindgen = { path = "../..", version = "0.2.92" } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { path = '../test' } wasm-bindgen-futures = { path = '../futures' } +wasm-bindgen-test = { path = '../test' } web-sys = { path = "../web-sys", features = ["Headers", "Response", "ResponseInit"] } [lints.rust] diff --git a/crates/macro-support/Cargo.toml b/crates/macro-support/Cargo.toml index fd8c02b2783..4e9b76cf31a 100644 --- a/crates/macro-support/Cargo.toml +++ b/crates/macro-support/Cargo.toml @@ -1,26 +1,26 @@ [package] -name = "wasm-bindgen-macro-support" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen" description = """ The part of the implementation of the `#[wasm_bindgen]` attribute that is not in the shared backend crate """ +documentation = "https://docs.rs/wasm-bindgen" edition = "2021" -rust-version = "1.57" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-macro-support" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support" +rust-version = "1.57" +version = "0.2.92" [features] -spans = ["wasm-bindgen-backend/spans"] extra-traits = ["syn/extra-traits"] +spans = ["wasm-bindgen-backend/spans"] strict-macro = [] [dependencies] -syn = { version = '2.0', features = ['visit', 'full'] } -quote = '1.0' proc-macro2 = "1.0" +quote = '1.0' +syn = { version = '2.0', features = ['visit', 'full'] } wasm-bindgen-backend = { path = "../backend", version = "=0.2.92" } wasm-bindgen-shared = { path = "../shared", version = "=0.2.92" } diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml index 9a738c7a533..aae505645cc 100644 --- a/crates/macro/Cargo.toml +++ b/crates/macro/Cargo.toml @@ -1,29 +1,29 @@ [package] -name = "wasm-bindgen-macro" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen" description = """ Definition of the `#[wasm_bindgen]` attribute, an internal dependency """ +documentation = "https://docs.rs/wasm-bindgen" edition = "2021" -rust-version = "1.57" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-macro" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro" +rust-version = "1.57" +version = "0.2.92" [lib] proc-macro = true [features] spans = ["wasm-bindgen-macro-support/spans"] -xxx_debug_only_print_generated_code = [] strict-macro = ["wasm-bindgen-macro-support/strict-macro"] +xxx_debug_only_print_generated_code = [] [dependencies] -wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.92" } quote = "1.0" +wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.92" } [dev-dependencies] js-sys = { path = "../js-sys" } @@ -33,6 +33,4 @@ wasm-bindgen-futures = { path = "../futures" } web-sys = { path = "../web-sys", features = ["Worker"] } [lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = [ - 'cfg(wasm_bindgen_unstable_test_coverage)', -] } +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] } diff --git a/crates/msrv/cli/Cargo.toml b/crates/msrv/cli/Cargo.toml index d283451c04a..7f7c5e7a686 100644 --- a/crates/msrv/cli/Cargo.toml +++ b/crates/msrv/cli/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "msrv-cli-test" -version = "0.0.0" edition = "2021" +name = "msrv-cli-test" publish = false +version = "0.0.0" [dependencies] wasm-bindgen-cli = { path = "../../cli" } wasm-bindgen-cli-support = { path = "../../cli-support" } -wasm-bindgen-wasm-interpreter = { path = "../../wasm-interpreter" } -wasm-bindgen-threads-xform = { path = "../../threads-xform" } -wasm-bindgen-multi-value-xform = { path = "../../multi-value-xform" } wasm-bindgen-externref-xform = { path = "../../externref-xform" } +wasm-bindgen-multi-value-xform = { path = "../../multi-value-xform" } +wasm-bindgen-threads-xform = { path = "../../threads-xform" } wasm-bindgen-wasm-conventions = { path = "../../wasm-conventions" } +wasm-bindgen-wasm-interpreter = { path = "../../wasm-interpreter" } diff --git a/crates/msrv/lib/Cargo.toml b/crates/msrv/lib/Cargo.toml index 2fe30ddec40..c01fce77871 100644 --- a/crates/msrv/lib/Cargo.toml +++ b/crates/msrv/lib/Cargo.toml @@ -1,20 +1,20 @@ [package] -name = "msrv-library-test" -version = "0.0.0" edition = "2021" +name = "msrv-library-test" publish = false +version = "0.0.0" [dependencies] -wasm-bindgen = { path = "../../../" } js-sys = { path = "../../js-sys" } -web-sys = { path = "../../web-sys" } +wasm-bindgen = { path = "../../../" } +wasm-bindgen-backend = { path = "../../backend" } wasm-bindgen-futures = { path = "../../futures" } -wasm-bindgen-test = { path = "../../test" } wasm-bindgen-macro = { path = "../../macro" } -wasm-bindgen-test-macro = { path = "../../test-macro" } wasm-bindgen-macro-support = { path = "../../macro-support" } -wasm-bindgen-backend = { path = "../../backend" } wasm-bindgen-shared = { path = "../../shared" } +wasm-bindgen-test = { path = "../../test" } +wasm-bindgen-test-macro = { path = "../../test-macro" } +web-sys = { path = "../../web-sys" } bumpalo = "=3.12.0" log = "=0.4.18" diff --git a/crates/multi-value-xform/Cargo.toml b/crates/multi-value-xform/Cargo.toml index 197ae423f77..05a18baf37a 100644 --- a/crates/multi-value-xform/Cargo.toml +++ b/crates/multi-value-xform/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "wasm-bindgen-multi-value-xform" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/multi-value-xform" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen-multi-value-xform" description = """ Internal multi-value transformations for wasm-bindgen """ +documentation = "https://docs.rs/wasm-bindgen-multi-value-xform" edition = "2021" -rust-version = "1.76" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-multi-value-xform" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/multi-value-xform" +rust-version = "1.76" +version = "0.2.92" [dependencies] anyhow = "1.0" @@ -25,5 +25,5 @@ wast = "212" wat = "1.0" [[test]] -name = "all" harness = false +name = "all" diff --git a/crates/shared/Cargo.toml b/crates/shared/Cargo.toml index aa853bae08f..cc505182138 100644 --- a/crates/shared/Cargo.toml +++ b/crates/shared/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "wasm-bindgen-shared" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen-shared" description = """ Shared support between wasm-bindgen and wasm-bindgen cli, an internal dependency. """ +documentation = "https://docs.rs/wasm-bindgen-shared" edition = "2021" -rust-version = "1.57" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/build.rs", "/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-shared" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared" +rust-version = "1.57" +version = "0.2.92" # 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 diff --git a/crates/test-macro/Cargo.toml b/crates/test-macro/Cargo.toml index 89b6bf48223..50bc35d077e 100644 --- a/crates/test-macro/Cargo.toml +++ b/crates/test-macro/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "wasm-bindgen-test-macro" -version = "0.3.42" authors = ["The wasm-bindgen Developers"] description = "Internal testing macro for wasm-bindgen" +edition = "2021" +include = ["/LICENSE-*", "/src"] license = "MIT OR Apache-2.0" +name = "wasm-bindgen-test-macro" repository = "https://github.com/rustwasm/wasm-bindgen" -edition = "2021" rust-version = "1.57" -include = ["/LICENSE-*", "/src"] +version = "0.3.42" [lib] proc-macro = true @@ -15,13 +15,16 @@ proc-macro = true [dependencies] proc-macro2 = "1.0" quote = "1.0" -syn = { version = "2.0", default-features = false, features = [ "parsing", "proc-macro", "derive", "printing" ] } +syn = { version = "2.0", default-features = false, features = [ + "parsing", + "proc-macro", + "derive", + "printing", +] } [dev-dependencies] -wasm-bindgen-test = { path = "../test" } trybuild = "1.0" +wasm-bindgen-test = { path = "../test" } [lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = [ - 'cfg(wasm_bindgen_unstable_test_coverage)', -] } +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] } diff --git a/crates/test/Cargo.toml b/crates/test/Cargo.toml index e8135d9a6fb..92b02f3da4b 100644 --- a/crates/test/Cargo.toml +++ b/crates/test/Cargo.toml @@ -1,30 +1,28 @@ [package] -name = "wasm-bindgen-test" -version = "0.3.42" authors = ["The wasm-bindgen Developers"] description = "Internal testing crate for wasm-bindgen" +edition = "2021" +include = ["/LICENSE-*", "/src"] license = "MIT OR Apache-2.0" +name = "wasm-bindgen-test" repository = "https://github.com/rustwasm/wasm-bindgen" -edition = "2021" rust-version = "1.57" -include = ["/LICENSE-*", "/src"] +version = "0.3.42" [dependencies] console_error_panic_hook = '0.1' +gg-alloc = { version = "1.0", optional = true } js-sys = { path = '../js-sys', version = '0.3.69' } scoped-tls = "1.0" wasm-bindgen = { path = '../..', version = '0.2.92' } wasm-bindgen-futures = { path = '../futures', version = '0.4.42' } wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.42' } -gg-alloc = { version = "1.0", optional = true } [target.'cfg(all(target_arch = "wasm32", wasm_bindgen_unstable_test_coverage))'.dependencies] minicov = "0.3" [lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = [ - 'cfg(wasm_bindgen_unstable_test_coverage)', -] } +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] } [lib] test = false diff --git a/crates/test/sample/Cargo.toml b/crates/test/sample/Cargo.toml index 7b0cb8107b5..e6d8ea5dee4 100644 --- a/crates/test/sample/Cargo.toml +++ b/crates/test/sample/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "sample" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "sample" publish = false +version = "0.0.0" [lib] test = false diff --git a/crates/threads-xform/Cargo.toml b/crates/threads-xform/Cargo.toml index 7672c15b2fc..d19fdd59930 100644 --- a/crates/threads-xform/Cargo.toml +++ b/crates/threads-xform/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "wasm-bindgen-threads-xform" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/threads-xform" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen-threads-xform" description = """ Support for threading-related transformations in wasm-bindgen """ +documentation = "https://docs.rs/wasm-bindgen-threads-xform" edition = "2021" -rust-version = "1.76" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-threads-xform" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/threads-xform" +rust-version = "1.76" +version = "0.2.92" [dependencies] anyhow = "1.0" @@ -20,10 +20,10 @@ wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2. [dev-dependencies] rayon = "1.0" -wasmprinter = "0.212" wasmparser = "0.212" +wasmprinter = "0.212" wat = "1.0" [[test]] -name = "all" harness = false +name = "all" diff --git a/crates/typescript-tests/Cargo.toml b/crates/typescript-tests/Cargo.toml index 2cd71930ba4..90d394bc285 100644 --- a/crates/typescript-tests/Cargo.toml +++ b/crates/typescript-tests/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "typescript-tests" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "typescript-tests" publish = false +version = "0.0.0" [dependencies] -wasm-bindgen = { path = '../..' } -wasm-bindgen-futures = { path = '../futures' } -web-sys = { path = '../web-sys', features = [ 'HtmlElement', 'Node', 'Document' ] } js-sys = { path = '../js-sys' } serde = { version = "1.0", features = ["derive"] } serde-wasm-bindgen = "0.6" +wasm-bindgen = { path = '../..' } +wasm-bindgen-futures = { path = '../futures' } +web-sys = { path = '../web-sys', features = ['HtmlElement', 'Node', 'Document'] } [lib] crate-type = ['cdylib'] diff --git a/crates/wasm-conventions/Cargo.toml b/crates/wasm-conventions/Cargo.toml index fe3fd4421c4..aff8e40a63a 100644 --- a/crates/wasm-conventions/Cargo.toml +++ b/crates/wasm-conventions/Cargo.toml @@ -1,20 +1,20 @@ [package] -name = "wasm-bindgen-wasm-conventions" -version = "0.2.92" authors = ["The wasm-bindgen developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/wasm-conventions" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen-wasm-conventions" description = "Utilities for working with Wasm codegen conventions (usually established by LLVM/lld)" +documentation = "https://docs.rs/wasm-bindgen-wasm-conventions" edition = "2021" -rust-version = "1.76" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-wasm-conventions" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/wasm-conventions" +rust-version = "1.76" +version = "0.2.92" [dependencies] leb128 = "0.2" walrus = "0.21" # Matching the version `walrus` depends on. -wasmparser = "0.212" anyhow = "1.0" log = "0.4" +wasmparser = "0.212" diff --git a/crates/wasm-interpreter/Cargo.toml b/crates/wasm-interpreter/Cargo.toml index 00ecd4f44f4..3a5be59306c 100644 --- a/crates/wasm-interpreter/Cargo.toml +++ b/crates/wasm-interpreter/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "wasm-bindgen-wasm-interpreter" -version = "0.2.92" authors = ["The wasm-bindgen Developers"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/main/crates/wasm-interpreter" -homepage = "https://rustwasm.github.io/wasm-bindgen/" -documentation = "https://docs.rs/wasm-bindgen-wasm-interpreter" description = """ Micro-interpreter optimized for wasm-bindgen's use case """ +documentation = "https://docs.rs/wasm-bindgen-wasm-interpreter" edition = "2021" -rust-version = "1.76" +homepage = "https://rustwasm.github.io/wasm-bindgen/" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "wasm-bindgen-wasm-interpreter" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/main/crates/wasm-interpreter" +rust-version = "1.76" +version = "0.2.92" [dependencies] anyhow = "1.0" diff --git a/crates/web-sys/Cargo.toml b/crates/web-sys/Cargo.toml index 9527a00b5a3..c4f602cf3b0 100644 --- a/crates/web-sys/Cargo.toml +++ b/crates/web-sys/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "web-sys" -version = "0.3.69" authors = ["The wasm-bindgen Developers"] -readme = "./README.md" -homepage = "https://rustwasm.github.io/wasm-bindgen/web-sys/index.html" -documentation = "https://rustwasm.github.io/wasm-bindgen/api/web_sys/" -repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/web-sys" description = """ Bindings for all Web APIs, a procedurally generated crate from WebIDL """ -license = "MIT OR Apache-2.0" +documentation = "https://rustwasm.github.io/wasm-bindgen/api/web_sys/" edition = "2021" -rust-version = "1.57" +homepage = "https://rustwasm.github.io/wasm-bindgen/web-sys/index.html" include = ["/LICENSE-*", "/src"] +license = "MIT OR Apache-2.0" +name = "web-sys" +readme = "./README.md" +repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/web-sys" +rust-version = "1.57" +version = "0.3.69" [package.metadata.docs.rs] all-features = true @@ -23,13 +23,13 @@ doctest = false test = false [dependencies] -wasm-bindgen = { path = "../..", version = "0.2.92" } js-sys = { path = '../js-sys', version = '0.3.69' } +wasm-bindgen = { path = "../..", version = "0.2.92" } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { path = '../test' } -wasm-bindgen-futures = { path = '../futures', features = [ "futures-core-03-stream" ] } futures = "0.3" +wasm-bindgen-futures = { path = '../futures', features = ["futures-core-03-stream"] } +wasm-bindgen-test = { path = '../test' } [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] } diff --git a/crates/webidl-tests/Cargo.toml b/crates/webidl-tests/Cargo.toml index 8ee9e368e52..2296c4babf2 100644 --- a/crates/webidl-tests/Cargo.toml +++ b/crates/webidl-tests/Cargo.toml @@ -1,19 +1,19 @@ [package] -name = "webidl-tests" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "webidl-tests" publish = false +version = "0.0.0" [lib] -test = false doctest = false path = 'lib.rs' +test = false [dependencies] js-sys = { path = '../js-sys' } -wasm-bindgen-futures = { path = '../futures' } wasm-bindgen = { path = '../..' } +wasm-bindgen-futures = { path = '../futures' } [build-dependencies] wasm-bindgen-webidl = { path = "../webidl" } diff --git a/crates/webidl/Cargo.toml b/crates/webidl/Cargo.toml index d171c46bbcb..fecfcb7c973 100644 --- a/crates/webidl/Cargo.toml +++ b/crates/webidl/Cargo.toml @@ -1,21 +1,21 @@ [package] -name = "wasm-bindgen-webidl" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-bindgen-webidl" publish = false +version = "0.0.0" [dependencies] -env_logger = "0.11.5" anyhow = "1.0" +env_logger = "0.11.5" heck = "0.5" +lazy_static = "1.4.0" log = "0.4.1" +once_cell = "1.12" proc-macro2 = "1.0" quote = '1.0' +sourcefile = "0.2" +structopt = "0.3.9" syn = { version = '2.0', features = ['extra-traits', 'full'] } wasm-bindgen-backend = { path = "../backend" } weedle = { git = "https://github.com/rustwasm/weedle.git" } -once_cell = "1.12" -sourcefile = "0.2" -structopt = "0.3.9" -lazy_static = "1.4.0" diff --git a/examples/add/Cargo.toml b/examples/add/Cargo.toml index faf072e38af..5836f5cc25e 100644 --- a/examples/add/Cargo.toml +++ b/examples/add/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "add" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "add" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/canvas/Cargo.toml b/examples/canvas/Cargo.toml index c4014f7fccd..4aec70ddc8d 100644 --- a/examples/canvas/Cargo.toml +++ b/examples/canvas/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "canvas" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "canvas" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -13,11 +13,5 @@ js-sys = { path = "../../crates/js-sys" } wasm-bindgen = { path = "../../" } [dependencies.web-sys] +features = ['CanvasRenderingContext2d', 'Document', 'Element', 'HtmlCanvasElement', 'Window'] path = "../../crates/web-sys" -features = [ - 'CanvasRenderingContext2d', - 'Document', - 'Element', - 'HtmlCanvasElement', - 'Window', -] diff --git a/examples/char/Cargo.toml b/examples/char/Cargo.toml index f1aa4704e4b..bc6bf3c363f 100644 --- a/examples/char/Cargo.toml +++ b/examples/char/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "char" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "char" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/closures/Cargo.toml b/examples/closures/Cargo.toml index 65cb8f52805..4a70ab8a6da 100644 --- a/examples/closures/Cargo.toml +++ b/examples/closures/Cargo.toml @@ -1,23 +1,17 @@ [package] -name = "closures" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "closures" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } js-sys = { path = "../../crates/js-sys" } +wasm-bindgen = { path = "../../" } [dependencies.web-sys] +features = ['CssStyleDeclaration', 'Document', 'Element', 'HtmlElement', 'Window'] path = "../../crates/web-sys" -features = [ - 'CssStyleDeclaration', - 'Document', - 'Element', - 'HtmlElement', - 'Window', -] diff --git a/examples/console_log/Cargo.toml b/examples/console_log/Cargo.toml index f949471a836..165c280c86f 100644 --- a/examples/console_log/Cargo.toml +++ b/examples/console_log/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "console_log" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "console_log" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/deno/Cargo.toml b/examples/deno/Cargo.toml index 7169562a2d7..8268d48e4c8 100644 --- a/examples/deno/Cargo.toml +++ b/examples/deno/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "deno" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "deno" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/dom/Cargo.toml b/examples/dom/Cargo.toml index b8abfa60062..0b4b310464b 100644 --- a/examples/dom/Cargo.toml +++ b/examples/dom/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "dom" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "dom" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -12,11 +12,5 @@ crate-type = ["cdylib"] wasm-bindgen = { path = "../../" } [dependencies.web-sys] +features = ['Document', 'Element', 'HtmlElement', 'Node', 'Window'] path = "../../crates/web-sys" -features = [ - 'Document', - 'Element', - 'HtmlElement', - 'Node', - 'Window', -] diff --git a/examples/duck-typed-interfaces/Cargo.toml b/examples/duck-typed-interfaces/Cargo.toml index 87dcb3e3400..50f470d2642 100644 --- a/examples/duck-typed-interfaces/Cargo.toml +++ b/examples/duck-typed-interfaces/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "rust-duck-typed-interfaces" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "rust-duck-typed-interfaces" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/fetch/Cargo.toml b/examples/fetch/Cargo.toml index 8bda684751f..27719b43b4a 100644 --- a/examples/fetch/Cargo.toml +++ b/examples/fetch/Cargo.toml @@ -1,25 +1,18 @@ [package] -name = "fetch" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "fetch" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } js-sys = { path = "../../crates/js-sys" } +wasm-bindgen = { path = "../../" } wasm-bindgen-futures = { path = "../../crates/futures" } [dependencies.web-sys] +features = ['Headers', 'Request', 'RequestInit', 'RequestMode', 'Response', 'Window'] path = "../../crates/web-sys" -features = [ - 'Headers', - 'Request', - 'RequestInit', - 'RequestMode', - 'Response', - 'Window', -] diff --git a/examples/guide-supported-types-examples/Cargo.toml b/examples/guide-supported-types-examples/Cargo.toml index 38264118b54..5918ea94451 100644 --- a/examples/guide-supported-types-examples/Cargo.toml +++ b/examples/guide-supported-types-examples/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "guide-supported-types-examples" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "guide-supported-types-examples" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } js-sys = { path = "../../crates/js-sys" } +wasm-bindgen = { path = "../../" } diff --git a/examples/hello_world/Cargo.toml b/examples/hello_world/Cargo.toml index a65ef226e82..d1218b0be6d 100644 --- a/examples/hello_world/Cargo.toml +++ b/examples/hello_world/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "hello_world" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "hello_world" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/import_js/crate/Cargo.toml b/examples/import_js/crate/Cargo.toml index 326c848c5b6..5b53eb99be6 100644 --- a/examples/import_js/crate/Cargo.toml +++ b/examples/import_js/crate/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "import_js" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "import_js" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/julia_set/Cargo.toml b/examples/julia_set/Cargo.toml index 00f9f2ab5de..8bdb3ff22af 100644 --- a/examples/julia_set/Cargo.toml +++ b/examples/julia_set/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "julia_set" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "julia_set" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -12,8 +12,5 @@ crate-type = ["cdylib"] wasm-bindgen = { path = "../../" } [dependencies.web-sys] +features = ['ImageData', 'CanvasRenderingContext2d'] path = "../../crates/web-sys" -features = [ - 'ImageData', - 'CanvasRenderingContext2d', -] diff --git a/examples/paint/Cargo.toml b/examples/paint/Cargo.toml index 4222eeff7ad..9771b0b413b 100644 --- a/examples/paint/Cargo.toml +++ b/examples/paint/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "wasm-bindgen-paint" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-bindgen-paint" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -13,7 +13,6 @@ js-sys = { path = "../../crates/js-sys" } wasm-bindgen = { path = "../../" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ 'CanvasRenderingContext2d', 'CssStyleDeclaration', @@ -26,3 +25,4 @@ features = [ 'Node', 'Window', ] +path = "../../crates/web-sys" diff --git a/examples/performance/Cargo.toml b/examples/performance/Cargo.toml index c50fcdf489b..ef3aa683d1f 100644 --- a/examples/performance/Cargo.toml +++ b/examples/performance/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "performance" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "performance" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } humantime = "2" +wasm-bindgen = { path = "../../" } [dependencies.web-sys] -path = "../../crates/web-sys" features = ['Window', 'Performance', 'PerformanceTiming'] +path = "../../crates/web-sys" diff --git a/examples/raytrace-parallel/Cargo.toml b/examples/raytrace-parallel/Cargo.toml index 145376c026e..79bdebdaf90 100644 --- a/examples/raytrace-parallel/Cargo.toml +++ b/examples/raytrace-parallel/Cargo.toml @@ -1,26 +1,25 @@ [package] -name = "raytrace-parallel" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "raytrace-parallel" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] console_error_panic_hook = "0.1" +futures-channel-preview = "0.3.0-alpha.18" js-sys = { path = "../../crates/js-sys" } rayon = "1.1.0" rayon-core = "1.5.0" raytracer = { git = 'https://github.com/alexcrichton/raytracer', branch = 'update-deps' } serde-wasm-bindgen = "0.6" -futures-channel-preview = "0.3.0-alpha.18" wasm-bindgen = { path = "../../" } wasm-bindgen-futures = { path = "../../crates/futures" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ 'CanvasRenderingContext2d', 'ErrorEvent', @@ -32,3 +31,4 @@ features = [ 'DedicatedWorkerGlobalScope', 'MessageEvent', ] +path = "../../crates/web-sys" diff --git a/examples/raytrace-parallel/rust-toolchain.toml b/examples/raytrace-parallel/rust-toolchain.toml index fa80a7badaf..2dc8cf0f027 100644 --- a/examples/raytrace-parallel/rust-toolchain.toml +++ b/examples/raytrace-parallel/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] channel = "nightly" components = ["rust-src"] -targets = ["wasm32-unknown-unknown"] profile = "minimal" +targets = ["wasm32-unknown-unknown"] diff --git a/examples/request-animation-frame/Cargo.toml b/examples/request-animation-frame/Cargo.toml index 358c86579e2..3fe83f77730 100644 --- a/examples/request-animation-frame/Cargo.toml +++ b/examples/request-animation-frame/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "request-animation-frame" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "request-animation-frame" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -12,11 +12,5 @@ crate-type = ["cdylib"] wasm-bindgen = { path = "../../" } [dependencies.web-sys] +features = ['Document', 'Element', 'HtmlElement', 'Node', 'Window'] path = "../../crates/web-sys" -features = [ - 'Document', - 'Element', - 'HtmlElement', - 'Node', - 'Window', -] diff --git a/examples/synchronous-instantiation/Cargo.toml b/examples/synchronous-instantiation/Cargo.toml index 035d372f518..9eda0ee8692 100644 --- a/examples/synchronous-instantiation/Cargo.toml +++ b/examples/synchronous-instantiation/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "synchronous-instantiation" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "synchronous-instantiation" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/todomvc/Cargo.toml b/examples/todomvc/Cargo.toml index e1fc87d50df..67fe6bcd18d 100644 --- a/examples/todomvc/Cargo.toml +++ b/examples/todomvc/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "todomvc" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "todomvc" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -12,13 +12,12 @@ crate-type = ["cdylib"] askama = "0.12" [dependencies] -js-sys = { path = "../../crates/js-sys" } -wasm-bindgen = { path = "../../" } askama = "0.12" console_error_panic_hook = "0.1.5" +js-sys = { path = "../../crates/js-sys" } +wasm-bindgen = { path = "../../" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ 'console', 'CssStyleDeclaration', @@ -38,3 +37,4 @@ features = [ 'Storage', 'Window', ] +path = "../../crates/web-sys" diff --git a/examples/wasm-audio-worklet/Cargo.toml b/examples/wasm-audio-worklet/Cargo.toml index 2b8d3a14265..6a0fae91946 100644 --- a/examples/wasm-audio-worklet/Cargo.toml +++ b/examples/wasm-audio-worklet/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "wasm-audio-worklet" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-audio-worklet" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -15,7 +15,6 @@ wasm-bindgen = { path = "../../" } wasm-bindgen-futures = { path = "../../crates/futures" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ "AudioContext", "AudioDestinationNode", @@ -31,3 +30,4 @@ features = [ "Url", "Window", ] +path = "../../crates/web-sys" diff --git a/examples/wasm-audio-worklet/rust-toolchain.toml b/examples/wasm-audio-worklet/rust-toolchain.toml index fa80a7badaf..2dc8cf0f027 100644 --- a/examples/wasm-audio-worklet/rust-toolchain.toml +++ b/examples/wasm-audio-worklet/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] channel = "nightly" components = ["rust-src"] -targets = ["wasm32-unknown-unknown"] profile = "minimal" +targets = ["wasm32-unknown-unknown"] diff --git a/examples/wasm-in-wasm-imports/Cargo.toml b/examples/wasm-in-wasm-imports/Cargo.toml index 402433e2481..ff98763f802 100644 --- a/examples/wasm-in-wasm-imports/Cargo.toml +++ b/examples/wasm-in-wasm-imports/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "wasm-in-wasm-imports" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-in-wasm-imports" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } js-sys = { path = "../../crates/js-sys" } +wasm-bindgen = { path = "../../" } wasm-bindgen-futures = { path = "../../crates/futures" } diff --git a/examples/wasm-in-wasm/Cargo.toml b/examples/wasm-in-wasm/Cargo.toml index acb7e6d5d31..ce9f72ceff8 100644 --- a/examples/wasm-in-wasm/Cargo.toml +++ b/examples/wasm-in-wasm/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "wasm-in-wasm" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-in-wasm" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } js-sys = { path = "../../crates/js-sys" } +wasm-bindgen = { path = "../../" } wasm-bindgen-futures = { path = "../../crates/futures" } diff --git a/examples/wasm-in-web-worker/Cargo.toml b/examples/wasm-in-web-worker/Cargo.toml index f3968f4c8e4..8d623646fc1 100644 --- a/examples/wasm-in-web-worker/Cargo.toml +++ b/examples/wasm-in-web-worker/Cargo.toml @@ -1,25 +1,25 @@ [package] -name = "wasm-in-web-worker" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-in-web-worker" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } console_error_panic_hook = { version = "0.1.6", optional = true } +wasm-bindgen = { path = "../../" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ - 'console', - 'Document', - 'HtmlElement', - 'HtmlInputElement', - 'MessageEvent', - 'Window', - 'Worker', + 'console', + 'Document', + 'HtmlElement', + 'HtmlInputElement', + 'MessageEvent', + 'Window', + 'Worker', ] +path = "../../crates/web-sys" diff --git a/examples/wasm2js/Cargo.toml b/examples/wasm2js/Cargo.toml index 6157ac4f1f3..2e19ef01d4e 100644 --- a/examples/wasm2js/Cargo.toml +++ b/examples/wasm2js/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "wasm2js" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm2js" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] diff --git a/examples/weather_report/Cargo.toml b/examples/weather_report/Cargo.toml index 56eaffb254b..1bb0a665c26 100644 --- a/examples/weather_report/Cargo.toml +++ b/examples/weather_report/Cargo.toml @@ -1,21 +1,21 @@ [package] -name = "rust-webassembly-weather-reports" -version = "0.0.0" authors = ["Ayush "] edition = "2021" +name = "rust-webassembly-weather-reports" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] chrono = "0.4.11" +gloo = "0.11" +json = "0.12" reqwest = "0.12" -wasm-bindgen-futures = { path = "../../crates/futures" } -json= "0.12" wasm-bindgen = { path = "../../" } -gloo = "0.11" +wasm-bindgen-futures = { path = "../../crates/futures" } [dependencies.web-sys] -path = "../../crates/web-sys" features = ["Document", "Element", "HtmlElement", "Window"] +path = "../../crates/web-sys" diff --git a/examples/webaudio/Cargo.toml b/examples/webaudio/Cargo.toml index ea61373ccdb..4fbea599082 100644 --- a/examples/webaudio/Cargo.toml +++ b/examples/webaudio/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "webaudio" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "webaudio" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -12,7 +12,6 @@ crate-type = ["cdylib"] wasm-bindgen = { path = "../../" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ 'AudioContext', 'AudioDestinationNode', @@ -22,3 +21,4 @@ features = [ 'OscillatorNode', 'OscillatorType', ] +path = "../../crates/web-sys" diff --git a/examples/webgl/Cargo.toml b/examples/webgl/Cargo.toml index b3f9f006417..ebf3967e81f 100644 --- a/examples/webgl/Cargo.toml +++ b/examples/webgl/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "webgl" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "webgl" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -13,7 +13,6 @@ js-sys = { path = "../../crates/js-sys" } wasm-bindgen = { path = "../../" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ 'Document', 'Element', @@ -25,3 +24,4 @@ features = [ 'WebGlShader', 'Window', ] +path = "../../crates/web-sys" diff --git a/examples/webrtc_datachannel/Cargo.toml b/examples/webrtc_datachannel/Cargo.toml index 6cbf946bd4f..9773e0e94c4 100644 --- a/examples/webrtc_datachannel/Cargo.toml +++ b/examples/webrtc_datachannel/Cargo.toml @@ -1,20 +1,19 @@ [package] -name = "webrtc_datachannel" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "webrtc_datachannel" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } js-sys = { path = "../../crates/js-sys" } +wasm-bindgen = { path = "../../" } wasm-bindgen-futures = { path = "../../crates/futures" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ "MessageEvent", "RtcPeerConnection", @@ -26,3 +25,4 @@ features = [ "RtcDataChannel", "RtcDataChannelEvent", ] +path = "../../crates/web-sys" diff --git a/examples/websockets/Cargo.toml b/examples/websockets/Cargo.toml index 8e957e424a5..63f201d35e5 100644 --- a/examples/websockets/Cargo.toml +++ b/examples/websockets/Cargo.toml @@ -1,19 +1,18 @@ [package] -name = "websockets" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "websockets" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] [dependencies] -wasm-bindgen = { path = "../../" } js-sys = { path = "../../crates/js-sys" } +wasm-bindgen = { path = "../../" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ "BinaryType", "Blob", @@ -23,3 +22,4 @@ features = [ "ProgressEvent", "WebSocket", ] +path = "../../crates/web-sys" diff --git a/examples/webxr/Cargo.toml b/examples/webxr/Cargo.toml index 850e09cb020..0e2efb8a65d 100644 --- a/examples/webxr/Cargo.toml +++ b/examples/webxr/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "webxr" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "webxr" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -15,7 +15,6 @@ wasm-bindgen = { path = "../../" } wasm-bindgen-futures = { path = "../../crates/futures" } [dependencies.web-sys] -path = "../../crates/web-sys" features = [ 'Document', 'Element', @@ -62,8 +61,9 @@ features = [ 'XrWebGlLayer', 'XrWebGlLayerInit', 'XrSystem', - 'console' + 'console', ] +path = "../../crates/web-sys" [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] } diff --git a/examples/without-a-bundler-no-modules/Cargo.toml b/examples/without-a-bundler-no-modules/Cargo.toml index 24611da861f..a5e70744cfe 100644 --- a/examples/without-a-bundler-no-modules/Cargo.toml +++ b/examples/without-a-bundler-no-modules/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "without-a-bundler-no-modules" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "without-a-bundler-no-modules" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -12,11 +12,5 @@ crate-type = ["cdylib"] wasm-bindgen = { path = "../../" } [dependencies.web-sys] +features = ['Document', 'Element', 'HtmlElement', 'Node', 'Window'] path = "../../crates/web-sys" -features = [ - 'Document', - 'Element', - 'HtmlElement', - 'Node', - 'Window', -] diff --git a/examples/without-a-bundler/Cargo.toml b/examples/without-a-bundler/Cargo.toml index 44e2d597144..07ccf676c78 100644 --- a/examples/without-a-bundler/Cargo.toml +++ b/examples/without-a-bundler/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "without-a-bundler" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "without-a-bundler" publish = false +version = "0.0.0" [lib] crate-type = ["cdylib"] @@ -12,11 +12,5 @@ crate-type = ["cdylib"] wasm-bindgen = { path = "../../" } [dependencies.web-sys] +features = ['Document', 'Element', 'HtmlElement', 'Node', 'Window'] path = "../../crates/web-sys" -features = [ - 'Document', - 'Element', - 'HtmlElement', - 'Node', - 'Window', -] diff --git a/taplo.toml b/taplo.toml new file mode 100644 index 00000000000..56bc58a4c7d --- /dev/null +++ b/taplo.toml @@ -0,0 +1,9 @@ +[formatting] +allowed_blank_lines = 1 +column_width = 100 +reorder_keys = true + +[[rule]] +formatting = { array_auto_expand = false } +include = ["crates/web-sys/Cargo.toml"] +keys = ["features"] diff --git a/tests/crates/a/Cargo.toml b/tests/crates/a/Cargo.toml index f60a23a8805..56f3007ed57 100644 --- a/tests/crates/a/Cargo.toml +++ b/tests/crates/a/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "wasm-bindgen-test-crate-a" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-bindgen-test-crate-a" publish = false +version = "0.0.0" [dependencies] wasm-bindgen = { path = '../../..' } diff --git a/tests/crates/b/Cargo.toml b/tests/crates/b/Cargo.toml index c67b9cc50c9..75a143e9a51 100644 --- a/tests/crates/b/Cargo.toml +++ b/tests/crates/b/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "wasm-bindgen-test-crate-b" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "wasm-bindgen-test-crate-b" publish = false +version = "0.0.0" [dependencies] wasm-bindgen = { path = '../../..' } diff --git a/tests/no-std/Cargo.toml b/tests/no-std/Cargo.toml index 22806c101eb..fca6ee89aef 100644 --- a/tests/no-std/Cargo.toml +++ b/tests/no-std/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "no-std" -version = "0.0.0" authors = ["The wasm-bindgen Developers"] edition = "2021" +name = "no-std" publish = false +version = "0.0.0" [dependencies] wasm-bindgen = { path = '../..', default-features = false }