|
@@ -5,8 +5,8 @@ name = "compiler_builtins"
|
|
|
version = "0.1.0"
|
|
|
|
|
|
[build-dependencies]
|
|
|
-cast = "0.2.0"
|
|
|
-rand = "0.3.15"
|
|
|
+cast = { version = "0.2.0", optional = true }
|
|
|
+rand = { version = "0.3.15", optional = true }
|
|
|
|
|
|
[build-dependencies.gcc]
|
|
|
optional = true
|
|
@@ -18,21 +18,14 @@ compiler-builtins = []
|
|
|
default = ["compiler-builtins"]
|
|
|
mem = []
|
|
|
rustbuild = ["compiler-builtins"]
|
|
|
+# generate tests
|
|
|
+gen-tests = ["cast", "rand"]
|
|
|
|
|
|
-[target]
|
|
|
+[target.'cfg(all(target_arch = "arm", not(any(target_env = "gnu", target_env = "musl")), target_os = "linux"))'.dev-dependencies]
|
|
|
+test = { git = "https://github.com/japaric/utest" }
|
|
|
+utest-cortex-m-qemu = { default-features = false, git = "https://github.com/japaric/utest" }
|
|
|
+utest-macros = { git = "https://github.com/japaric/utest" }
|
|
|
|
|
|
-[target."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))"]
|
|
|
|
|
|
-[target."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))".dev-dependencies]
|
|
|
-
|
|
|
-[target."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))".dev-dependencies.test]
|
|
|
-git = "https://github.com/japaric/utest"
|
|
|
-
|
|
|
-[target."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))".dev-dependencies.utest-cortex-m-qemu]
|
|
|
-default-features = false
|
|
|
-git = "https://github.com/japaric/utest"
|
|
|
-
|
|
|
-[target."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))".dev-dependencies.utest-macros]
|
|
|
-git = "https://github.com/japaric/utest"
|
|
|
|
|
|
[workspace]
|