pub fn load(
dir: &Path,
include: &Path,
extra: &[PathBuf],
rawast: &RawAst,
) -> Result<ForeignModules>Expand description
Load every import of rawast’s programs, one libclang for all its C
files, then record each program’s files (ForeignModules::bind). A C
file is read with the include path the image build compiles it with: the
project directory dir, then include, then extra.
§Errors
A missing or unreadable file, or one its reader rejects, reported at the
import that names it.