From 931ad9b84e75faf734ddff19b692481013260f6e Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 23 Jun 2024 10:44:24 -0700 Subject: InstructionTextBuffer is only present with alloc (new crate flag) --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 34f8af7..ecc56be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,13 @@ lto = true default = ["std", "colors", "use-serde", "fmt"] # opt-in for some apis that are really much nicer with String -std = ["yaxpeax-arch/std"] +std = ["alloc", "yaxpeax-arch/std"] + +# opt-in for some formatting-related helpers that require performing allocation +# +# this should only be useful with `fmt` currently, but in the future there could +# be other `fmt`-independent code gated on `alloc`. +alloc = ["yaxpeax-arch/alloc"] # feature for formatting instructions and their components fmt = [] -- cgit v1.1