Benign rust Download

lopatnov-conduit-limits 2.0.0

“Request size/inflight/per-IP/upload-rate limits config + guard for conduit's feature-driven workspace (issue #114/#137, #51)”

Contains an unbounded block loopMultiple standard HTTP request lines in source
SHA-256573c3cc0532f96db6245687471b9d73e2caf686118150e4d6518485846ea8d12

Evidence

References the Tokio async runtime namespace lines 14–31
14:74… server
15//! shutting down).
16
17use std::path::{Path, PathBuf};
18
19use anyhow::Result;
20use async_trait::async_trait;
21use serde::de::DeserializeOwned;
22use tokio::sync::mpsc;
23
24use crate::parse::load_file;
25use crate::validation::ValidationError;
26
27// ── Trait ────────────────────────────────────────────────────────────
⋯4 lines
imports serde::Deserialize lines 280–292
280:135… ��────────────────────
281
282#[cfg(test)]
283mod tests {
284 use std::io::Write as _;
285
286 use serde::Deserialize;
287
288 use super::*;
289
290 #[derive(Debug, Deserialize, PartialEq, Clone)]
291 struct Toy {
292 #[serde(default) …
Source uses a buffer write call lines 300–305
300:4… .tempfile()
301 .expect("tempfile");
302 f.write_all(content.as_bytes()).expect("write");
303 f.flush().expect("flush");
304 let path = f.path().to_path_buf();
305 (f, p …
#[test] attribute lines 308–324
308:27… r#"{"port": 0}"#;
309
310 // ── Provider trait ────────────────────────────────────────────────
311
312 #[test]
313 fn file_provider_name_is_file() {
314 assert_eq!(FileProvider::<Toy>::new("/tmp/x.json").name(), "file");
⋯10 lines
Rust OpenOptions builder lines 488–495
488:46… {
489 use std::io::Write as _;
490 let mut f = std::fs::OpenOptions::new()
491 .write(true)
492 .truncate(true)
493 .open(path)
494 .expect("open for overwrite");
495 …

Showing the top 5 files — 1 more file (23 regions) not shown.

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.