From 2a7d0f4dd1b7ec13fa402cf7c18dc9f62e8c4b55 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 13 Apr 2025 19:09:05 -0700 Subject: seeming good --- Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 8298389..7c1ab3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,3 +12,15 @@ edition = "2021" [dependencies] yaxpeax-arch = { version = "0.3.1", default-features = false, features = [] } "num-traits" = { version = "0.2", default-features = false } + +[features] +default = ["std", "fmt"] + +# yaxpeax-arch (and this crate) can drop some featuers and be no-std +std = ["alloc", "yaxpeax-arch/std"] + +# some yaxpeax-arch features require only alloc, not std +alloc = ["yaxpeax-arch/alloc"] + +# regardless of no-std, fmt impls are not necessarily required, and so are optional here +fmt = [] -- cgit v1.1