We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
README.md
1 parent f97c427 commit 609a79fCopy full SHA for 609a79f
README.md
@@ -27,6 +27,10 @@ Constance is a proof-of-concept of a static RTOS that utilizes Rust's compile-ti
27
## Example
28
29
```rust
30
+#![feature(const_loop)]
31
+#![feature(const_fn)]
32
+#![feature(const_if_match)]
33
+#![feature(const_mut_refs)]
34
use constance::kernel::Task;
35
36
// Use the simulator port
@@ -39,7 +43,7 @@ struct Objects {
39
43
const COTTAGE: Objects = constance::build!(System, configure_app);
40
44
41
45
constance::configure! {
42
- fn configure_app(_: &mut CfgBuilder<System>) -> Objects {
46
+ const fn configure_app(_: &mut CfgBuilder<System>) -> Objects {
47
Objects {
48
task: new! { Task<_>,
49
start = task_body, priority = 2, active = true },
0 commit comments