build: Bump io-uring from 0.5.13 to 0.6.0

Includes fixes for changed function prototypes.

bumps [io-uring](https://github.com/tokio-rs/io-uring) from 0.5.13 to 0.6.0.
- [Commits](https://github.com/tokio-rs/io-uring/commits)

---
updated-dependencies:
- dependency-name: io-uring
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
dependabot[bot] 2023-07-31 23:41:19 +00:00 committed by Rob Bradford
parent e5bb3903ad
commit fe97785a9f
3 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View File

@ -893,9 +893,9 @@ dependencies = [
[[package]]
name = "io-uring"
version = "0.5.13"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd1e1a01cfb924fd8c5c43b6827965db394f5a3a16c599ce03452266e1cf984c"
checksum = "8b7b36074613a723279637061b40db993208908a94f10ccb14436ce735bc0f57"
dependencies = [
"bitflags 1.3.2",
"libc",

View File

@ -11,7 +11,7 @@ io_uring = ["dep:io-uring"]
[dependencies]
byteorder = "1.4.3"
crc32c = "0.6.3"
io-uring = { version = "0.5.13", optional = true }
io-uring = { version = "0.6.0", optional = true }
libc = "0.2.139"
log = "0.4.17"
remain = "0.2.6"

View File

@ -86,7 +86,7 @@ impl AsyncIo for RawFileAsync {
let _ = unsafe {
sq.push(
&opcode::Readv::new(types::Fd(self.fd), iovecs.as_ptr(), iovecs.len() as u32)
.offset(offset)
.offset(offset.try_into().unwrap())
.build()
.flags(squeue::Flags::ASYNC)
.user_data(user_data),
@ -114,7 +114,7 @@ impl AsyncIo for RawFileAsync {
let _ = unsafe {
sq.push(
&opcode::Writev::new(types::Fd(self.fd), iovecs.as_ptr(), iovecs.len() as u32)
.offset(offset)
.offset(offset.try_into().unwrap())
.build()
.flags(squeue::Flags::ASYNC)
.user_data(user_data),