From 89f562efba8a0f6f82cc1bdd64097dc3c54ee7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=AE=87=E8=88=AA?= Date: Sat, 18 Apr 2026 08:03:46 +0800 Subject: [PATCH 1/4] feat: update doc and reference to github repo --- CHANGELOG.md | 18 +++++------ Cargo.toml | 4 +-- README.md | 22 ++++++------- docs/_installer/index.html | 10 +++--- docs/_installer/init.sh | 6 ++-- docs/_theme/header.hbs | 2 +- docs/index.html | 4 +-- docs/src/commands/new.md | 4 +-- docs/src/contributing.md | 4 +-- docs/src/introduction.md | 4 +-- docs/src/prerequisites/index.md | 2 +- docs/src/quickstart.md | 2 +- .../npm-browser-packages/getting-started.md | 4 +-- .../tutorials/npm-browser-packages/index.md | 2 +- npm/README.md | 20 ++++++------ npm/binary.js | 2 +- npm/package.json | 6 ++-- src/build/wasm_target.rs | 2 +- src/command/mod.rs | 2 +- src/command/test.rs | 2 +- src/install/mod.rs | 2 +- src/main.rs | 2 +- src/manifest/mod.rs | 2 +- tests/all/build.rs | 8 ++--- tests/all/lockfile.rs | 6 ++-- tests/all/manifest.rs | 32 +++++++++---------- tests/all/readme.rs | 4 +-- tests/all/test.rs | 2 +- tests/all/utils/fixture.rs | 14 ++++---- 29 files changed, 97 insertions(+), 97 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index abea5f75..455380e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1102,7 +1102,7 @@ installing the target on your specific rust setup- including the fact that it may _not_ be possible to add the target to some setups. - Check out the docs [here](https://drager.github.io/wasm-pack/book/prerequisites/non-rustup-setups.html). + Check out the docs [here](https://wasm-bindgen.github.io/wasm-pack/book/prerequisites/non-rustup-setups.html). [issue/579]: https://github.com/rustwasm/wasm-pack/issues/579 [pull/602]: https://github.com/rustwasm/wasm-pack/pull/602 @@ -1183,7 +1183,7 @@ wasm-pack build --target web ``` - Learn more about how to use this target by [checking out the docs!](https://drager.github.io/wasm-pack/book/commands/build.html#target) + Learn more about how to use this target by [checking out the docs!](https://wasm-bindgen.github.io/wasm-pack/book/commands/build.html#target) [pull/567]: https://github.com/rustwasm/wasm-pack/pull/567 @@ -1363,7 +1363,7 @@ [DebugSteve]: https://github.com/DebugSteven [single location]: https://rustwasm.github.io/docs.html - [See `wasm-pack's` master docs here]: https://drager.github.io/wasm-pack/book/ + [See `wasm-pack's` master docs here]: https://wasm-bindgen.github.io/wasm-pack/book/ [pull/565]: https://github.com/rustwasm/wasm-pack/pull/565 - **Add new QuickStart guide for "Hybrid Applications with Webpack" - [DebugSteven] [pull/536]** @@ -1378,7 +1378,7 @@ [This template] hasn't gotten as much attention because we've lacked a quickstart guide for folks to discover and follow- now we've got one! - Check out the guide [here](https://drager.github.io/wasm-pack/book/tutorials/hybrid-applications-with-webpack/index.html)! + Check out the guide [here](https://wasm-bindgen.github.io/wasm-pack/book/tutorials/hybrid-applications-with-webpack/index.html)! [This temaplte]: https://github.com/rustwasm/rust-webpack-template [DebugSteven]: https://github.com/DebugSteven @@ -1391,7 +1391,7 @@ However, for folks who don't use the template, `wee_alloc` is something important to know about- so now we have given it its own section! - Check out the deepdive [here](https://drager.github.io/wasm-pack/book/tutorials/npm-browser-packages/template-deep-dive/wee_alloc.html)! + Check out the deepdive [here](https://wasm-bindgen.github.io/wasm-pack/book/tutorials/npm-browser-packages/template-deep-dive/wee_alloc.html)! [surma]: https://github.com/surma [pull/542]: https://github.com/rustwasm/wasm-pack/pull/542 @@ -1482,7 +1482,7 @@ As always- there are defaults for you to use, but if you love to configure (or have a project that requires it), get excited, as your options have grown now and will continue to! - [profile-config-docs]: https://drager.github.io/wasm-pack/book/cargo-toml-configuration.html + [profile-config-docs]: https://wasm-bindgen.github.io/wasm-pack/book/cargo-toml-configuration.html [`cargo profile` documentation]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-profile-sections [issue/153]: https://github.com/rustwasm/wasm-pack/issues/153 [issue/160]: https://github.com/rustwasm/wasm-pack/issues/160 @@ -1510,7 +1510,7 @@ In the above example, the flag `-Z offline` will be passed to `cargo build`. This feature is documented [here][cargo opts docs]. - [cargo opts docs]: https://drager.github.io/wasm-pack/book/commands/build.html#extra-options + [cargo opts docs]: https://wasm-bindgen.github.io/wasm-pack/book/commands/build.html#extra-options [torkve]: https://github.com/torkve [issue/455]: https://github.com/rustwasm/wasm-pack/issues/455 [pull/461]: https://github.com/rustwasm/wasm-pack/pull/461 @@ -1849,7 +1849,7 @@ This PR also has a complete rework of our documentation. - Check it out [here](https://drager.github.io/wasm-pack/)! + Check it out [here](https://wasm-bindgen.github.io/wasm-pack/)! - #### 🍱 Module Support @@ -2062,7 +2062,7 @@ This is experimental- so please try it out and file issues as you run into things! You'll always be able to use `cargo install` as a backup. - Checkout the new installer [here](https://drager.github.io/wasm-pack/installer/)! + Checkout the new installer [here](https://wasm-bindgen.github.io/wasm-pack/installer/)! [pull/307]: https://github.com/rustwasm/wasm-pack/pull/307 diff --git a/Cargo.toml b/Cargo.toml index 9ddec137..5c30fe40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,12 +3,12 @@ name = "wasm-pack" description = "📦✨ your favorite rust -> wasm workflow tool!" version = "0.14.0" authors = ["Ashley Williams ", "Jesper Håkansson "] -repository = "https://github.com/drager/wasm-pack.git" +repository = "https://github.com/wasm-bindgen/wasm-pack.git" license = "MIT OR Apache-2.0" edition = "2021" readme = "README.md" categories = ["wasm"] -documentation = "https://drager.github.io/wasm-pack/" +documentation = "https://wasm-bindgen.github.io/wasm-pack/" [dependencies] anyhow = "1.0.100" diff --git a/README.md b/README.md index e2b73b14..8309febc 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,14 @@

- Build Status + Build Status crates.io

- Docs + Docs | - Contributing + Contributing | Chat

@@ -38,21 +38,21 @@ alongside any javascript packages in workflows that you already use, such as [we This project requires Rust 1.30.0 or later. -- [Development Environment](https://drager.github.io/wasm-pack/book/prerequisites/index.html) -- [Installation](https://drager.github.io/wasm-pack/installer) +- [Development Environment](https://wasm-bindgen.github.io/wasm-pack/book/prerequisites/index.html) +- [Installation](https://wasm-bindgen.github.io/wasm-pack/installer) ## ⚡ Quickstart Guide Visit the [quickstart guide] in our documentation. -[quickstart guide]: https://drager.github.io/wasm-pack/book/quickstart.html +[quickstart guide]: https://wasm-bindgen.github.io/wasm-pack/book/quickstart.html ## 🎙️ Commands -- [`new`](https://drager.github.io/wasm-pack/book/commands/new.html): Generate a new RustWasm project using a template -- [`build`](https://drager.github.io/wasm-pack/book/commands/build.html): Generate an npm wasm pkg from a rustwasm crate -- [`test`](https://drager.github.io/wasm-pack/book/commands/test.html): Run browser tests -- [`pack` and `publish`](https://drager.github.io/wasm-pack/book/commands/pack-and-publish.html): Create a tarball of your rustwasm pkg and/or publish to a registry +- [`new`](https://wasm-bindgen.github.io/wasm-pack/book/commands/new.html): Generate a new RustWasm project using a template +- [`build`](https://wasm-bindgen.github.io/wasm-pack/book/commands/build.html): Generate an npm wasm pkg from a rustwasm crate +- [`test`](https://wasm-bindgen.github.io/wasm-pack/book/commands/test.html): Run browser tests +- [`pack` and `publish`](https://wasm-bindgen.github.io/wasm-pack/book/commands/pack-and-publish.html): Create a tarball of your rustwasm pkg and/or publish to a registry ## 📝 Logging @@ -71,7 +71,7 @@ RUST_LOG=info wasm-pack build Read our [guide] on getting up and running for developing `wasm-pack`, and check out our [contribution policy]. -[guide]: https://drager.github.io/wasm-pack/book/contributing.html +[guide]: https://wasm-bindgen.github.io/wasm-pack/book/contributing.html [contribution policy]: CONTRIBUTING.md ## 🤹‍♀️ Governance diff --git a/docs/_installer/index.html b/docs/_installer/index.html index 079e429d..0b151a0a 100644 --- a/docs/_installer/index.html +++ b/docs/_installer/index.html @@ -30,7 +30,7 @@ @@ -53,7 +53,7 @@

Install wasm-pack

by running:

-curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh

If you're not on *nix, or you don't like installing from curl, @@ -66,7 +66,7 @@

Install wasm-pack

You appear to be running Windows 64-bit. Download and run wasm-pack-init.exe then follow the onscreen instructions. @@ -78,7 +78,7 @@

Install wasm-pack

wasm-pack.

-curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh

If you're not on Windows 64-bit, follow the alternate instructions @@ -90,7 +90,7 @@

Install wasm-pack

I don't recognize your platform.

We would appreciate it if you - reported an issue, along with the following values:

diff --git a/docs/_installer/init.sh b/docs/_installer/init.sh index 28ced2fb..a756b218 100644 --- a/docs/_installer/init.sh +++ b/docs/_installer/init.sh @@ -41,7 +41,7 @@ fi # Resolve "latest" to actual version number if [ "$VERSION" = "latest" ]; then - VERSION=$(curl -s https://api.github.com/repos/drager/wasm-pack/releases/latest | grep '"tag_name"' | sed -E 's/.*"v?([^"]+)".*/\1/') + VERSION=$(curl -s https://api.github.com/repos/wasm-bindgen/wasm-pack/releases/latest | grep '"tag_name"' | sed -E 's/.*"v?([^"]+)".*/\1/') if [ -z "$VERSION" ]; then err "failed to fetch latest version from GitHub API" fi @@ -53,7 +53,7 @@ case "$VERSION" in *) VERSION="v$VERSION" ;; esac -UPDATE_ROOT="https://github.com/drager/wasm-pack/releases/download/$VERSION" +UPDATE_ROOT="https://github.com/wasm-bindgen/wasm-pack/releases/download/$VERSION" main() { downloader --check @@ -173,7 +173,7 @@ get_architecture() { esac - # See https://github.com/drager/wasm-pack/pull/1088 + # See https://github.com/wasm-bindgen/wasm-pack/pull/1088 if [ "$_cputype" = "aarch64" ] && [ "$_ostype" = "apple-darwin" ]; then _cputype="x86_64" fi diff --git a/docs/_theme/header.hbs b/docs/_theme/header.hbs index b0158bc9..daf55127 100644 --- a/docs/_theme/header.hbs +++ b/docs/_theme/header.hbs @@ -38,7 +38,7 @@

This is the unpublished documentation of wasm-pack, the published documentation is available - + on the main Rust and WebAssembly documentation site . Features documented here may not be available in released versions of wasm-pack. diff --git a/docs/index.html b/docs/index.html index 649ef5ba..5a9b1cc2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,7 +22,7 @@