Commit d17ef27a authored by Hero Bird's avatar Hero Bird
Browse files

[pdsl_core] Add no_std boilerplate to enzyme

Also replace std::sync::Mutex with spin::Mutex from crates.io for no_std compatibility.
We still should search for a better alternative.
parent 5dd92ab8
#![feature(alloc_error_handler)]
#![feature(core_intrinsics)]
#![feature(alloc)]
#![no_std]
#[cfg(all(test, feature = "test-env"))]
mod tests;
#[cfg_attr(test, macro_use)]
extern crate alloc;
use alloc::string::String;
use alloc::vec::Vec;
pub mod utils;
use pdsl_core::storage;
use parity_codec_derive::{Encode, Decode};
// Use `wee_alloc` as the global allocator.
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
/// A tweet done by a registered user.
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Encode, Decode)]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment