cf3a90faca
to facilitate module reloading
7 lines
197 B
Rust
7 lines
197 B
Rust
use std::path::PathBuf;
|
|
|
|
/// Return the value of `$CARGO_MANIFEST_DIR` at runtime.
|
|
pub(crate) fn runtime_root() -> PathBuf {
|
|
PathBuf::new().join(std::env::var("CARGO_MANIFEST_DIR").unwrap())
|
|
}
|