Initial commit

This commit is contained in:
Sebastian authored and Hakan Seven committed 2026-06-25 00:01:36 +03:00
1 parent 125b89d8da
commit dcfaed0182
26 files changed
+2080 -143

No files matched your search

+4 -18
View File
@@ -1,18 +1,4 @@
// AUTO-GENERATED by build.rs — do not edit by hand.
// To add a module: create src/modules/my_name/mod.rs + add `pub mod my_name;` to modules/mod.rs.
use crate::modules::CadModule;
/// Returns one boxed instance of every registered CAD module.
/// Called once at startup by `Ribbon::new()`.
pub fn all_modules() -> Vec<Box<dyn CadModule>> {
vec![
Box::new(super::draw::DrawModule),
Box::new(super::model::ModelModule),
Box::new(super::insert::InsertModule),
Box::new(super::annotate::AnnotateModule),
Box::new(super::view::ViewModule),
Box::new(super::manage::ManageModule),
Box::new(super::layout::LayoutModule),
]
}
// AUTO-GENERATED include — see build.rs for the actual generator.
// The generated registry is written to Cargo's OUT_DIR and included here so
// the source tree is not modified during build.
include!(concat!(env!("OUT_DIR"), "/modules_registry.rs"));