| Crates.io | io-redirect |
| lib.rs | io-redirect |
| version | 0.0.2 |
| created_at | 2025-09-02 02:16:15.126375+00 |
| updated_at | 2025-09-05 03:04:57.978403+00 |
| description | Cross-platform I/O redirection |
| homepage | |
| repository | https://github.com/mehmetakbulut/io-redirect |
| max_upload_size | |
| id | 1820427 |
| size | 30,647 |
A Rust library for redirecting file descriptors and handles such as stdout and stderr.
use io_redirect::Redirectable;
use std::io::stdout;
use std::fs::File;
fn main() {
let destination = OpenOptions::new()
.write(true)
.append(true)
.open("/dev/kmsg")
.unwrap();
stdout().redirect(destination).unwrap();
}
This project is maintained by Mehmet Akbulut. Everyone is welcome to contribute.
Feel free to open an issue or a pull request. Please do not submit any PRs with proprietary content.
See LICENSE.md.