Skip to content

Commit 3541155

Browse files
authored
release 0.7.5 (#323)
1 parent ec2c22e commit 3541155

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "io-uring"
3-
version = "0.7.4"
3+
version = "0.7.5"
44
authors = ["quininer <[email protected]>"]
55
edition = "2021"
66
license = "MIT OR Apache-2.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To use `io-uring` crate, first add this to your `Cargo.toml`:
1313

1414
```toml
1515
[dependencies]
16-
io-uring = "0.6"
16+
io-uring = "0.7"
1717
```
1818

1919
Next we can start using `io-uring` crate.

io-uring-test/src/tests/net.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,7 @@ pub fn test_tcp_recv_multi_bundle<S: squeue::EntryMarker, C: cqueue::EntryMarker
13471347

13481348
let mut cqe: cqueue::Entry = ring.completion().next().expect("cqueue is empty").into();
13491349

1350+
assert!(cqe.result() >= 0);
13501351
assert_eq!(cqe.user_data(), 0x31);
13511352
assert!(cqueue::buffer_select(cqe.flags()).is_some());
13521353
let mut remaining = cqe.result() as usize;
@@ -1375,6 +1376,7 @@ pub fn test_tcp_recv_multi_bundle<S: squeue::EntryMarker, C: cqueue::EntryMarker
13751376

13761377
cqe = ring.completion().next().expect("cqueue is empty").into();
13771378

1379+
assert!(cqe.result() >= 0);
13781380
assert_eq!(cqe.user_data(), 0x31);
13791381
assert!(cqueue::buffer_select(cqe.flags()).is_some());
13801382
remaining = cqe.result() as usize;
@@ -1397,9 +1399,7 @@ pub fn test_tcp_recv_multi_bundle<S: squeue::EntryMarker, C: cqueue::EntryMarker
13971399
cqe = ring.completion().next().expect("cqueue is empty").into();
13981400
assert_eq!(cqe.user_data(), 0x31);
13991401
assert!(!cqueue::more(cqe.flags()));
1400-
if used_bufs < 5 {
1401-
assert_eq!(cqe.result(), 0); // Buffer space is avaialble
1402-
} else {
1402+
if used_bufs >= 5 || cqe.result() != 0 {
14031403
assert_eq!(cqe.result(), -105); // No buffer space available
14041404
}
14051405
}

0 commit comments

Comments
 (0)