first commit

This commit is contained in:
Hakan Seven 2026-03-22 14:56:27 +03:00
commit d2fdac7f1e
274 changed files with 89330 additions and 0 deletions

17
src/modules/registry.rs Normal file
View file

@ -0,0 +1,17 @@
// 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::home::HomeModule),
Box::new(super::annotate::AnnotateModule),
Box::new(super::insert::InsertModule),
Box::new(super::view::ViewModule),
Box::new(super::manage::ManageModule),
Box::new(super::layout::LayoutModule),
]
}