dma-rs

Crates.iodma-rs
lib.rsdma-rs
version1.0.0
created_at2025-12-15 11:50:56.131434+00
updated_at2025-12-15 15:58:51.555828+00
descriptionA Rust library for hardware DMA interaction on Windows
homepage
repositoryhttps://github.com/vasie1337/dma-rs
max_upload_size
id1985889
size3,071,881
vasie (vasie1337)

documentation

README

dma-rs

A Rust library for DMA access on Windows.

Features

  • Process Management: List, attach, and retrieve process information
  • Memory Operations: Read and write process memory with type-safe APIs
  • Scatter Operations: High-performance batch memory operations
  • Module Enumeration: List loaded modules and resolve function addresses
  • Embedded DLLs: All dependencies are embedded at compile-time
  • Clean API: Type-safe, ergonomic Rust interface

Quick Start

use dma_rs::Dma;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let dma = Dma::new("fpga://algo=0")?;

    let process = dma.attach("explorer.exe")?;
    let modules = process.list_modules()?;

    if let Some(module) = modules.first() {
        let value: u64 = process.read(module.base)?;
        println!("Read: 0x{:X}", value);
    }

    Ok(())
}

License

MIT

Commit count: 0

cargo fmt