@@ -5,8 +5,8 @@ name = "compiler_builtins"
5
5
version = " 0.1.0"
6
6
7
7
[build-dependencies ]
8
- cast = " 0.2.0"
9
- rand = " 0.3.15"
8
+ cast = { version = " 0.2.0" , optional = true }
9
+ rand = { version = " 0.3.15" , optional = true }
10
10
11
11
[build-dependencies .gcc ]
12
12
optional = true
@@ -18,21 +18,14 @@ compiler-builtins = []
18
18
default = [" compiler-builtins" ]
19
19
mem = []
20
20
rustbuild = [" compiler-builtins" ]
21
+ # generate tests
22
+ gen-tests = [" cast" , " rand" ]
21
23
22
- [target ]
24
+ [target .'cfg(all(target_arch = "arm", not(any(target_env = "gnu", target_env = "musl")), target_os = "linux"))' .dev-dependencies ]
25
+ test = { git = " https://github.com/japaric/utest" }
26
+ utest-cortex-m-qemu = { default-features = false , git = " https://github.com/japaric/utest" }
27
+ utest-macros = { git = " https://github.com/japaric/utest" }
23
28
24
- [target ."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))" ]
25
29
26
- [target ."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))" .dev-dependencies ]
27
-
28
- [target ."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))" .dev-dependencies .test ]
29
- git = " https://github.com/japaric/utest"
30
-
31
- [target ."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))" .dev-dependencies .utest-cortex-m-qemu ]
32
- default-features = false
33
- git = " https://github.com/japaric/utest"
34
-
35
- [target ."cfg(all(target_arch = \"arm\", not(any(target_env = \"gnu\", target_env = \"musl\")), target_os = \"linux\"))" .dev-dependencies .utest-macros ]
36
- git = " https://github.com/japaric/utest"
37
30
38
31
[workspace ]
0 commit comments