diff --git a/.config/cargo.toml b/.config/cargo.toml new file mode 100644 index 0000000..144743f --- /dev/null +++ b/.config/cargo.toml @@ -0,0 +1,3 @@ +[unstable] +build-std = ["core", "compiler_builtins", "alloc"] +build-std-features = ["compiler-builtins-mem"] \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index ded4337..fa0c028 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,9 @@ git = "https://github.com/bincode-org/bincode.git" default-features = false features = ["serde_no_std"] + +[dependencies.serde] +version = "*" +default-features = false +features = ["derive", "alloc"] + diff --git a/src/lib.rs b/src/lib.rs index 6eea441..3bcfa04 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,8 @@ -#[no_std] +#![no_std] +use alloc::vec::Vec; use bincode::{Decode, Encode}; #[derive(Encode, Decode, PartialEq, Debug)] - pub struct WindowOption { // funct: WindowFunction, symbol: char,