make arch an optional backend

This commit is contained in:
steven-omaha
2023-02-27 16:12:46 +01:00
parent 1cd6357560
commit 0affcff900
4 changed files with 13 additions and 3 deletions
@@ -1,2 +1,3 @@
#[cfg(feature = "arch")]
pub mod arch;
pub mod rust;
+1
View File
@@ -12,6 +12,7 @@ use pacdef_macros::Register;
#[derive(Debug, Register)]
pub enum Backends {
#[cfg(feature = "arch")]
Arch,
Rust,
}