- added support for args in Builder trait

- added is_lib arg for compiler to produce non-main assembly outputs
- updated templates to use include_str
This commit is contained in:
2026-02-23 22:06:07 +00:00
parent 71b36dc6b5
commit 4bee36eb7f
28 changed files with 889 additions and 525 deletions
+2 -1
View File
@@ -32,11 +32,12 @@ impl fmt::Display for BuildError {
pub trait Builder {
type Output: Clone + std::convert::AsRef<[u8]>;
type Args: Clone;
fn new(src_path: impl Into<PathBuf>) -> Self;
// starts compilation
fn start(&mut self);
fn start(&mut self, args: Self::Args);
// non-blocking function, returns output if completed
fn poll(&mut self) -> Option<Result<Self::Output, BuildError>>;