#unix #io #path #system

iocore

IOCore is a safe library for unix CLI tools and Systems programming. IOCore provides the [iocore::Path] abstraction of file-system paths designed to replace most [std::path] and [std::fs] operations with practical methods, other abstractions include: handling file-system permissions via [iocore::PathPermissions] powered by the crate [trilobyte]. handling file-system timestamps via [iocore::PathTimestamps] granularly via [iocore::PathDateTime]. IOCore provides the [iocore::walk_dir] function and its companion trait [iocore::WalkProgressHandler] which traverses file-systems quickly via threads. IOcore provides [iocore::User] which provides unix user information such as uid, path to home etc. The module [iocore::env] provides [iocore::env:args] returns a [Vec<String>] from [std::env:args], and [iocore::env:var] that returns environment variables as string

31 releases (16 stable)

new 3.0.1 Apr 28, 2025
2.3.2 Apr 26, 2025
1.0.1 Apr 1, 2025
0.1011.0 Mar 25, 2025
0.110.1 Nov 9, 2023

#125 in Filesystem

Download history 114/week @ 2025-02-17 8/week @ 2025-02-24 6/week @ 2025-03-03 1/week @ 2025-03-10 115/week @ 2025-03-17 168/week @ 2025-03-24 159/week @ 2025-03-31 785/week @ 2025-04-07 309/week @ 2025-04-14 640/week @ 2025-04-21

1,900 downloads per month
Used in 6 crates

MIT/Apache

135KB
3.5K SLoC

I/O Core

⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠟⠛⠛⠛⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿                  ___ ___   ___
⣿⣿⣿⣿⣿⣿⡿⠟⣋⣡⣴⣶⣾⣿⡇⢸⣶⣄⠀⠀⠈⠙⠻⢿⣿⣿⣿⣿⣿⣿                 |_ _/ _ \ / __|___ _ _ ___
⣿⣿⣿⣿⡿⢋⣴⣾⣿⣿⣿⣿⣿⣿⡇⢸⣿⣿⣆⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿                  | | (_) | (__/ _ \ '_/ -_)
⣿⣿⣿⠏⣰⣿⣿⣿⣿⣿⣿⡿⠟⠛⠃⠘⢿⣿⣿⡀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿                 |___\___/ \___\___/_| \___|
⣿⣿⠏⣸⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠈⢿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿
⣿⡏⢠⣿⣿⣿⣿⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿
⣿⠁⢸⣿⣿⣿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿                       _/_/        _/_/_/          _/_/
⣿⠀⢈⣉⣉⣉⣉⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿        _/      _/  _/    _/            _/      _/    _/
⣿⡀⠀⠈⠛⠿⢿⣿⣷⣶⣤⣤⣤⣄⣀⣠⣤⣄⡉⠻⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿       _/      _/      _/          _/_/            _/
⣿⣇⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠛⠛⠛⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿        _/  _/      _/                _/        _/
⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿         _/      _/_/_/_/  _/  _/_/_/    _/  _/_/_/_/
⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿
⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣷⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣦⣤⣤⣤⣤⣴⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿

Continuous Integration

cargo add iocore

Dependencies

~3–12MB
~128K SLoC