Finite state machines in rust; bendns fork to add types.
-rw-r--r--.github/workflows/tests.yml4
-rw-r--r--Cargo.toml2
-rw-r--r--ensure_no_std/Cargo.toml8
-rw-r--r--ensure_no_std/src/main.rs18
4 files changed, 3 insertions, 29 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 869007c..2a34f15 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -32,8 +32,8 @@ jobs:
- name: Ensure the library compiles in a no_std env
uses: actions-rs/cargo@v1
with:
- command: rustc
- args: --manifest-path ensure_no_std/Cargo.toml -- -C link-arg=-nostartfiles
+ command: build
+ args: --no-default-features
- name: Run tests
uses: actions-rs/cargo@v1
diff --git a/Cargo.toml b/Cargo.toml
index 44ec2ad..667db86 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,4 +23,4 @@ rust-fsm-dsl = { path = "./rust_fsm_dsl", version = "0.4.0" }
panic = "abort"
[workspace]
-members = [".", "rust_fsm_dsl", "ensure_no_std"]
+members = [".", "rust_fsm_dsl"]
diff --git a/ensure_no_std/Cargo.toml b/ensure_no_std/Cargo.toml
deleted file mode 100644
index 6cdcfc7..0000000
--- a/ensure_no_std/Cargo.toml
+++ /dev/null
@@ -1,8 +0,0 @@
-[package]
-name = "ensure_no_std"
-version = "0.1.0"
-authors = ["Yevhenii Babichenko <[email protected]>"]
-edition = "2018"
-
-[dependencies]
-rust-fsm = { path = "..", default-features = false }
diff --git a/ensure_no_std/src/main.rs b/ensure_no_std/src/main.rs
deleted file mode 100644
index 6307aa2..0000000
--- a/ensure_no_std/src/main.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-#![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 {}
-}