aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-06-27 05:02:32 +0000
committeriximeow <me@iximeow.net>2025-10-19 23:29:05 +0000
commitb9b6bb943663a0cd09d039383903d5725fbe034b (patch)
tree0022ceb857127718fd8b0d289a97ed45a67d5f5e /Cargo.toml
parent7c46d5cdc9fdfbc3663a3627d522a259683f594c (diff)
visitor-oriented fmt
this makes a decode+format benchmark drop from 75s to 14s... (decode is 5s)
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml10
1 files changed, 9 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 6e00eb3..f9c6c91 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,7 +21,15 @@ bitvec = { version = "1.0.1", default-features = false, features = [] }
"serde_derive" = { version = "1.0", optional = true }
[features]
-default = ["std", "use-serde"]
+default = ["std", "alloc", "fmt", "use-serde"]
+
+# fmt-related features that depend on the alloc crate
+alloc = []
+
+# formatting code (Display, Debug impls, etc) are optional on `fmt`.
+#
+# some `fmt` code also has `alloc` features (`InstructionDisplayBuffer`)
+fmt = []
# opt-in for std-related Error impl - necessary to `?`-unwrap `DecodeError`.
std = ["yaxpeax-arch/std"]