first commit
This commit is contained in:
parent
d52c6440ff
commit
d2fdac7f1e
274 changed files with 89330 additions and 0 deletions
17
src/modules/registry.rs
Normal file
17
src/modules/registry.rs
Normal 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),
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue