Open IngoTB303 opened 1 month ago
Hi @IngoTB303,
Yes I know about this. It is inside one of the crate that netscanner
is using for scanning wifi networks and soon I will removed this crate and I will try to implement some better or at lease my own wifi scanning that will support win & mac (mac because airport is no longer supported in macOS).
So If I may ask to either wait after I finish one more feature and do a proper wifi scanning OR you may try install ubuntu or some other distro to install netscanner
.
Hi, @EphemeralSapient create a PR to fix this issue. I will take a look at it ASAP and it should fix this issue for a Windows OS.
PR with windows support is here: https://github.com/Chleba/netscanner/pull/39
error[E0728]:.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-wifiscanner-0.2.1\src\sys\windows.rs:11:10
|
6 | pub fn scan() -> Result<Vec> {
| ---------------------------------- this is not
await
is only allowed insideasync
functions and blocks --> C:\Users\async
... 11 | .await | ^^^^^ only allowed insideasync
functions and blocksstd::result::Result<Vec<Wifi>, Error>
is not a future --> C:\Users\std::result::Result<Vec<Wifi>, Error>
is not a futurestd::result::Result<Vec<Wifi>, Error>
.await
help: alternatively, consider making.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-wifiscanner-0.2.1\src\sys\windows.rs:6:4
|
6 | pub async fn scan() -> Result<Vec> {
| +++++
fn scan
asynchronous --> C:\Users\Compiling clap v4.5.1 Some errors have detailed explanations: E0277, E0728. For more information about an error, try
rustc --explain E0277
. Compiling pest_derive v2.7.8 error: could not compiletokio-wifiscanner
(lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish... error: failed to compilenetscanner v0.5.3
, intermediate artifacts can be found atC:\Users\<user>\AppData\Local\Temp\cargo-installiaOl9x
. To reuse those artifacts with a future compilation, set the environment variableCARGO_TARGET_DIR
to that path.