Benign cargo Download

test.rs

Receiver iterates one thousand timesSource contains low-bit mask syntax
SHA-256afedff1b9b7dea84b356b66d138dede32192e9229dd28e6bb87514e6042251e5

Evidence

#[test] attribute lines 21–30
21:29… .for_each(|(i, x)| *x = i);
22 XorShiftRng::from_seed(seed)
23}
24
25#[test]
26pub fn execute() {
27 let a: Vec<i32> = (0..1024).collect();
28 let mut b = vec![];
29 a.par_iter().map(|&i| i + 1).collect_into_vec(&mut b);
30 let c …
Receiver iterates one thousand times lines 370–380
370:20… _direct() {
371 let a = (0..1024).into_par_iter();
372 let b = (1..1024).into_par_iter();
373
374 let result = a.cmp(b);
⋯6 lines
Source contains low-bit mask syntax lines 765–770
765:51… 9, 10];
766 let par_sum_evens: i32 = a.par_iter().filter(|&x| (x & 1) == 0).sum();
767 let seq_sum_evens = a.iter()
768 .filter(|&x| (x & 1) == 0)
769 .map(|&x| x)
770 .fold(0, |a, b| …
Structured object names a sequence field lines 918–924
918:38… ct();
919 let par: Vec<_> = a.par_windows(2).collect();
920 let seq: Vec<_> = a.windows(2).collect();
921 assert_eq!(par, seq);
922
923 let par: Vec<_> = a.par_windows(100).collect();
924 let seq: Ve …
Rust spawns a concurrent task lines 1438–1441
1438:61… : &'scope AtomicUsize, size: usize) {
1439 if size > 1 {
1440 scope.spawn(move |scope| divide_and_conquer(scope, counter, size / 2));
1441 scope.spawn(move |scope| divide_and_conquer(scope, counter, …

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.