Registry / utility / project-root

project-root

JSON →
library0.2.2rscratesunverified

Simple utility to return the absolute path to your project root.

# Cargo.toml [dependencies] project-root = "0.2.2"
INSTALL
IMPORT
SIG · PROJECT-ROOT
P
project-root
utilityrustv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_project_root
use project_root::get_project_root;

Gets the absolute path to the project root.

use project_root::get_project_root; fn main() { let root = get_project_root().unwrap(); println!("Project root: {:?}", root); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
project-root — cargo add project-root · libregistry