Benign crates 1,456,953 installs Download

aur-fetch 0.8.1

“A libary for downloading and diffing AUR packages”

Constructs a Rust command using imported CommandImports Rust process::Command
SHA-256f8ee1f4f344af70599dce72518673e0340cfa46c3ca014102000c42b78a71a34

Evidence

Rust Tokio async runtime usage lines 9–29
9use std::os::unix::fs::symlink;
10use std::path::{Path, PathBuf};
11use std::process::{Command, Output};
12
13use std::rc::Rc;
14
15use futures::future::try_join_all;
16
17#[cfg(feature = "view")]
18use tempfile::{Builder, TempDir};
19use tokio::process::Command as AsyncCommand;
20use url::Url;
21
⋯8 lines
Rust Command captures child output lines 163–173
163:30… f.is_git_repo(pkg);
164 let command = if is_git_repo {
165 fetched = true;
166 AsyncCommand::new(&self.git)
167 .current_dir(&self.clone_dir.join(pkg))
168 .args(&["fetch", "-v"])
⋯5 lines
Rust File::create call lines 302–310
302:5… path.set_extension("diff");
303
304 let mut file = File::create(path)?;
305
306 file.write_all(
307 &git_log(
308 &self.git,
309 &self.git_flags,
310 self.clone_di …
Constructs a Rust process command lines 435–445
435:17… ing],
436 args: &[&str],
437) -> Result<Output> {
438 let output = Command::new(git.as_ref())
439 .current_dir(path.as_ref())
440 .args(flags)
⋯5 lines
Rust Command spawns a child process lines 460–475
460:13… [String],
461 args: &[&str],
462) -> Result<()> {
463 let status = Command::new(git.as_ref())
464 .current_dir(path.as_ref())
465 .args(flags)
⋯10 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.