resolved-pathbuf

Crates.ioresolved-pathbuf
lib.rsresolved-pathbuf
version0.1.3
sourcesrc
created_at2023-08-09 16:00:31.408655
updated_at2023-08-24 01:07:56.604567
descriptionA resolved PathBuf
homepage
repositoryhttps://github.com/fleek-network/lightning
max_upload_size
id940176
size19,016
Parsa (qti3e)

documentation

README

ResolvedPathBuf

This type is a wrapper around a normal PathBuf that is resolved upon construction. This happens through the resolve_path crate.

Additionally, this wrapper preserves the original path as well, and uses the original when serialized using serde. This makes this wrapper a safe tool when dealing with user provided path. For example either through command line arguments or configuration values.

Preserving the original allows us to avoid modifying the user configuration when serializing the configuration back to the disk.

Commit count: 1355

cargo fmt