From 4261e24cd26f56d8ea1c6313f58644cc4f968c0a Mon Sep 17 00:00:00 2001 From: Adrien Date: Sat, 6 Apr 2024 12:17:25 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=20Clean=20Cargo.toml=20fi?= =?UTF-8?q?le=20and=20add=20target=20specific=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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"]