Registry / utility / pathdiff

pathdiff

JSON →
library0.2.3rscratesunverified

Library for diffing paths to obtain relative paths.

# Cargo.toml [dependencies] pathdiff = "0.2.3"
INSTALL
IMPORT
SIG · PATHDIFF
P
pathdiff
utilityrustv0.2.3
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.

diff_paths
use pathdiff::diff_paths;

Compute the relative path from one absolute path to another.

use pathdiff::diff_paths; fn main() { let relative = diff_paths("/foo/bar/baz", "/foo/bar").unwrap(); println!("Relative: {:?}", relative); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pathdiff — cargo add pathdiff · libregistry