cd-manager

Crates.iocd-manager
lib.rscd-manager
version0.1.1
sourcesrc
created_at2018-09-01 21:43:27.638672
updated_at2018-09-01 22:12:43.439143
descriptionA small crate for ensuring directories are popped to restore a base directory on Drop.
homepage
repositoryhttps://github.com/LinearZoetrope/cd-manager
max_upload_size
id82555
size22,841
(UserAB1236872)

documentation

README

cd-manager Build Status

GitHub issues Latest Version

This is a simple crate designed to prevent you from forgetting to pop off of a PathBuf upon exiting scope (i.e. at the end of a loop, when returning from a function, etc). This makes it easy to have multiple return points, as your context will automatically be restored upon Drop.

This crate is not perfectly safe at the moment (it is "safe" in the Rust sense, but you can trigger undesired behavior when used improperly), but the basic functionality works.

For more documentation, see the main feature of this package, CdManager.

To add this to your project, use

[dependencies]
cd-manager = "0.1"
Commit count: 0

cargo fmt