refactor: Remove std but add alloc
This commit is contained in:
parent
ab29780e14
commit
86c5892f00
@ -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;
|
||||||
|
@ -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 {
|
||||||
|
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user