File following utility written in Rust - follows through rotation, and always starting at the end.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anthony J. Martinez 6d3e17836c Merge pull request 'Change to dual license' (#3) from update-licenses into main 6 months ago
src Change to dual license 6 months ago
.gitignore Add documentation, fix code style in follow method 8 months ago
Cargo.lock Change to dual license 6 months ago
Cargo.toml Change to dual license 6 months ago
LICENSE-APACHE Change to dual license 6 months ago
LICENSE-MIT Change to dual license 6 months ago Change to dual license 6 months ago


staart is tail-like implementation in Rust for Linux systems. The binary expects exactly one argument which is the file to be followed. Tailing of the file starts at the end of the file, and continues from there. If a file is rotated with a new file created with the same name the program will continue following the named file, and not the previous version. The program will crash if non-utf8 code points are encountered during tailing.


staart offers a Rust std-lib only binary crate capable of following a file consiting of utf-8 code points. If the file is rotated, the new file will be followed. Usage is simple:

staart <path/to/file.ext>

The full feature set of tail is not replicated here. staart will always start from the end of the file, and print all subsequently appearing lines to stdout.


staart can be used as a library exposing methods to the TailedFile struct it creates should there be a need to follow a file from directly within a more complicated application.

Documentation can be found here.


Licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Copyright (C) 2020-2021 Anthony Martinez