diff --git a/Cargo.toml b/Cargo.toml index d994034..2423c84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,10 @@ name = "beau-gosse-du-92" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[features] +default = [] +desktop = ["dioxus/desktop"] +web = ["dioxus/web"] [dependencies] dioxus = "0.5.0" @@ -30,16 +33,11 @@ const_format = "0.2.32" zxcvbn = "2.2.2" async-std = "1.12.0" -[build] -target = "x86_64-unknown-linux-gnu" +[target.'cfg(target_family = "wasm")'.dependencies] +web-sys = { version = "0.3.69" } [build-dependencies] regex = "1.10.3" [package.metadata.turf.class_names] template = "--" - -[features] -default = [] -desktop = ["dioxus/desktop"] -web = ["dioxus/web"]