在 no_std Rust 和 Libc 中的 18KB 文件列出工具
FLI的初始发布 - 一个非常小巧且快速的目录列表工具。<p><i>初衷:</i>需要一个易于阅读的类似<i>ls</i>的工具,以便通过SSH在树莓派上使用。<i>当前目的:</i>检查使用Rust是否可以构建更快、更小的核心工具。<p>- 大小:<br>18K - 树莓派ZERO W <br>51KB - Mac<p>- 默认模式将readdir()的输出流直接发送到stdout,且没有堆内存分配。<p>- 由于使用(和)代替文本着色,具有良好的可读性。<p>- 使用no_std Rust和libc编写。<p>代码库: https://github.com/tracyspacy/fli
查看原文
Initial release of FLI - really tiny and fast (like a ) directory listing tool.<p><i>Initial Why:</i> need some easy readable <i>ls</i> like tool for rpi to use via ssh.
<i>Current Why:</i> check if with Rust one can build core utils like tools faster and smaller.<p>- Size:
18K - RPI ZERO W
51KB - Mac<p>- Default mode streams readdir() => stdout with zero heap allocation.<p>- Nice readabilty thx to ( and ) instead of text coloring<p>- Written in no_std rust + libc.<p>repo: https://github.com/tracyspacy/fli