Registry / utility / relative-path

relative-path

JSON →
library2.0.1rscratesunverified

Portable, relative paths for Rust, providing a type-safe alternative to PathBuf for relative paths.

# Cargo.toml [dependencies] relative-path = "2.0.1"
INSTALL
IMPORT
SIG · RELATIVE-PATH
R
relative-path
utilityrustv2.0.1
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.

RelativePath
use relative_path::RelativePath;

Creates and displays a relative path.

use relative_path::RelativePath; fn main() { let path = RelativePath::new("foo/bar.txt"); println!("Relative path: {}", path); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
relative-path — cargo add relative-path · libregistry