Skip to content

pigeonhands/hao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Reads and writes .NET assemblies and modules in rust (WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages