Anthony J. Martinez
- Note: this support is not the best and the README reflects this - Anyone who wishes to fix it is welcome to do so - I neither use, nor wish to use, Windows.
|1 week ago|
|src||1 week ago|
|.gitignore||11 months ago|
|Cargo.lock||1 week ago|
|Cargo.toml||1 week ago|
|LICENSE-APACHE||9 months ago|
|LICENSE-MIT||9 months ago|
|README.md||1 week ago|
staart is tail-like implementation in Rust.
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. In the
case of truncation, data are printed from the start of the file.
staart offers a Rust std-lib only binary crate capable of following a
file. If the file is rotated, the new file will be followed. Following will
start at the beginning should truncation be detected. Usage is simple:
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
stdout. If non-utf8 code points are found an error is printed to
If the path given to
staart does not exist for three open attempts, the
application exits with status code 1.
staart can be used as a library exposing methods to the
struct it creates should there be a need to follow a file from directly
within a more complicated application.
Documentation can be found here.
staart will at least run in a Windows environment as of v0.4.0, but the
behavior is not identical to the Linux environment for reasons unknown to
the developer. Contributions are welcome if someone wishes to fix this.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.
To discuss features, offer assistance, or get help plese join the project's Matrix room.
Copyright (C) 2020-2021 Anthony Martinez