hao

Crates.iohao
lib.rshao
version0.0.3
sourcesrc
created_at2022-09-15 04:00:02.688802
updated_at2023-05-17 05:38:31.88257
description.net binary reader
homepage
repositoryhttps://github.com/pigeonhands/hao
max_upload_size
id666288
size319,497
Sam (pigeonhands)

documentation

https://docs.rs/hao

README

hao

(verb) (-a) to catch in a net, fish (with a net).

Kua taha ngā rā i hao ai i te ika o te moana, o te wai māori. / The days have passed to net the fish of the ocean and fresh water.

github-badge crates-hao-badge docs License


A libarary for reading and (eventually) writing .net assembiles and modules in rust.

Example

this example will print out c# code of each type and its fields

use hao::{Module, Result};

fn main() -> Result<()>{
    let module = Metadata::from_path(r#"Example.Net.dll"#).unwrap();

    for ty in module.types().values() {
        println!("{} {{", ty);
        for field in ty.fields().values() {
            println!("\t{};", field);
        }
        println!("}}");
    }

    Ok(())
}

You can see more examples in the example directory of the repository.

Commit count: 26

cargo fmt