sendfile.rs
is a wrapper library aimed to provide zero-copy I/O on platforms supporting it.
This library uses the syscall
crate to make the system call, which uses inline assembly. Thus, nightly Rust is needed to utilize this library for now.
Currently only Linux is supported; pull requests are welcome, of course.
This library is tested on Linux x86_64 by the author.
Please see the examples/
directory for usage instructions.
sendfile.rs
is dual-licensed under either the Apache 2.0 license or the MIT license, which is the same licensing options of Rust.