Skip to content

Commit d4577a9

Browse files
committed
Add wasm pack
1 parent a4d0ab8 commit d4577a9

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/workflows/check-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515
- uses: actions-rust-lang/setup-rust-toolchain@v1
16+
- uses: jetli/[email protected]
17+
with:
18+
version: 'latest'
1619
- name: Install Node.js
1720
uses: actions/setup-node@v4
1821
with:

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17+
1718
- uses: actions-rust-lang/setup-rust-toolchain@v1
1819
- uses: pnpm/action-setup@v4
1920
name: Install pnpm
2021
with:
2122
run_install: false
23+
24+
- uses: jetli/[email protected]
25+
with:
26+
version: 'latest'
2227
- name: Install Node.js
2328
uses: actions/setup-node@v4
2429
with:

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[workspace]
22
resolver = "2"
33
members = ["libs/extractor", "bindings/devup-ui-wasm", "libs/sheet", "libs/css"]
4+
5+
[profile.release]
6+
# Tell `rustc` to optimize for small code size.
7+
opt-level = "s"

bindings/devup-ui-wasm/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "devup-ui-wasm"
33
version = "0.1.0"
44
authors = ["owjs3901 <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[lib]
88
crate-type = ["cdylib", "rlib"]
@@ -26,6 +26,3 @@ js-sys = "0.3.76"
2626
[dev-dependencies]
2727
wasm-bindgen-test = "0.3.50"
2828

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

0 commit comments

Comments
 (0)