Skip to content

Commit dda6983

Browse files
jordanisaacssunfishcode
authored andcommitted
update Cargo.toml & rename to rustix-uring
1 parent 537f3ac commit dda6983

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "io-uring"
3-
version = "0.6.3"
4-
authors = ["quininer <quininer@live.com>"]
2+
name = "rustix-uring"
3+
version = "0.1.0"
4+
authors = ["Jordan Isaacs <mail@jdisaacs.com>"]
55
edition = "2021"
66
license = "MIT/Apache-2.0"
7-
repository = "https://github.com/tokio-rs/io-uring"
8-
homepage = "https://github.com/tokio-rs/io-uring"
9-
documentation = "https://docs.rs/io-uring"
7+
repository = "https://github.com/jordanisaacs/rustix-uring"
8+
homepage = "https://github.com/jordanisaacs/rustix-uring"
9+
documentation = "https://docs.rs/rustix-uring"
1010
description = "The low-level `io_uring` userspace interface for Rust"
1111
categories = [ "asynchronous", "network-programming", "filesystem" ]
1212
rust-version = "1.63"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ To use `io-uring` crate, first add this to your `Cargo.toml`:
2020

2121
```toml
2222
[dependencies]
23-
io-uring = "0.6"
23+
rustix-uring = "0.1"
2424
```
2525

2626
Next we can start using `io-uring` crate.
2727
The following is quick introduction using `Read` for file.
2828

2929
```rust
30-
use io_uring::{opcode, types, IoUring};
30+
use rustix_uring::{opcode, types, IoUring};
3131
use std::os::unix::io::AsRawFd;
3232
use std::{fs, io};
3333

examples/readme.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use io_uring::{opcode, types, IoUring};
1+
use rustix_uring::{opcode, types, IoUring};
22
use std::os::unix::io::AsRawFd;
33
use std::{fs, io};
44

examples/tcp_echo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::net::TcpListener;
33
use std::os::unix::io::{AsRawFd, RawFd};
44
use std::{io, ptr};
55

6-
use io_uring::{opcode, squeue, types, Errno, IoUring, SubmissionQueue};
6+
use rustix_uring::{opcode, squeue, types, Errno, IoUring, SubmissionQueue};
77
use slab::Slab;
88

99
#[derive(Clone, Debug)]

io-uring-bench/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "io-uring-bench"
33
version = "0.1.0"
4-
authors = ["quininer <quininer@live.com>"]
4+
authors = ["Jordan Isaacs <mail@jdisaacs.com>"]
55
edition = "2021"
66
publish = false
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dependencies]
11-
io-uring = { path = ".." }
11+
io-uring = { path = "..", package = "rustix-uring" }
1212
iou = "0.3"
1313
uring-sys = "0.7"
1414
criterion = "0.4"

io-uring-test/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "io-uring-test"
33
version = "0.1.0"
4-
authors = ["quininer <quininer@live.com>"]
4+
authors = ["Jordan Isaacs <mail@jdisaacs.com>"]
55
edition = "2021"
66
publish = false
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dependencies]
11-
io-uring = { path = ".." }
11+
io-uring = { path = "..", package = "rustix-uring" }
1212
libc = { version = "0.2", features = [ "extra_traits" ] }
1313
rustix = { version = "0.38.0", features = ["fs"] }
1414
anyhow = "1"

io-uring-test/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
5858
println!(
5959
"ring type: IoUring<{}, {}>",
6060
std::any::type_name::<S>()
61-
.strip_prefix("io_uring::")
61+
.strip_prefix("rustix_uring::")
6262
.unwrap(),
6363
std::any::type_name::<C>()
64-
.strip_prefix("io_uring::")
64+
.strip_prefix("rustix_uring::")
6565
.unwrap(),
6666
);
6767
println!("params: {:#?}", ring.params());

src/submit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ impl<'a> Submitter<'a> {
274274
// which CI runs) only has Linux 5.4.
275275
/// ```no_run
276276
/// # fn main() -> Result<(), Box<dyn std::error::Error>> {
277-
/// let io_uring = io_uring::IoUring::new(1)?;
278-
/// let mut probe = io_uring::Probe::new();
277+
/// let io_uring = rustix_uring::IoUring::new(1)?;
278+
/// let mut probe = rustix_uring::Probe::new();
279279
/// io_uring.submitter().register_probe(&mut probe)?;
280280
///
281-
/// if probe.is_supported(io_uring::opcode::Read::CODE) {
281+
/// if probe.is_supported(rustix_uring::opcode::Read::CODE) {
282282
/// println!("Reading is supported!");
283283
/// }
284284
/// # Ok(())

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl From<std::time::Duration> for Timespec {
212212
/// Note that arguments that exceed their lifetime will fail to compile.
213213
///
214214
/// ```compile_fail
215-
/// use io_uring::types::{ SubmitArgs, Timespec };
215+
/// use rustix_uring::types::{ SubmitArgs, Timespec };
216216
///
217217
/// let sigmask: libc::sigset_t = unsafe { std::mem::zeroed() };
218218
///
@@ -535,7 +535,7 @@ impl<'buf> RecvMsgOut<'buf> {
535535
/// ### Examples
536536
///
537537
/// ```
538-
/// use io_uring::types::{CancelBuilder, Fd, Fixed};
538+
/// use rustix_uring::types::{CancelBuilder, Fd, Fixed};
539539
///
540540
/// // Match all in-flight requests.
541541
/// CancelBuilder::any();

0 commit comments

Comments
 (0)