refactor: Remove std but add alloc

This commit is contained in:
Guilhem 2022-08-05 14:11:44 +02:00
parent ab29780e14
commit 86c5892f00
3 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,8 @@
use super::JawKind; use super::JawKind;
use crate::display::ToothDisplay; use crate::display::ToothDisplay;
use crate::{NotationKind, QuadrantKind, Tooth, ToothType}; use crate::{NotationKind, QuadrantKind, Tooth, ToothType};
use alloc::format;
use alloc::string::String;
use owo_colors::{OwoColorize, Style}; use owo_colors::{OwoColorize, Style};
pub struct ToothCliFormatter; pub struct ToothCliFormatter;

View File

@ -1,6 +1,7 @@
pub use crate::display::cli::*; pub use crate::display::cli::*;
use crate::NotationKind; use crate::NotationKind;
use crate::Tooth; use crate::Tooth;
use alloc::string::String;
mod cli; mod cli;
pub enum JawKind { pub enum JawKind {

View File

@ -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; pub mod display;
#[derive(Copy, Clone)] #[derive(Copy, Clone)]