hao 0.0.19

Read, edit, create and write .net assemblies
Documentation
//! The metadata entries of a module: types, members, references and the
//! rest, each held in a shared [`Entry`] handle.
//!
//! Entries point at each other directly (a method's [`Method::declaring_type`],
//! a type's [`TypeDef::extends`], an IL operand's member), so walking a module
//! is following fields. [`Entry::get`] borrows an entry to read it and
//! [`Entry::get_mut`] to change it; changes are seen through every handle.
//!
//! ```no_run
//! use hao::prelude::*;
//!
//! let module = Module::from_path("Example.dll")?;
//! let ty = module.find_type("Example", "Player").expect("no such type");
//!
//! for field in &ty.get().fields {
//!     let field = field.get();
//!     println!("{} {:?}", field.name, field.signature.ty);
//! }
//! for method in &ty.get().methods {
//!     let parent = method.get().declaring_type.upgrade().unwrap();
//!     assert_eq!(parent, ty);
//!     if method.get().name == "TakeDamage" {
//!         // Edits go through the shared handle.
//!         method.get_mut().name = "TakeDamageOriginal".into();
//!     }
//! }
//! # Ok::<(), hao::error::HaoError>(())
//! ```
//!
//! [`well_known`] names common .NET types and methods without strings.

mod assembly;
mod attribute_value;
mod attributes;
mod constant;
mod handle;
mod refs;
mod type_def;
pub mod well_known;

pub use assembly::*;
pub use attribute_value::*;
pub use attributes::*;
pub use constant::*;
pub use handle::*;
pub use refs::*;
pub use type_def::*;
pub use well_known::{AssemblyName, TypeName, WellKnownMethod, WellKnownModule, WellKnownSigType};