Skip to content

Commit

Permalink
memory_addresses: Don't use x86_64 feature on aarch64 and vice-versa
Browse files Browse the repository at this point in the history
  • Loading branch information
jounathaen committed Nov 25, 2024
1 parent d5b6b92 commit 046b2d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ rftrace-frontend = { version = "0.1", optional = true }
shell-words = "1"
sysinfo = { version = "0.32.0", default-features = false, features = ["system"] }
vm-fdt = "0.3"
memory_addresses = { version = "0.2.2", features = ["conversions"] }

[target.'cfg(target_os = "linux")'.dependencies]
kvm-bindings = "0.10"
Expand All @@ -76,9 +75,16 @@ xhypervisor = "0.2"
[target.'cfg(target_arch = "x86_64")'.dependencies]
x86_64 = { version = "0.15", default-features = false }
raw-cpuid = "11"
memory_addresses = { version = "0.2.2", default-features = false, features = [
"conversions",
"x86_64",
] }

[target.'cfg(target_arch = "aarch64")'.dependencies]
bitflags = "2.6"
memory_addresses = { version = "0.2.2", default-features = false, features = [
"aarch64",
] }

[dev-dependencies]
assert_fs = "1"
Expand Down

0 comments on commit 046b2d7

Please sign in to comment.