feat: COSMIC Component System Prototype
This commit is contained in:
parent
08e70faffd
commit
52df3570ec
9 changed files with 597 additions and 0 deletions
15
crates/component-system/examples/basic/main.rs
Normal file
15
crates/component-system/examples/basic/main.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2022 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
extern crate cosmic_component_system as ccs;
|
||||
|
||||
mod components;
|
||||
|
||||
use self::components::App;
|
||||
use ccs::Component;
|
||||
|
||||
fn main() {
|
||||
ccs::run(|app| {
|
||||
App::default().register(app);
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue