| GitHub | https://github.com/tracyspacy |
| GitHub | https://github.com/tracyspacy |
Initial release of FLI - really tiny and fast (like a 🪰) directory listing tool.
*Initial Why:* need some easy readable *ls* like tool for rpi to use via ssh.
*Current Why:* check if with Rust one can build core utils like tools faster and smaller.
- Size:
18K - RPI ZERO W
51KB - Mac
- Default mode streams readdir() => stdout with zero heap allocation.
- Nice readabilty thx to (📄 and 🗂️) instead of text coloring
- Written in no_std #rust + libc.
RE: https://mastodon.social/@tracyspcy/116716248556720328
As for alignment in stream mode - decided to use fixed 20 chars width for size and n_link - much cheaper, than separate pass through directory.
Progress on fli - directory listing tool in no_std rust + libc:
1. MacOS 51KB, rpi zero w: 22KB
2. added long output (-l) and sorting by name (-s)
3. added aligned output for sorted version.
4. direct steam mode: reads directory entries and writes to buffer and outputs both long and basic return , but no sorting as compromise
Challenge :
how to align output (size,n_link) w/o allocations: I think to make 2 passes (1st get max width and 2nd for content)..
Progress on fli - directory listing tool in no_std rust + libc:
1. MacOS 51KB, rpi zero w: 22KB
2. added long output (-l) and sorting by name (-s)
3. added aligned output for sorted version.
4. direct steam mode: reads directory entries and writes to buffer and outputs both long and basic return , but no sorting as compromise
Challenge :
how to align output (size,n_link) w/o allocations: I think to make 2 passes (1st get max width and 2nd for content)..