aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-23 10:44:24 -0700
committeriximeow <me@iximeow.net>2024-06-23 10:44:24 -0700
commit931ad9b84e75faf734ddff19b692481013260f6e (patch)
tree381ef4deb26ed5e728f378e99f2ea11426be45d4 /src/long_mode/mod.rs
parent4c1f3c84bdba53c514713fbaaf00431efd60d21c (diff)
InstructionTextBuffer is only present with alloc (new crate flag)
Diffstat (limited to 'src/long_mode/mod.rs')
-rw-r--r--src/long_mode/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs
index d66f59a..2ccbc22 100644
--- a/src/long_mode/mod.rs
+++ b/src/long_mode/mod.rs
@@ -7,7 +7,9 @@ pub mod uarch;
pub use crate::MemoryAccessSize;
#[cfg(feature = "fmt")]
-pub use self::display::{DisplayStyle, InstructionDisplayer, InstructionTextBuffer};
+pub use self::display::{DisplayStyle, InstructionDisplayer};
+#[cfg(all(feature = "fmt", feature = "alloc"))]
+pub use self::display::InstructionTextBuffer;
use core::cmp::PartialEq;
use crate::safer_unchecked::unreachable_kinda_unchecked as unreachable_unchecked;