Finite state machines in rust; bendns fork to add types.
Diffstat (limited to 'ensure_no_std/src/main.rs')
-rw-r--r--ensure_no_std/src/main.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/ensure_no_std/src/main.rs b/ensure_no_std/src/main.rs
new file mode 100644
index 0000000..6307aa2
--- /dev/null
+++ b/ensure_no_std/src/main.rs
@@ -0,0 +1,18 @@
+#![no_std]
+#![no_main]
+
+use core::panic::PanicInfo;
+
+#[allow(unused_imports)]
+use rust_fsm;
+
+/// This function is called on panic.
+#[panic_handler]
+fn panic(_info: &PanicInfo) -> ! {
+ loop {}
+}
+
+#[no_mangle]
+pub extern "C" fn _start() -> ! {
+ loop {}
+}