Skip to content

Commit

Permalink
Burn select patch, upgrade rand. (#108)
Browse files Browse the repository at this point in the history
* Burn `select`patch, upgrade rand.

* Fix burn ref

* Fix random backend on wasm

* Fix fix

* Fix lib in CI

* Runner

* Force wasm_js

* CI
  • Loading branch information
ArthurBrussee authored Feb 13, 2025
1 parent f525aac commit e9dee51
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 87 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.wasm32-unknown-unknown]
rustflags = ['--cfg', 'getrandom_backend="wasm_js"']
runner = 'wasm-bindgen-test-runner'
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if: runner.os == 'Linux'
uses: awalsh128/[email protected]
with:
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
packages: libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
version: 1.0
execute_install_scripts: true

Expand All @@ -37,17 +37,14 @@ jobs:
- name: check --all-features
run: cargo check --locked --all-features --all-targets

- name: check default features
run: cargo check --locked --all-targets

- name: check --no-default-features
run: cargo check --locked --no-default-features --lib --all-targets
run: cargo check --locked --no-default-features --all-targets

- name: Rustfmt
run: cargo fmt --all -- --check

- name: cargo doc --lib
run: cargo doc --lib --no-deps --all-features
- name: cargo doc
run: cargo doc --no-deps --all-features

- name: cargo doc --document-private-items
run: cargo doc --document-private-items --no-deps --all-features
Expand All @@ -73,7 +70,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Check wasm32
run: cargo check --lib --target wasm32-unknown-unknown
run: RUSTFLAGS='--cfg getrandom_backend="wasm_js"' cargo check --target wasm32-unknown-unknown

# ---------------------------------------------------------------------------

Expand Down
Loading

0 comments on commit e9dee51

Please sign in to comment.