From 5a2b97336e17ab6ac2664c33302beff4acb8de72 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Thu, 21 Sep 2023 14:53:41 +0200 Subject: [PATCH] Make sure axum-extra also supports being compiled to WASM 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. --- examples/simple-router-wasm/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/simple-router-wasm/Cargo.toml b/examples/simple-router-wasm/Cargo.toml index 03de581ab0..64a514a168 100644 --- a/examples/simple-router-wasm/Cargo.toml +++ b/examples/simple-router-wasm/Cargo.toml @@ -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"