Benign rust 85 installs Download

crys_bricks 0.2.0

“Utilities for build scripts and binding generation.”

Near-zero recent downloads for registry packagePackage first published within seven days
SHA-256dd5cfa8ad9d5fc7c68cb0cd20a945be69c548d7fa2c0edb41851b2fdb8b31a01

Evidence

imports std::fs mod.rs · lines 1–13
1//! Utilities for organizing generated Rust bindings into deterministic module trees.
2
3use crate::determinism::ItemOrder;
4use proc_macro2::Span;
5use quote::format_ident;
6use std::collections::{BTreeMap, BTreeSet};
7use std::fmt::{Display, Formatter};
8use std::fs;
9use std::path::{Component, Path, PathBuf};
10use syn::{File, Item, LitStr, parse_quote};
11
12/// The file name used for layout assertions extracted from a generated leaf module.
13pub const LAYOUT_A …
Writes a file with Rust fs::write mod.rs · lines 269–281
269:72… Directory {
270 path: parent.to_owned(),
271 source,
272 })?;
273 fs::write(&path, contents)
274 .map_err(|source| ModuleWriteError::WriteFile { path, source })?;
275 }
⋯6 lines
imports super::* mod.rs · lines 583–603
⋯6 lines
589}
590
591#[cfg(test)]
592mod tests {
593 use super::*;
594
595 #[test]
596 fn sanitizes_header_paths_into_rust_modules() {
597 let path = ModulePath::from_header_path("Public API/9-lives/type.generated.hpp").unwrap();
⋯6 lines
Code formats a zero-padded integer timestamp.rs · lines 27–37
27:9… f.profile.is_release() {
28 write!(f, "{month:02}/{day:02}/{year:04}")
29 } else {
30 write!(
⋯7 lines
imports std::ffi::OsStr mod.rs · lines 1–13
1use anyhow::ensure;
2use std::env::{VarError, var, var_os};
3use std::error::Error;
4use std::ffi::{OsStr, OsString};
5use std::fmt::{Display, Formatter};
6use std::ops::{Deref, DerefMut};
7use std::path::{Path, PathBuf};
8use std::str::FromStr;
9
10#[derive(Debug, Clone, PartialEq, Eq, Hash)]
11pub enum Profile {
12 Standard(RsProfile),
13 Custom …

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.