The starting points have been created. Sweet!
This commit is contained in:
+12
@@ -3,4 +3,16 @@ name = "rnavp"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
|
||||
[features]
|
||||
default= ["host"]
|
||||
std = []
|
||||
embassy = ["core_full"]
|
||||
core = []
|
||||
core_full = ["core_communication", "core_logic"]
|
||||
core_communication = ["core"]
|
||||
core_logic = ["core"]
|
||||
host = ["std", "core_full"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
pub mod impls;
|
||||
pub mod structs;
|
||||
pub mod traits;
|
||||
@@ -0,0 +1,4 @@
|
||||
pub mod structs;
|
||||
pub mod kinematics;
|
||||
pub mod impls;
|
||||
pub mod traits;
|
||||
@@ -0,0 +1,2 @@
|
||||
pub mod communication;
|
||||
pub mod logic;
|
||||
@@ -0,0 +1,8 @@
|
||||
#[cfg(feature = "std")]
|
||||
compile_error!(
|
||||
"The 'std' feature is enabled, which is incompatible with 'embassy'. \n\
|
||||
The 'host' feature (enabled by default) turns on 'std'. \n\
|
||||
Please use '--no-default-features --features embassy' to build for MCU\n\
|
||||
or verify that you have not included a different feature that requires'std'"
|
||||
);
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
extern crate std;
|
||||
|
||||
|
||||
mod core;
|
||||
mod embassy;
|
||||
mod host;
|
||||
|
||||
Reference in New Issue
Block a user