Rust编写的JavaScript引擎,该项目是一个试验性质的项目。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
619 B

[package]
name = "boa_wasm"
description = "WASM compatibility layer for the Boa JavaScript engine."
keywords = ["javascript", "compiler", "lexer", "parser", "js"]
categories = ["parser-implementations", "wasm", "compilers"]
publish = false
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[dependencies]
boa_engine = { workspace = true, features = ["console"] }
Bump wasm-bindgen from 0.2.83 to 0.2.84 (#2585) Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) from 0.2.83 to 0.2.84. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/cea8cc3d2968bd11560ea6a64f8b6b1ff6673c12"><code>cea8cc3</code></a> Bump to 0.2.84 (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3274">#3274</a>)</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/995adac992e859428694e08960467c1110c579bf"><code>995adac</code></a> Remove explicit allocator (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3273">#3273</a>)</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/1f3c76bca62fa62a05aaae8194c454d693ecc712"><code>1f3c76b</code></a> fix: Make maplike <code>set</code> and setlike <code>add</code> return <code>this</code>, not <code>undefined</code> (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3270">#3270</a>)</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/e1b44b75704107bff62abe764294394ce6669ede"><code>e1b44b7</code></a> Add support for linked modules (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3069">#3069</a>)</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/d6964278b557e1d4cf608d1dfb67162b1ce3b53a"><code>d696427</code></a> Implement <code>ImageBitmapOptions</code> (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3269">#3269</a>)</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/8fc0e2b085ea555354ba3094e66cd0bc94add0af"><code>8fc0e2b</code></a> Add support for setlike interfaces (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3268">#3268</a>)</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/5fff0a9846c6a48d15befea7f9f572d19fbbe45a"><code>5fff0a9</code></a> Add WebGL extension type for 16-bit normalized formats (EXT_texture_norm16) (...</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/79cbace56872813dae04f194f6107ca7b9f6bfc9"><code>79cbace</code></a> Fix typos in futures/src/stream.rs documentation (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3264">#3264</a>)</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/a4788cac0f7b1ffd86f1564bbab2596f2d0d9b1a"><code>a4788ca</code></a> Lazily initialize memory views (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3253">#3253</a>)</li> <li><a href="https://github.com/rustwasm/wasm-bindgen/commit/979b335e4ef1fdd59bfb520d3868a39e61cd703d"><code>979b335</code></a> Add <code>js_sys::Array::set_length</code> (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3246">#3246</a>)</li> <li>Additional commits viewable in <a href="https://github.com/rustwasm/wasm-bindgen/compare/0.2.83...0.2.84">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=wasm-bindgen&package-manager=cargo&previous-version=0.2.83&new-version=0.2.84)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
2 years ago
wasm-bindgen = "0.2.84"
Bump getrandom from 0.2.7 to 0.2.8 (#2359) Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.7 to 0.2.8. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md">getrandom's changelog</a>.</em></p> <blockquote> <h2>[0.2.8] - 2022-10-20</h2> <h3>Changed</h3> <ul> <li>The <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API">Web Cryptography API</a> will now be preferred on <code>wasm32-unknown-unknown</code> when using the <code>&quot;js&quot;</code> feature, even on Node.js <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/284">#284</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/295">#295</a></li> </ul> <h3>Added</h3> <ul> <li>Added benchmarks to track buffer initialization cost <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/272">#272</a></li> </ul> <h3>Fixed</h3> <ul> <li>Use <code>$crate</code> in <code>register_custom_getrandom!</code> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/270">#270</a></li> </ul> <h3>Documentation</h3> <ul> <li>Add information about enabling <code>&quot;js&quot;</code> feature <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/280">#280</a></li> <li>Fix link to <code>wasm-bindgen</code> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/278">#278</a></li> <li>Document the varied implementations for underlying randomness sources <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/276">#276</a></li> </ul> <p><a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/284">#284</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/284">rust-random/getrandom#284</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/295">#295</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/295">rust-random/getrandom#295</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/272">#272</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/272">rust-random/getrandom#272</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/270">#270</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/270">rust-random/getrandom#270</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/280">#280</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/280">rust-random/getrandom#280</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/278">#278</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/278">rust-random/getrandom#278</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/276">#276</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/276">rust-random/getrandom#276</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-random/getrandom/commit/5c1bb00b74a2c72ba182171b93d1c4b9d30c10c4"><code>5c1bb00</code></a> Release v0.2.8 (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/294">#294</a>)</li> <li><a href="https://github.com/rust-random/getrandom/commit/353d0ca1577b7ac662eafb75a4c453b9e0d37c80"><code>353d0ca</code></a> Update docs for wasm32-unknown-unknown implementation (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/295">#295</a>)</li> <li><a href="https://github.com/rust-random/getrandom/commit/cfdad53dcefa01e2235b72df7290ae76c7163ac3"><code>cfdad53</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/284">#284</a> from rust-random/webcrypto</li> <li><a href="https://github.com/rust-random/getrandom/commit/9962c706c913a0d3ec36b8c2f9d4c913f24f3313"><code>9962c70</code></a> Update Module::require internal comments</li> <li><a href="https://github.com/rust-random/getrandom/commit/e0c93b10d5fa11ad9983e7da3d2ca973f5554c48"><code>e0c93b1</code></a> Catch call to module.require</li> <li><a href="https://github.com/rust-random/getrandom/commit/0503000381d08046490f6f3afe141b5cd3b0bcd4"><code>0503000</code></a> Fix link typo</li> <li><a href="https://github.com/rust-random/getrandom/commit/0579fe3014fda4c96ff2f8ab5e92641dba29d30d"><code>0579fe3</code></a> Update documentation and error messages</li> <li><a href="https://github.com/rust-random/getrandom/commit/d69e8e003b434e98f1ad675cae4b53d3e3864fa0"><code>d69e8e0</code></a> Rework JS feature detection</li> <li><a href="https://github.com/rust-random/getrandom/commit/d3aa089bbdefa95da9130b7c633e1f49687f04ce"><code>d3aa089</code></a> Add description about Cargo js feature for WebAssembly section (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/280">#280</a>)</li> <li><a href="https://github.com/rust-random/getrandom/commit/0b71d50b4975b492c7ed7185d5d366403966c01b"><code>0b71d50</code></a> Fix link to wasm-bindgen (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/278">#278</a>)</li> <li>Additional commits viewable in <a href="https://github.com/rust-random/getrandom/compare/v0.2.7...v0.2.8">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=getrandom&package-manager=cargo&previous-version=0.2.7&new-version=0.2.8)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
2 years ago
getrandom = { version = "0.2.8", features = ["js"] }
[lib]
crate-type = ["cdylib", "lib"]
name = "boa_wasm"
bench = false