5 releases
0.1.4 | Dec 27, 2020 |
---|---|
0.1.3 | Dec 21, 2020 |
0.1.2 | Dec 17, 2020 |
0.1.1 | Dec 17, 2020 |
0.1.0 | Dec 17, 2020 |
#41 in #tail
389 downloads per month
8KB
156 lines
fs-tail
tail a file and block until more lines are added.
usage
let file = std::fs::File::open("/path/to/some/file").unwrap();
let file = TailedFile::new(file);
let locked = file.lock();
for line in locked.lines() {
if let Ok(line) = line {
println!("{}", line);
}
}
Dependencies
~110–250KB