hao 0.0.13

Read, edit, create and write .net assemblies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Loads an assembly and writes it back out with rebuilt metadata.

use hao::Module;

fn main() {
    let mut args = std::env::args().skip(1);
    let (input, output) = match (args.next(), args.next()) {
        (Some(i), Some(o)) => (i, o),
        _ => panic!("usage: rewrite <input> <output>"),
    };
    let module = Module::from_path_no_resolve(&input).unwrap();
    module.write_to_path(&output).unwrap();
    println!("wrote {}", output);
}