Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

xen0n/sendfile.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PROJECT DISCONTINUED

IMPORTANT This project is long dead, the crates.io package sendfile no longer points at this repo, and is no longer controlled by me.

This library was written during my early Rust days, primarily for learning purposes, and was never put into production.

Fellow developer @Thomasdezeeuw has done a better work of wrapping the nice kernel feature type-safely, at Thomasdezeeuw/sendfile. You can transition to that API for sendfile functionality.

A Platform Sendfile Wrapper for Rust

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.

Supported platforms

Currently only Linux is supported; pull requests are welcome, of course.

This library is tested on Linux x86_64 by the author.

Usage

Please see the examples/ directory for usage instructions.

License

sendfile.rs is dual-licensed under either the Apache 2.0 license or the MIT license, which is the same licensing options of Rust.

About

A platform sendfile wrapper for Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages