From 86c5892f002336d06bdd8be7064c625be0d816b4 Mon Sep 17 00:00:00 2001 From: Guilhem Date: Fri, 5 Aug 2022 14:11:44 +0200 Subject: [PATCH] refactor: Remove std but add alloc --- src/display/cli.rs | 2 ++ src/display/mod.rs | 1 + src/lib.rs | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/src/display/cli.rs b/src/display/cli.rs index ffc8154..3c90567 100644 --- a/src/display/cli.rs +++ b/src/display/cli.rs @@ -1,6 +1,8 @@ use super::JawKind; use crate::display::ToothDisplay; use crate::{NotationKind, QuadrantKind, Tooth, ToothType}; +use alloc::format; +use alloc::string::String; use owo_colors::{OwoColorize, Style}; pub struct ToothCliFormatter; diff --git a/src/display/mod.rs b/src/display/mod.rs index 08590f5..b248f58 100644 --- a/src/display/mod.rs +++ b/src/display/mod.rs @@ -1,6 +1,7 @@ pub use crate::display::cli::*; use crate::NotationKind; use crate::Tooth; +use alloc::string::String; mod cli; pub enum JawKind { diff --git a/src/lib.rs b/src/lib.rs index d52b5b2..8901bb3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,9 @@ +#![no_std] +extern crate alloc; +use crate::alloc::borrow::ToOwned; +use alloc::format; +use alloc::string::{String, ToString}; + pub mod display; #[derive(Copy, Clone)]