Benign crates 1,905,182 installs Download

cargo-license 0.3.0

legitimate cargo subcommand

“Cargo subcommand to see license of dependencies”

Rust test marker or harnessMarkdown references a remote image
SHA-256f7eeefa9e05a8cf0cdf5a4529ae8a497715bef833b2778a57252250bc9d57407

Evidence

Markdown references a remote image README.md · lines 38–40
38:6… o-license` running inside the cargo-license project directory:
39
40![cargo-license](https://i.imgur.com/9KARkwP.png)
uses structopt crate cargo-license.rs · lines 12–20
12:2… se std::io;
13use std::path::PathBuf;
14use std::process::exit;
15use structopt::StructOpt;
16
17fn group_by_license_type(
18 dependencies: Vec<cargo_license::DependencyDetails>,
19 display_authors: bool,
20) {
Rust replaces matched string content lib.rs · lines 49–58
49:19… escription
50 .to_owned()
51 .map(|s| s.trim().replace("\n", " ")),
52 }
53 }
⋯5 lines
#[cfg(test)] attribute lib.rs · lines 61–77
⋯5 lines
66}
67
68#[cfg(test)]
69mod test {
70 use super::*;
71
72 #[test]
73 fn test_detailed() {
74 let cmd = cargo_metadata::MetadataCommand::new();
75 let detailed_dependencies = get_dependencies_from_cargo_lock(cmd).unwrap();
76 assert!(!detailed_dependencies.is_empty());
77 for detailed_dependency in detailed_dependencies.it …

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.