Hi to all,
i have changed my rust program to use tokio-uring and the new method of async write in a file, in linux but now i have a little problem
i get a image from reqwest and i can obtain a stream of bytes, but the tokio uring file need a buffer of bytes to do the writing of this bytes in a async way
My problem is that i see in the github seems and optional feature two get bytes and the trait of IObuf to do this but i can't activate this feature in my cargo.toml
Error in the terminal:
error: failed to select a version for tokio-uring
.
... required by package scrape_mangatown_reqwest v4.0.0 (/mnt/Cyberdojo/Programacion/Rust/scrape_mangatown_reqwest_json_uring)
versions that meet the requirements =0.1.0
are: 0.1.0
the package scrape_mangatown_reqwest
depends on tokio-uring
, with features: bytes
but tokio-uring
does not have these features.
failed to select a version for tokio-uring
which could resolve this conflict
My cargo.toml
name = "scrape_mangatown_reqwest"
version = "4.0.0"
authors = ["Guillermo Cabezas <kapoira@gmail.com>"]
edition = "2018"
[dependencies]
tokio = { version = "1.0.0", features = ["full"] }
tokio-uring = { version ="0.1.0", features = ["bytes"]}
tokio-util = "0.3.0"
futures = "0.3"
select = "0.5.0"
reqwest = { version = "0.11.0", features = ["rustls-tls","stream"]}
ansi_term = "0.12.1"
url = "2.1.0"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
bytes = { version = "1", features = ["serde"] }
Can anybody tell me how i can tell rust that te tokio-uring have to be compilled with the bytes to IOBUF
Thanks in advance