3 releases
0.1.0 |
|
---|---|
0.0.3 | May 17, 2023 |
0.0.2-prerelease | May 7, 2023 |
0.0.1-prerelease | May 4, 2023 |
#1503 in Parser implementations
39 downloads per month
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.
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
~1.1–1.8MB
~36K SLoC