How to compile ? async-net
ds2k5 opened this issue · 3 comments
Is there an existing issue for this?
- I have searched the existing issues.
What's the problem?
Hi,
using Debain 12 x86_64
rustc 1.81
- git clone https://github.com/GyulyVGC/sniffnet
- cd sniffnet
- cargo check
Updating crates.io index
error: failed to select a version for the requirementasync-io = "^2.0.0"(locked to 2.3.4)
candidate versions found which didn't match: 2.3.3, 2.3.2, 2.3.1, ...
location searched: crates.io index
required by packageasync-net v2.0.0
... which satisfies dependencyasync-net = "^2.0.0"(locked to 2.0.0) of packageashpd v0.9.1
... which satisfies dependencyashpd = "^0.9"(locked to 0.9.1) of packagerfd v0.15.0
... which satisfies dependencyrfd = "^0.15.0"(locked to 0.15.0) of packagesniffnet v1.3.1 (/home/developer/rust/sniffnet)
How to fix this issue ?
If do cargo add async-net
Updating crates.io index
Adding async-net v2.0.0 to dependencies
Updating crates.io index
error: failed to select a version for the requirement async-io = "^2.0.0" (locked to 2.3.4)
candidate versions found which didn't match: 2.3.3, 2.3.2, 2.3.1, ...
location searched: crates.io index
required by package async-net v2.0.0
... which satisfies dependency async-net = "^2.0.0" (locked to 2.0.0) of package sniffnet v1.3.1 (/home/developer/rust/sniffnet)
cargo add async-io
Updating crates.io index
Adding async-io v2.3.3 to dependencies
Updating crates.io index
error: failed to select a version for the requirement async-io = "^2.3.3" (locked to 2.3.4)
candidate versions found which didn't match: 2.3.3, 2.3.2, 2.3.1, ...
location searched: crates.io index
required by package sniffnet v1.3.1 (/home/developer/rust/sniffnet)
How did you install the app?
built locally by cloning the repository
Operating System
Linux
Additional context
No response
Can you try doing cargo update followed by cargo build?
Thank you
- git clone https://github.com/GyulyVGC/sniffnet
- cd sniffnet
- cargo update
- apt-get install lib
- cargo build --release
- cp target/release/sniffnet .
- upx compress --brute sniffnet ( from 36MB to 12MB )
- ./sniffnet
it worked now !
thanks
Awesome!