diff --git a/Cargo.toml b/Cargo.toml index 88ab2d3..739f7d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,11 +12,6 @@ bitflags = "*" spin = "*" redox_syscall = { path = "syscall/" } -[dependencies.goblin] -git = "https://github.com/m4b/goblin.git" -default-features = false -features = ["elf32", "elf64"] - [dev-dependencies] arch_test = { path = "arch/test" } @@ -26,6 +21,11 @@ arch_arm = { path = "arch/arm" } [target.'cfg(target_arch = "x86_64")'.dependencies] arch_x86_64 = { path = "arch/x86_64" } +[target.'cfg(not(test))'.dependencies.goblin] +git = "https://github.com/redox-os/goblin.git" +default-features = false +features = ["elf32", "elf64"] + [profile.dev] panic = "unwind"