Skip to content

Commit

Permalink
Merge pull request #9 from os-module/master
Browse files Browse the repository at this point in the history
remove std dep
  • Loading branch information
Alignof committed Jun 29, 2024
2 parents b044a2e + d0737ea commit 82e4077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

mod opcode;

use std::fmt::{self, Display, Formatter};
use alloc::format;
use alloc::string::String;
use core::fmt::{self, Display, Formatter};

/// Instruction
#[derive(Debug)]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
//! // --output--
//! // addi t0, t0, -276
//! ```
#![cfg_attr(not(test), no_std)]
extern crate alloc;

pub mod decode;
pub mod instruction;
Expand Down

0 comments on commit 82e4077

Please sign in to comment.