diff --git a/Cargo.toml b/Cargo.toml index c0e84b7..9f1b79f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,4 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +stuff = "0.1.4" diff --git a/src/lib.rs b/src/lib.rs index 1b4a90c..02702c8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,14 @@ -#[cfg(test)] -mod tests { - #[test] - fn it_works() { - let result = 2 + 2; - assert_eq!(result, 4); - } -} +#![no_std] +#![warn(rust_2018_idioms)] +#![deny(unsafe_op_in_unsafe_fn)] + +mod strategy; + +pub use stuff::Backend; + +use crate::strategy::{SafeStrategyAdaptor, SafeStuffingStrategy}; + +pub struct StuffedPtr(stuff::StuffedPtr, B>) +where + S: SafeStuffingStrategy, + B: Backend;