pdb-bindgen-codegen 0.1.0

Build-time discovery, PDB acquisition, and binding generation for pdb-bindgen.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod engine;
mod error;
mod model;

use crate::pdb::ir::{Database, TypeId};

pub(crate) use error::Error;
#[cfg(test)]
pub(crate) use error::ObjectKind;
#[cfg(test)]
pub(crate) use model::Padding;
pub(crate) use model::{FieldLayout, RecordLayout};

pub(crate) fn record(database: &Database, id: TypeId) -> Result<RecordLayout, Error> {
    engine::Engine::new(database).record(id)
}