You can add it to your Cargo.toml
manually, but my favorite method is via cargo-edit
sh
$ cargo add file-rotator
For usage instructions, and to learn what a "rotating file" is, please check out the documentation on docs.rs
I've created this crate to allow its usage in my other project, redditbg.rs, so that I can have logging without having to worry about using up literally all of the bytes on my disk