Benign crates 1,226,346 installs Download

hdfs-native-object-store 0.8.0

“object_store implementation for Native HDFS client”

Archive ships a root-level test treeConstructs a Rust command using imported Command
SHA-256c389556345eb1585e87e2a56766c40dac7efbb78b1abd79d2cd148312c955e7d

Evidence

Imports Rust process::Command mod.rs · lines 1–10
1#![allow(dead_code)]
2use std::collections::HashSet;
3use std::io::{BufWriter, Write};
4use std::process::Command;
5use tempfile::NamedTempFile;
6use which::which;
⋯4 lines
Rust integer to big-endian bytes mod.rs · lines 19–40
19:22… r = BufWriter::new(file.as_file_mut());
20 for i in 0..TEST_FILE_INTS as i32 {
21 let bytes = i.to_be_bytes();
22 writer.write_all(&bytes).unwrap();
23 }
24 writer.flush().unwrap();
25 }
26
27 let status = Command::new(hadoop_exc)
28 .args([
29 "fs",
⋯11 lines
Rust Tokio async runtime usage test_object_store.rs · lines 11–18
11:28… ashSet;
12
13 use crate::common::{setup, TEST_FILE_INTS};
14
15 #[tokio::test]
16 #[serial]
17 async fn test_object_store() -> object_store::Result<()> {
18 let dfs = setup(&HashSet::from([DfsFe …
English function-word token "the" test_object_store.rs · lines 94–103
94:29… :from("/testfile");
95
96 let mut buf = store.get(&location).await?.bytes().await?;
97 for i in 0..TEST_FILE_INTS as i32 {
98 assert_eq!(buf.get_i32(), i);
99 }
100
101 // Read a single integer from the file
102 let offset = TEST_FILE_INTS / 2 * 4;
103 let mut buf = store.get_range(&locati …
Rust Tokio async runtime usage lib.rs · lines 35–45
35 ObjectStore, PutMode, PutOptions, PutResult, Result,
36};
37use tokio::io::AsyncWrite;
38
39#[derive(Debug)]
⋯6 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.