diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..38b1f45 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "mailf0rm" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 49c55d6..7ef8daa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,10 @@ name = "mailf0rm" version = "0.1.0" edition = "2021" +[features] +default = [] +no-std = [] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/src/lib.rs b/src/lib.rs index 7d12d9a..dd36c02 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,13 @@ +#![cfg_attr(feature = "no-std"), no_std)] + +// example std && no_std setup +//#[cfg(feature = "no-std")] +//use core::alloc::Layout; +// +//#[cfg(not(feature = "no-std"))] +//use std::alloc::Layout; + +// Autogenerated Code pub fn add(left: usize, right: usize) -> usize { left + right }