generated from tipragot/rust
Réglage du problème du mauvais nom de projet #4
13
src/lib.rs
13
src/lib.rs
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue