Benign crates 2,076,749 installs Download

syntex 0.53.0

“A library that enables compile time syntax extension expansion”

imports std::ffi::OsStrRust File::create call
SHA-2565b8f5635f1741c37137b36cd43d2312bc8c196c14f385c05e7f4850206e28d65
MaleculeH₂(FOs)

Evidence

imports std::ffi::OsStr stack.rs · lines 1–48
1use std::env;
2use std::ffi::OsStr;
3use std::ops::Drop;
4use std::thread;
5
6const STACK_ENV_VAR: &'static str = "RUST_MIN_STACK";
7const EXTRA_STACK: &'static str = "16777216"; // 16 MB
8
9/// Runs a function in a thread with extra stack space (16 MB or
10/// `$RUST_MIN_STACK` if set).
11///
12/// The Rust parser uses a lot of stack space so codegen sometimes requires more
13/// than is available by default.
14///
⋯6 lines
21/// ```
22///
23/// This function runs with a 16 MB stack by default but a different value can
24/// be set by the RUST_MIN_STACK environment variable.
25pub fn with_extra_stack<F, T>(f: F) -> T
26 where F: Send + 'static + FnOnce() -> T,
27 T: Send + 'static
28{
⋯7 lines
36 V: AsRef<OsStr>,
37{
38 match env::var(&k) {
39 Ok(_) => TmpEnv::WasAlreadySet,
40 Err(_) => {
⋯8 lines
Rust File::create call registry.rs · lines 149–160
149:14… eturn Err(Error::Expand);
150 }
151
152 let mut dst = try!(File::create(dst));
153 try!(dst.write_all(&out));
154 Ok(())
⋯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.