13 unstable releases (4 breaking)

Uses old Rust 2015

0.5.1 Oct 5, 2019
0.5.0 Oct 5, 2019
0.4.0 Oct 1, 2019
0.3.6 Mar 29, 2017
0.1.0 Jul 29, 2016

#2 in #hotspots

Download history 2136/week @ 2024-10-13 2213/week @ 2024-10-20 1992/week @ 2024-10-27 1923/week @ 2024-11-03 1925/week @ 2024-11-10 1972/week @ 2024-11-17 1206/week @ 2024-11-24 1919/week @ 2024-12-01 2475/week @ 2024-12-08 2300/week @ 2024-12-15 1279/week @ 2024-12-22 1109/week @ 2024-12-29 1654/week @ 2025-01-05 1508/week @ 2025-01-12 1286/week @ 2025-01-19 1102/week @ 2025-01-26

5,586 downloads per month
Used in 4 crates

Apache-2.0

18KB
347 lines

wifiscanner

Build Status Crates docs.rs

A crate to list WiFi hotspots in your area.

As of v0.5.x now supports macOS, Linux and Windows. 🎉

Inspired by Maurice Svay's node-wifiscanner (https://github.com/mauricesvay/node-wifiscanner)

Tests shameless pilfered from Christian Kuster's node-wifi-scanner (https://github.com/ancasicolica/node-wifi-scanner)

Full documentation can be found here.

Usage

This crate is on crates.io and can be used by adding wifiscanner to the dependencies in your project's Cargo.toml.

[dependencies]
wifiscanner = "0.5.*"

and this to your crate root:

extern crate wifiscanner;

Example

use wifiscanner;
println!("{:?}", wifiscanner::scan());

Alternatively if you've cloned the Git repo, you can run the above example using: cargo run --example scan.

Changelog

  • 0.5.1 - crates.io metadata update
  • 0.5.0 - add window support (props to @brianjaustin)
  • 0.4.0 - replace iwlist with iw (props to @alopatindev)
  • 0.3.6 - crates.io metadata update
  • 0.3.5 - remove hardcoded path for iwlist (props to @alopatindev)
  • 0.3.4 - initial stable release

How to contribute

see CONTRIBUTING.md

Contributors

wifiscanner would not be possible without the following folks:

@alopatindev, @bizzu, @bash, @cristicbz, @lpmi-13, @brianjaustin

Copyright

Copyright 2019 Mark Sta Ana.

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> at your option. This file may not be copied, modified, or distributed except according to those terms.

Dependencies

~2.7–3.5MB
~64K SLoC