Skip to content

Commit 4b7196d

Browse files
committed
autocxx-build: Re-export result types used in API
Without these, users' build scripts have no way to refer to the result type by name, meaning they can't rewrap or inspect the error. I'm guessing most users use miette like the documentation suggests, which avoids the issue, but we should still support other use cases.
1 parent 0889034 commit 4b7196d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gen/build/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ use autocxx_engine::{BuilderContext, RebuildDependencyRecorder};
1212
use indexmap::set::IndexSet as HashSet;
1313
use std::{io::Write, sync::Mutex};
1414

15+
pub use autocxx_engine::{BuilderError, BuilderSuccess};
16+
1517
pub type Builder = autocxx_engine::Builder<'static, CargoBuilderContext>;
1618

1719
#[doc(hidden)]

0 commit comments

Comments
 (0)