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
86 changes: 55 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ members = [
]

resolver = "2"

[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if ! command -v rustup; then
./rustup.sh -y --target wasm32-unknown-unknown --profile minimal
rm rustup.sh

# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "$HOME/.cargo/env"
fi

Expand All @@ -20,7 +20,13 @@ fi


cd "$project_root/web"

# very messy workaround for https://github.com/rustwasm/wasm-pack/issues/1420
mv package.json package.json.bak
echo -n '{}' > package.json
wasm-pack build --release
mv -f package.json.bak package.json

npm install
NODE_OPTIONS=--openssl-legacy-provider npm run build

Expand Down
2 changes: 2 additions & 0 deletions data/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* **Enhancement:** Update wasm-bindgen for compatibility with Rust 1.86.0. (No
user-facing impact.) @MikkelPaulson
* **Enhancement:** Migrate the `about` command to use a new architecture. (No
user-facing impact but it was a lot of work.) @MikkelPaulson
* **Enhancement:** Feature parity for CLI autocompletion. @mplauman
Expand Down
6 changes: 6 additions & 0 deletions dev-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ set -euxo pipefail

cd web
npm install

# very messy workaround for https://github.com/rustwasm/wasm-pack/issues/1420
mv package.json package.json.bak
echo -n '{}' > package.json
wasm-pack build
mv -f package.json.bak package.json

npm start
5 changes: 1 addition & 4 deletions web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ wasm-bindgen-futures = "0.4"
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.6", optional = true }
serde-wasm-bindgen = "0.6.5"

[dependencies.web-sys]
version = "0.3"
features = ["CustomEvent", "CustomEventInit", "Document", "Element", "Event", "EventTarget", "Window"]

[dev-dependencies]
wasm-bindgen-test = "0.3.13"

#[profile.release]
# Tell `rustc` to optimize for small code size.
#opt-level = "s"
Loading