Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #7

Merged
merged 29 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e5b83c0
chore: update todos
c-git Jun 12, 2024
6a06f6a
docs: update lib home page
c-git Jun 13, 2024
9a1f902
style: format settings file
c-git Jun 13, 2024
ccabdb8
chore: remove setting for vscode for all features
c-git Jun 13, 2024
60f54ee
chore: add config.toml to set vscode to use wasm
c-git Jun 13, 2024
5a9bff7
ci: add checks for wasm
c-git Jun 13, 2024
bc5b96e
ci: change name of workflows
c-git Jun 13, 2024
101f1ea
ci: specify target
c-git Jun 13, 2024
8c6f77d
ci: clarify name of job
c-git Jun 13, 2024
b1bdd8c
ci: update when jobs run
c-git Jun 13, 2024
9e4187d
ci: add wasm tests
c-git Jun 13, 2024
269e94b
ci: Merge remote-tracking branch 'ci/main' into develop
c-git Jun 13, 2024
8393301
chore: update todos
c-git Jun 13, 2024
d30fa77
refactor: make test more explicit
c-git Jun 13, 2024
c737f9f
feat: add examples
c-git Jun 13, 2024
f17615c
test: make type safe to send on wasm
c-git Jun 13, 2024
9d41f58
docs: refer to examples from docs
c-git Jun 13, 2024
c31f2cf
chore: Only include tokio for native
c-git Jun 13, 2024
cbc2f93
test: add a way to reproduce blocking problem
c-git Jun 13, 2024
132f0a3
fix: get loop example to work on wasm
c-git Jun 13, 2024
b1728e0
style: rustfmt (with wrap, using nightly)
c-git Jun 13, 2024
0722dc8
feat: add yield_now
c-git Jun 13, 2024
29f0946
ci: test examples as well in wasm
c-git Jun 13, 2024
aa19d97
feat: change to generics
c-git Jun 13, 2024
3611701
feat: re-export reqwest client
c-git Jun 13, 2024
414db8b
docs: make comment more clear
c-git Jun 13, 2024
e50bb79
chore: update todos after checking docs
c-git Jun 13, 2024
434e9f2
chore: version bump
c-git Jun 13, 2024
41c4bd2
Merge branch 'main' into develop
c-git Jun 13, 2024
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
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
# target = "wasm32-unknown-unknown"
4 changes: 4 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop

env:
CARGO_TERM_COLOR: always
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ concurrency:
cancel-in-progress: true

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/semver_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ concurrency:
cancel-in-progress: true

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Rust WASM

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: Test WASM in browser
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
with:
target: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Run tests
run: wasm-pack test --headless --chrome
- name: Run Examples
run: wasm-pack test --headless --chrome --all-features --examples

clippy:
name: Clippy WASM
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
with:
target: wasm32-unknown-unknown
components: clippy
- name: Linting
run: cargo clippy --target="wasm32-unknown-unknown" -- -D warnings
15 changes: 7 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"rust-analyzer.showUnlinkedFileNotification": false,
"cSpell.words": [
"jsvalue"
],
"rust-analyzer.cargo.features": "all",
// "code-runner.customCommand": "wasm-pack test --headless --firefox",
"rust-analyzer.cargo.target": "wasm32-unknown-unknown", //Uncomment to use rust-analyzer on wasm code instead
}
"rust-analyzer.showUnlinkedFileNotification": false,
"cSpell.words": [
"jsvalue"
]
// "code-runner.customCommand": "wasm-pack test --headless --firefox",
// "rust-analyzer.cargo.target": "wasm32-unknown-unknown" // Uncomment to use rust-analyzer on wasm code instead
}
Loading