Skip to content

Commit 5c7c230

Browse files
committed
hello_world_rust_wasm_lib_component
1 parent 408ddf4 commit 5c7c230

File tree

17 files changed

+80
-80
lines changed

17 files changed

+80
-80
lines changed

.github/workflows/js-npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
node-version: "20"
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm ci
17-
working-directory: hello-world-rust-wasm-component.js
17+
working-directory: hello-world-rust-wasm-lib-component.js
1818
- run: npm run build
19-
working-directory: hello-world-rust-wasm-component.js
19+
working-directory: hello-world-rust-wasm-lib-component.js
2020
- run: npm publish
21-
working-directory: hello-world-rust-wasm-component.js
21+
working-directory: hello-world-rust-wasm-lib-component.js
2222
env:
2323
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/js-npm-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ on:
33
push:
44
branches: "main"
55
paths:
6-
- hello-world-rust-wasm-component.js/**
6+
- hello-world-rust-wasm-lib-component.js/**
77
- .github/workflows/js-npm-test.yml
88
- .github/workflows/build.yml
99
pull_request:
1010
paths:
11-
- hello-world-rust-wasm-component.js/**
11+
- hello-world-rust-wasm-lib-component.js/**
1212
- .github/workflows/js-npm-test.yml
1313
- .github/workflows/build.yml
1414
concurrency:
@@ -30,6 +30,6 @@ jobs:
3030
name: out
3131
path: out
3232
- run: npm ci
33-
working-directory: hello-world-rust-wasm-component.js
33+
working-directory: hello-world-rust-wasm-lib-component.js
3434
- run: npm test
35-
working-directory: hello-world-rust-wasm-component.js
35+
working-directory: hello-world-rust-wasm-lib-component.js

.github/workflows/test-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches: "main"
55
paths-ignore:
6-
- hello-world-rust-wasm-component.js/**
6+
- hello-world-rust-wasm-lib-component.js/**
77
- .gitignore
88
- README.md
99
- LICENSE
@@ -12,7 +12,7 @@ on:
1212
- "!.github/workflows/test-build.yml"
1313
pull_request:
1414
paths-ignore:
15-
- hello-world-rust-wasm-component.js/**
15+
- hello-world-rust-wasm-lib-component.js/**
1616
- .gitignore
1717
- README.md
1818
- LICENSE

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "hello-world-rust-wasm-component"
2+
name = "hello-world-rust-wasm-lib-component"
33
version = "1.0.0"
44
edition = "2021"
55
publish = false

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ console.log(greetMany(["Alan Turing", "Ada Lovelace"]));
2727
</table>
2828

2929
🦀 Written in Rust \
30-
[🟨 Usable in JavaScript](./hello-world-rust-wasm-component.js/) \
30+
[🟨 Usable in JavaScript](./hello-world-rust-wasm-lib-component.js/) \
3131
🌎 Runs on any [WebAssembly Component Runtime]
3232

3333
## Installation
@@ -39,26 +39,26 @@ The easiest way to get started is by using one of these wrapper libraries that
3939
already have all of the WASM host imports resolved.
4040

4141
For JavaScript users, you can use npm, [pnpm], [Yarn], or your other favorite
42-
npm package manager to install [`hello-world-rust-wasm-component` from npm].
42+
npm package manager to install [`hello-world-rust-wasm-lib-component` from npm].
4343

4444
```sh
45-
npm install hello-world-rust-wasm-component
45+
npm install hello-world-rust-wasm-lib-component
4646
```
4747

4848
If you prefer to customize the Javascript ↔ WASM component bindings, you can
4949
use [bytecodealliance/jco] to generate your own bindings.
5050

5151
<!-- For Python users, you can use pip, [Poetry], or another PyPI package manager to
52-
install [`hello-world-rust-wasm-component`] from PyPI.
52+
install [`hello-world-rust-wasm-lib-component`] from PyPI.
5353
5454
```sh
55-
pip install hello-world-rust-wasm-component
55+
pip install hello-world-rust-wasm-lib-component
5656
```
5757
58-
If you're using Rust, you can install [`hello-world-rust-wasm-component`] via Cargo.
58+
If you're using Rust, you can install [`hello-world-rust-wasm-lib-component`] via Cargo.
5959
6060
```sh
61-
cargo install hello-world-rust-wasm-component
61+
cargo install hello-world-rust-wasm-lib-component
6262
``` -->
6363

6464
## Usage
@@ -70,7 +70,7 @@ You can use any [WASM host runtime for components]. You can find the API surface
7070
and any imports you need to provide in [`wit/world.wit`](wit/world.wit).
7171

7272
For language-specific binding documentation, check out
73-
[hello-world-rust-wasm-component.js].
73+
[hello-world-rust-wasm-lib-component.js].
7474

7575
## Development
7676

@@ -99,7 +99,7 @@ Also try not to change the artifacts attached to the draft release; they were
9999
generated by GitHub Actions.
100100

101101
<!-- prettier-ignore -->
102-
✅ JavaScript: [jcbhmr/hello-world-rust-wasm-component/hello-world-rust-wasm-component.js](https://github.com/jcbhmr/hello-world-rust-wasm-component/tree/main/hello-world-rust-wasm-component.js) \
102+
✅ JavaScript: [jcbhmr/hello-world-rust-wasm-lib-component/hello-world-rust-wasm-lib-component.js](https://github.com/jcbhmr/hello-world-rust-wasm-lib-component/tree/main/hello-world-rust-wasm-lib-component.js) \
103103
❌ Python \
104104
❌ Rust
105105

@@ -112,8 +112,8 @@ generated by GitHub Actions.
112112
[`wasm-tools`]: https://github.com/bytecodealliance/wasm-tools
113113
[bytecodealliance/wasmtime releases]: https://github.com/bytecodealliance/wasmtime/releases
114114
[draft release]: https://github.com/jcbhmr/hello-world-wasm-component/actions/workflows/draft-release.yml
115-
[hello-world-rust-wasm-component.js]: https://github.com/jcbhmr/hello-world-rust-wasm-component/tree/main/hello-world-rust-wasm-component.js
115+
[hello-world-rust-wasm-lib-component.js]: https://github.com/jcbhmr/hello-world-rust-wasm-lib-component/tree/main/hello-world-rust-wasm-lib-component.js
116116
[yarn]: https://yarnpkg.com/
117117
[pnpm]: https://pnpm.io/
118-
[`hello-world-rust-wasm-component` from npm]: https://www.npmjs.com/package/hello-world-rust-wasm-component
118+
[`hello-world-rust-wasm-lib-component` from npm]: https://www.npmjs.com/package/hello-world-rust-wasm-lib-component
119119
<!-- prettier-ignore-end -->

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ mkdir -p out
44

55
if [[ $1 == '--release' ]]; then
66
release_flag="--release"
7-
artifact=target/wasm32-wasi/release/hello_world_rust_wasm_component.wasm
7+
artifact=target/wasm32-wasi/release/hello_world_rust_wasm_lib_component.wasm
88
else
99
release_flag=""
10-
artifact=target/wasm32-wasi/debug/hello_world_rust_wasm_component.wasm
10+
artifact=target/wasm32-wasi/debug/hello_world_rust_wasm_lib_component.wasm
1111
fi
1212

1313
cargo build --target wasm32-wasi $release_flag

hello-world-rust-wasm-component.js/index.test.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)