Best
All checks were successful
Rust Checks / checks (push) Successful in 23s
Rust Checks / checks (pull_request) Successful in 21s

This commit is contained in:
Tipragot 2024-02-03 14:42:02 +01:00
parent 8c3b6b98f2
commit 591306c47c

View file

@ -7,7 +7,6 @@ pub use dioxus_fullstack::prelude::*;
#[cfg(all(not(target_arch = "wasm32"), debug_assertions))]
/// Compile le site en webassembly et génère le fichier de style avec tailwind.
fn build_app() {
use std::io::{BufRead, BufReader};
use std::path::PathBuf;
use std::{env, fs};
@ -19,18 +18,6 @@ fn build_app() {
let project_folder = env::current_dir().expect("unable to get current directory");
let output_folder = project_folder.join("web");
// Get the project name
// let cargo_file =
// fs::File::open(project_folder.join("Cargo.toml")).expect("unable to open
// Cargo.toml"); let project_name = BufReader::new(cargo_file)
// .lines()
// .map_while(Result::ok)
// .find(|l| l.starts_with("name = "))
// .expect("unable to find project name");
// let project_name = project_name
// .trim_start_matches("name = \"")
// .trim_end_matches('"');
// Build WASM
let mut config = CrateConfig::new(Some(project_folder.clone()))
.expect("unable to load the project configuration");