From b9b6bb943663a0cd09d039383903d5725fbe034b Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 27 Jun 2025 05:02:32 +0000 Subject: visitor-oriented fmt this makes a decode+format benchmark drop from 75s to 14s... (decode is 5s) --- Cargo.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') 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"] -- cgit v1.1