Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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]**
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name = "wasm-pack"
description = "πŸ“¦βœ¨ your favorite rust -> wasm workflow tool!"
version = "0.14.0"
authors = ["Ashley Williams <ashley666ashley@gmail.com>", "Jesper HΓ₯kansson <jesper@jesperh.se>"]
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"
Expand Down
2 changes: 0 additions & 2 deletions cargo-generate.toml

This file was deleted.

10 changes: 5 additions & 5 deletions docs/_installer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</a>
</li>
<li class="navbar-item">
<a href="https://github.com/drager/wasm-pack/issues/new/choose"
<a href="https://github.com/wasm-bindgen/wasm-pack/issues/new/choose"
>File an Issue</a
>
</li>
Expand All @@ -53,7 +53,7 @@ <h1>Install <code>wasm-pack</code></h1>
by running:
</p>
<pre class="primary">
curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh</pre
curl https://wasm-bindgen.github.io/wasm-pack/installer/init.sh -sSf | sh</pre
>
<p>
If you're not on *nix, or you don't like installing from <b>curl</b>,
Expand All @@ -66,7 +66,7 @@ <h1>Install <code>wasm-pack</code></h1>
You appear to be running Windows 64-bit. Download and run
<a
class="winlink"
href="https://github.com/drager/wasm-pack/releases/download/$VERSION/wasm-pack-init.exe"
href="https://github.com/wasm-bindgen/wasm-pack/releases/download/$VERSION/wasm-pack-init.exe"
>wasm-pack-init.exe</a
>
then follow the onscreen instructions.
Expand All @@ -78,7 +78,7 @@ <h1>Install <code>wasm-pack</code></h1>
wasm-pack.
</p>
<pre class="primary">
curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh</pre
curl https://wasm-bindgen.github.io/wasm-pack/installer/init.sh -sSf | sh</pre
>
<p>
If you're not on Windows 64-bit, follow the alternate instructions
Expand All @@ -90,7 +90,7 @@ <h1>Install <code>wasm-pack</code></h1>
<p>I don't recognize your platform.</p>
<p>
We would appreciate it if you
<a href="https://github.com/drager/wasm-pack/issues/new"
<a href="https://github.com/wasm-bindgen/wasm-pack/issues/new"
>reported an issue</a
>, along with the following values:
</p>
Expand Down
6 changes: 3 additions & 3 deletions docs/_installer/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/_theme/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<p>
This is the <strong>unpublished</strong> documentation of
<code>wasm-pack</code>, the published documentation is available
<a href="https://drager.github.io/wasm-pack/">
<a href="https://wasm-bindgen.github.io/wasm-pack/">
on the main Rust and WebAssembly documentation site
</a>. Features documented here may not be available in released versions of
<code>wasm-pack</code>.
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</a>
</a>
<li class="navbar-item">
<a href="https://github.com/drager/wasm-pack/issues/new/choose">File an Issue</a>
<a href="https://github.com/wasm-bindgen/wasm-pack/issues/new/choose">File an Issue</a>
</li>
<li class="navbar-item">
<a href="/wasm-pack/book">Documentation</a>
Expand All @@ -44,7 +44,7 @@ <h2>πŸ“¦βœ¨ your favorite rust -> wasm workflow tool!</h2>
<div class="five columns" id="installer">
<a class="button button-primary" href="/wasm-pack/installer">✨ Install wasm-pack 0.14.0 ✨</a>
<p>20 Jan 2026 |
<a href="https://github.com/drager/wasm-pack/releases/tag/v0.14.0">
<a href="https://github.com/wasm-bindgen/wasm-pack/releases/tag/v0.14.0">
Release Notes
</a>
</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/commands/new.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It takes 3 parameters, name, template, and mode:
wasm-pack new <name> --template <template> --mode <normal|noinstall|force>
```

The default template is [`rustwasm/wasm-pack`](https://github.com/rustwasm/wasm-pack),
The default template is [`wasm-bindgen/wasm-pack`](https://github.com/wasm-bindgen/wasm-pack),
which includes the `wasm-pack-template` cargo-generate template.

## Name
Expand All @@ -25,7 +25,7 @@ wasm-pack new myproject
The `wasm-pack new` command can be given an optional template argument, e.g.:

```
wasm-pack new myproject --template https://github.com/rustwasm/wasm-pack
wasm-pack new myproject --template https://github.com/wasm-bindgen/wasm-pack
```

The template can be an address to a git repo that contains a [`cargo-generate`]
Expand Down
4 changes: 2 additions & 2 deletions docs/src/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ using it. You can find them documented [here][1].
You'll also want to check out the contributing [guidelines].

[1]: ./prerequisites/index.html
[guidelines]: https://github.com/drager/wasm-pack/blob/master/CONTRIBUTING.md
[guidelines]: https://github.com/wasm-bindgen/wasm-pack/blob/master/CONTRIBUTING.md

## πŸƒβ€β™€οΈ Up and Running

1. fork and clone the `drager/wasm-pack` repository
1. fork and clone the `wasm-bindgen/wasm-pack` repository
2. install [node/npm]
3. `cd wasm-pack`
4. `cargo run`. To test command line arguments you can run `cargo run -- <args>`.
Expand Down
4 changes: 2 additions & 2 deletions docs/src/introduction.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![wasm ferris](https://drager.github.io/wasm-pack/public/img/wasm-ferris.png)
![wasm ferris](https://wasm-bindgen.github.io/wasm-pack/public/img/wasm-ferris.png)

<h1 style="text-align: center;">Welcome to the <code>wasm-pack</code> docs!</h1>

Expand All @@ -11,4 +11,4 @@ alongside any javascript packages in workflows that you already use, such as [we
[webpack]: https://webpack.js.org/


![demo](https://github.com/drager/wasm-pack/raw/master/demo.gif)
![demo](https://github.com/wasm-bindgen/wasm-pack/raw/master/demo.gif)
2 changes: 1 addition & 1 deletion docs/src/prerequisites/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
First you'll want to [install the `wasm-pack` CLI][wasm-pack], and `wasm-pack
-V` should print the version that you just installed.

[wasm-pack]: https://drager.github.io/wasm-pack/installer/
[wasm-pack]: https://wasm-bindgen.github.io/wasm-pack/installer/

Next, since `wasm-pack` is a build tool, you'll want to make sure you have
[Rust][rust] installed. Make sure `rustc -V` prints out at least 1.30.0.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
registry you want to publish to. You can login using `wasm-pack login`.

[`rustup`]: https://rustup.rs/
[Install this tool.]: https://drager.github.io/wasm-pack/installer/
[Install this tool.]: https://wasm-bindgen.github.io/wasm-pack/installer/
2 changes: 1 addition & 1 deletion docs/src/tutorials/npm-browser-packages/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cargo install cargo-generate
Then run:

```
cargo generate --git https://github.com/rustwasm/wasm-pack wasm-pack-template
cargo generate wasm-bindgen/wasm-pack
```

You will be prompted to give your project a name. Once you do, you will have a directory
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/npm-browser-packages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ much Rust knowledge to complete this tutorial.

Be sure to have done the following before starting:

1. [Install `wasm-pack`](https://drager.github.io/wasm-pack/installer/)
1. [Install `wasm-pack`](https://wasm-bindgen.github.io/wasm-pack/installer/)
1. Read and install the [Prerequisites](../../prerequisites/index.html).

⚠️ We strongly recommend that you install [Node.js] using a version manager. You can learn more [here](https://npmjs.com/get-npm).
Expand Down
20 changes: 10 additions & 10 deletions npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
</p>

<p>
<a href="https://github.com/drager/wasm-pack/actions/workflows/test.yml"><img alt="Build Status" src="https://github.com/drager/wasm-pack/actions/workflows/test.yml/badge.svg?branch=master"/></a>
<a href="https://github.com/wasm-bindgen/wasm-pack/actions/workflows/test.yml"><img alt="Build Status" src="https://github.com/wasm-bindgen/wasm-pack/actions/workflows/test.yml/badge.svg?branch=master"/></a>
<a href="https://crates.io/crates/wasm-pack"><img alt="crates.io" src="https://img.shields.io/crates/v/wasm-pack"/></a>
</p>

<h3>
<a href="https://drager.github.io/wasm-pack/book">Docs</a>
<span> | </span>
<a href="https://github.com/drager/wasm-pack/blob/master/CONTRIBUTING.md">Contributing</a>
<a href="https://github.com/wasm-bindgen/wasm-pack/blob/master/CONTRIBUTING.md">Contributing</a>
<span> | </span>
<a href="https://discordapp.com/channels/442252698964721669/443151097398296587">Chat</a>
</h3>
Expand All @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion npm/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const getPlatform = () => {
const getBinary = () => {
const platform = getPlatform();
const version = require("./package.json").version;
const author = "drager";
const author = "wasm-bindgen";
const name = "wasm-pack";
const url = `https://github.com/${author}/${name}/releases/download/v${version}/${name}-v${version}-${platform}.tar.gz`;
return new Binary(platform === windows ? "wasm-pack.exe" : "wasm-pack", url, {
Expand Down
6 changes: 3 additions & 3 deletions npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/drager/wasm-pack.git"
"url": "git+https://github.com/wasm-bindgen/wasm-pack.git"
},
"keywords": [
"wasm",
Expand All @@ -25,9 +25,9 @@
"author": "Jesper HΓ₯kansson <jesper@jesperh.se>",
"license": "MIT OR Apache-2.0",
"bugs": {
"url": "https://github.com/drager/wasm-pack/issues"
"url": "https://github.com/wasm-bindgen/wasm-pack/issues"
},
"homepage": "https://github.com/drager/wasm-pack#readme",
"homepage": "https://github.com/wasm-bindgen/wasm-pack#readme",
"dependencies": {
"binary-install": "^1.1.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/build/wasm_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl fmt::Display for Wasm32Check<'_> {
let rustup_string = if self.is_rustup {
"It looks like Rustup is being used.".to_owned()
} else {
format!("It looks like Rustup is not being used. For non-Rustup setups, the {} target needs to be installed manually. See https://drager.github.io/wasm-pack/book/prerequisites/non-rustup-setups.html on how to do this.", self.target)
format!("It looks like Rustup is not being used. For non-Rustup setups, the {} target needs to be installed manually. See https://wasm-bindgen.github.io/wasm-pack/book/prerequisites/non-rustup-setups.html on how to do this.", self.target)
};

writeln!(
Expand Down
4 changes: 1 addition & 3 deletions src/command/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ pub fn generate(template: String, name: String, install_permitted: bool) -> Resu
"latest",
install_permitted,
)?;
let template_subfolder =
(template == generate::DEFAULT_TEMPLATE).then_some(generate::DEFAULT_TEMPLATE_SUBFOLDER);
generate::generate(&template, template_subfolder, &name, &download)?;
generate::generate(&template, &name, &download)?;

let msg = format!("πŸ‘ Generated new project at /{}", name);
PBAR.info(&msg);
Expand Down
2 changes: 1 addition & 1 deletion src/command/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub struct TestOptions {
/// If the path is not provided, this command searches up the path from the current directory.
///
/// This is a workaround to allow wasm pack to provide the same command line interface as `cargo`.
/// See <https://github.com/drager/wasm-pack/pull/851> for more information.
/// See <https://github.com/wasm-bindgen/wasm-pack/pull/851> for more information.
pub path_and_extra_options: Vec<String>,
}

Expand Down
Loading
Loading