Benign cargo Download

lib.rs

Rust test marker or harnessHTTP URL targets an image file
SHA-25675b44acfc9627b821cd725649db07693a43b2e44b2fac19b79354c6d950c4038

Evidence

HTTP URL targets an image file lines 196–200
196:19… ger_raw`]: fn.shutdown_logger_raw.html
197
198#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
199 html_favicon_url = "https://www.rust-lang.org/favicon.ico",
200 html_root_url = "https://doc.rust-lang.org/log/")]
imports std::cmp lines 212–228
212:17… e = "use_std"))]
213extern crate core as std;
214
215use std::cmp;
216#[cfg(feature = "use_std")]
217use std::error;
218use std::fmt;
219use std::mem;
220use std::ops::Deref;
221use std::str::FromStr;
222use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
223#[macro_use]
224mod macros;
⋯4 lines
Rust calls mem::transmute lines 665–672
665:16… )]
666pub fn max_log_level() -> LogLevelFilter {
667 unsafe { mem::transmute(MAX_LOG_LEVEL_FILTER.load(Ordering::Relaxed)) }
668}
669
670/// Sets the global logger.
671///
672/// The `make_logger` closure is passed a `Ma …
imports std::panic::PanicInfo lines 820–827
820:27… ly", feature = "use_std"))]
821mod panic {
822 use std::panic::PanicInfo;
823 use std::thread;
824
825 pub fn log(info: &PanicInfo) {
826 let thread = thread::current();
827 let thread …
imports super::LogLevel lines 938–954
⋯4 lines
942}
943
944#[cfg(test)]
945mod tests {
946 extern crate std;
947 use tests::std::string::ToString;
948 use super::{LogLevel, LogLevelFilter};
949
950 #[test]
951 fn test_loglevelfilter_from_str() {
952 let tests = [
953 ("off", Ok(LogLevelFilter::Off)),
954 ( …

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.