From c8cf147657093bff3aad5cbf2dafa336235a37c6 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Thu, 21 Sep 2023 15:14:57 +0200 Subject: [PATCH] Make sure axum-extra also supports being compiled to WASM (#2237) Co-authored-by: Jonas Platte --- 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..da14b580ab 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 use axum-extra in 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"