gscan 0.1.3

High-performance network scanning library
Documentation

gscan

Crates.io License: MIT

gscan is a high-performance asynchronous network scanning library built with Rust.
It provides a simple and efficient way to scan port ranges and retrieve structured results.

The project is currently in early development, transitioning from synchronous scanning toward a high-speed asynchronous engine.


Installation

Add this to your Cargo.toml:

[dependencies]
gscan = "0.1.3"

Or write cargo add gscan in the terminal


Usage

The library exposes a simple scan function that returns a ScanResult struct containing:

  • The scanned IP address
  • A list of open ports using a vector(u16)

Example: Scanning a Local Range

use gscan;

fn main() {
    // Scanning 127.0.0.1 from port 1 to 1000
    let result = gscan::scan("127.0.0.1", 1, 1000);

    println!("Open ports on {}: {:?}", result.ip, result.ports);
}

📄 License

Distributed under the MIT License.