aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
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 /Cargo.toml
parent4c1f3c84bdba53c514713fbaaf00431efd60d21c (diff)
InstructionTextBuffer is only present with alloc (new crate flag)
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml8
1 files changed, 7 insertions, 1 deletions
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 = []