use rust_embed::RustEmbed;
#[derive(RustEmbed)]
#[folder = "../../noir_stdlib/src"]
#[cfg_attr(not(target_os = "windows"), prefix = "std/")]
#[cfg_attr(target_os = "windows", prefix = r"std\")] struct StdLibAssets;
pub fn stdlib_paths_with_source() -> Vec<(String, String)> {
StdLibAssets::iter()
.map(|path| {
let source = std::str::from_utf8(StdLibAssets::get(&path).unwrap().data.as_ref())
.unwrap()
.to_string();
(path.to_string(), source)
})
.collect()
}
pub fn stdlib_nargo_toml_source() -> String {
include_str!("../../../noir_stdlib/Nargo.toml").to_string()
}