3 releases

0.1.0 Sep 15, 2022
0.0.3 May 17, 2023
0.0.2-prerelease May 7, 2023
0.0.1-prerelease May 4, 2023

#7 in #binary-reader

39 downloads per month

MIT license

315KB
8K SLoC

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.

Dependencies

~2.5MB
~56K SLoC