Skip to content

Commit

Permalink
chore: Allow build blocking in wasm32 (#113)
Browse files Browse the repository at this point in the history
blocking in wasm doesn't make sense but allow build them makes backon
easier to use. Let's add them back.

Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Aug 26, 2024
1 parent ba6e069 commit 2c9d179
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: wasm-pack test --node --all-features
- run: wasm-pack test --node --all-features -- --skip blocking
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: full
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,12 @@ pub use sleep::Sleeper;
#[cfg(all(not(target_arch = "wasm32"), feature = "tokio-sleep"))]
pub use sleep::TokioSleeper;

#[cfg(not(target_arch = "wasm32"))]
mod blocking_retry;
#[cfg(not(target_arch = "wasm32"))]
pub use blocking_retry::BlockingRetry;
#[cfg(not(target_arch = "wasm32"))]
pub use blocking_retry::BlockingRetryable;

#[cfg(not(target_arch = "wasm32"))]
mod blocking_retry_with_context;
#[cfg(not(target_arch = "wasm32"))]
pub use blocking_retry_with_context::BlockingRetryWithContext;
#[cfg(not(target_arch = "wasm32"))]
pub use blocking_retry_with_context::BlockingRetryableWithContext;

#[cfg(docsrs)]
Expand Down

0 comments on commit 2c9d179

Please sign in to comment.