MCPcopy Create free account
hub / github.com/docknetwork/crypto / abs_path

Function abs_path

proof_system/tests/r1cs/mod.rs:17–21  ·  view source on GitHub ↗

Given path relative to this crate, return absolute disk path

(relative_path: &str)

Source from the content-addressed store, hash-verified

15
16/// Given path relative to this crate, return absolute disk path
17pub fn abs_path(relative_path: &str) -> String {
18 let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
19 path.push(relative_path);
20 path.to_string_lossy().to_string()
21}
22
23pub fn get_r1cs_and_wasm_bytes<R: RngCore>(
24 r1cs_file_path: &str,

Calls

no outgoing calls

Tested by

no test coverage detected