Docs.rs
fcoreutils-0.0.50
fcoreutils 0.0.50
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
aibrushcomputer
Dependencies
anyhow ^1
normal
base64-simd ^0.8
normal
blake2b_simd ^1
normal
clap ^4
normal
digest ^0.10
normal
libc ^0.2
normal
md-5 ^0.10
normal
memchr ^2
normal
memmap2 ^0.9
normal
mimalloc ^0.1
normal
rayon ^1
normal
regex ^1
normal
sha2 ^0.10
normal
thiserror ^2
normal
criterion ^0.8
dev
proptest ^1
dev
tempfile ^3
dev
md-5 ^0.10
normal
sha2 ^0.10
normal
ring ^0.17
normal
openssl ^0.10
normal
Versions
53.57%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module io
coreutils_
rs
0.0.50
Module io
Module Items
Enums
Functions
In coreutils_
rs::
common
coreutils_rs
::
common
Module
io
Copy item path
Source
Enums
§
File
Data
Holds file data — either zero-copy mmap or an owned Vec. Dereferences to
&[u8]
for transparent use.
Functions
§
file_
size
Get file size without reading it (for byte-count-only optimization).
read_
file
Read a file with zero-copy mmap for large files or read() for small files. Opens once with O_NOATIME, uses fstat for metadata to save a syscall.
read_
stdin
Read all bytes from stdin into a Vec. Pre-allocates 16MB to avoid the repeated reallocation overhead of Vec’s default growth strategy (which doubles from 0 -> 8K -> 16K -> …), causing multiple memcpy of already-read data for large piped inputs.