Skip to content

Commit ec91f35

Browse files
committed
miscellaneous cleanup
1 parent 856e06b commit ec91f35

3 files changed

Lines changed: 15 additions & 18 deletions

File tree

Cargo.toml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ readme = "liburing-rs/README.md"
1010
keywords = ["io_uring", "io-uring", "liburing", "linux-io", "async-io"]
1111
categories = ["asynchronous", "network-programming", "filesystem", "api-bindings"]
1212
documentation = "https://man.archlinux.org/listing/extra/liburing/"
13-
1413
include = [
1514
"/src/arch",
1615
"/src/*.c",
@@ -38,26 +37,26 @@ include = [
3837
name = "liburing_rs"
3938
path = "liburing-rs/src/lib.rs"
4039

41-
[[test]]
42-
name = "liburing-rs-tests"
43-
path = "liburing-rs/tests/main.rs"
40+
[build-dependencies]
41+
bindgen = "0.71.1"
42+
43+
[dev-dependencies]
44+
io-uring = "0.7.4"
45+
criterion = "0.5.1"
46+
rand = "0.9.0"
47+
nix = { version = "0.29.0", features = ["net"] }
4448

4549
[features]
4650
sanitizers = []
4751
bindgen-cli = []
4852

49-
[target.'cfg(unix)'.build-dependencies]
50-
bindgen = "0.71.1"
51-
5253
[profile.release-with-debug]
5354
inherits = "release"
5455
debug = "full"
5556

56-
[dev-dependencies]
57-
io-uring = "0.7.4"
58-
criterion = "0.5.1"
59-
rand = "0.9.0"
60-
nix = { version = "0.29.0", features = ["net"] }
57+
[[test]]
58+
name = "liburing-rs-tests"
59+
path = "liburing-rs/tests/main.rs"
6160

6261
[[bench]]
6362
name = "nop"

liburing-rs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# axboe-liburing
1+
# liburing-rs
22

33
Rust bindings for io_uring via a transliteration of Jens Axboe's liburing.
44

test/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#![allow(clippy::missing_safety_doc, unsafe_op_in_unsafe_fn)]
22

3-
extern crate liburing_rs;
4-
5-
pub use liburing_rs::{
3+
use liburing_rs::{
64
__kernel_timespec, AT_FDCWD, cmsghdr, epoll_event, futex_waitv, id_t, idtype_t, io_uring,
7-
io_uring_buf_ring, io_uring_cqe, io_uring_cqe_iter, io_uring_probe, io_uring_recvmsg_out,
8-
io_uring_sqe, iovec, mode_t, msghdr, off_t, open_how, siginfo_t, sockaddr, socklen_t, statx,
5+
io_uring_buf_ring, io_uring_cqe, io_uring_probe, io_uring_recvmsg_out, io_uring_sqe, iovec,
6+
mode_t, msghdr, off_t, open_how, siginfo_t, sockaddr, socklen_t, statx,
97
};
108

119
use std::os::raw::{c_char, c_int, c_longlong, c_uint, c_ushort, c_void};

0 commit comments

Comments
 (0)