From bd034b711bf726bd8ffc11af429305735fc538fb Mon Sep 17 00:00:00 2001 From: Able Date: Wed, 19 Jan 2022 13:01:42 -0600 Subject: [PATCH] :< --- .config/cargo.toml | 3 +++ Cargo.toml | 6 ++++++ src/lib.rs | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .config/cargo.toml 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,