diff options
author | iximeow <me@iximeow.net> | 2025-06-27 05:02:32 +0000 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2025-10-19 23:29:05 +0000 |
commit | b9b6bb943663a0cd09d039383903d5725fbe034b (patch) | |
tree | 0022ceb857127718fd8b0d289a97ed45a67d5f5e /Cargo.toml | |
parent | 7c46d5cdc9fdfbc3663a3627d522a259683f594c (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.toml | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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"] |