Explorar o código

feat: add `indicatif` crate

YuKun Liu %!s(int64=3) %!d(string=hai) anos
pai
achega
eb0145173d
Modificáronse 2 ficheiros con 1 adicións e 5 borrados
  1. 1 1
      Cargo.toml
  2. 0 4
      src/builder.rs

+ 1 - 1
Cargo.toml

@@ -36,7 +36,7 @@ regex = "1.5.4"
 chrono = "0.4.19"
 anyhow = "1.0.53"
 hyper = "0.14.17"
-loading = "0.3.0"
+indicatif = "0.16.2"
 
 axum = { version = "0.5.1", features = ["ws", "headers"] }
 tower-http = { version = "0.2.2", features = ["fs", "trace"] }

+ 0 - 4
src/builder.rs

@@ -75,8 +75,6 @@ pub fn build(config: &CrateConfig, quiet: bool) -> Result<()> {
         ExecutableType::Example(name) => cmd.arg("--example").arg(name),
     };
 
-    let loading = loading::Loading::default();
-    loading.text("Building");
     let mut child = cmd.spawn()?;
     let out = child.stdout.take().unwrap();
     let mut out = std::io::BufReader::new(out);
@@ -96,8 +94,6 @@ pub fn build(config: &CrateConfig, quiet: bool) -> Result<()> {
             }
         }
     }
-    loading.success("OK");
-    loading.end();
 
     // if !output.status.success() {
     //     log::error!("Build failed!");