Skip to content

Commit

Permalink
Make sure axum-extra also supports being compiled to WASM
Browse files Browse the repository at this point in the history
Someone on Discord is having issues with compiling axum-extra to WASM so
I'm adding that as a dependency to `example-simple-router-wasm`. Just so
we don't accidentally break WASM compilation in the future by adding
some non-WASM dependency by default.
  • Loading branch information
davidpdrsn committed Sep 21, 2023
1 parent 3b3bbb2 commit 5a2b973
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/simple-router-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ publish = false
# `default-features = false` to not depend on tokio features which don't support wasm
# you can still pull in tokio manually and only add features that tokio supports for wasm
axum = { path = "../../axum", default-features = false }
# we don't strictly need axum-extra for this example but wanna make sure that
# works in wasm as well
axum-extra = { path = "../../axum-extra", default-features = false }
futures-executor = "0.3.21"
http = "0.2.7"
tower-service = "0.3.1"

0 comments on commit 5a2b973

Please sign in to comment.