diff options
Diffstat (limited to 'test/static')
-rw-r--r-- | test/static/TARGETS | 60 | ||||
-rw-r--r-- | test/static/bar.rs | 11 | ||||
-rw-r--r-- | test/static/baz.rs | 5 | ||||
-rw-r--r-- | test/static/build.rs | 7 | ||||
-rw-r--r-- | test/static/foo.rs | 6 | ||||
-rw-r--r-- | test/static/main.rs | 6 |
6 files changed, 95 insertions, 0 deletions
diff --git a/test/static/TARGETS b/test/static/TARGETS new file mode 100644 index 0000000..9337fc9 --- /dev/null +++ b/test/static/TARGETS @@ -0,0 +1,60 @@ +{ "baz-lib": + { "type": ["@", "rules", "rust", "library"] + , "name": ["baz"] + , "stage": ["baz"] + , "crate_root": ["baz.rs"] + , "deps": ["build_script"] + , "edition": ["2021"] + , "version": ["1", "2", "3", "rc-1"] + } +, "build_script": + { "type": ["@", "rules", "cargo", "build_script"] + , "name": ["build_script"] + , "crate_root": ["build.rs"] + , "edition": ["2018"] + , "stage": ["baz"] + } +, "bar-lib": + { "type": ["@", "rules", "rust", "library"] + , "name": ["bar"] + , "stage": ["bar"] + , "crate_root": ["bar.rs"] + , "edition": ["2021"] + , "deps": ["baz-lib"] + } +, "bar-missing-baz": + { "type": ["@", "rules", "rust", "library"] + , "name": ["bar"] + , "stage": ["bar"] + , "crate_root": ["bar.rs"] + , "edition": ["2021"] + } +, "foo-lib": + { "type": ["@", "rules", "rust", "library"] + , "name": ["foo"] + , "stage": ["foo"] + , "crate_root": ["foo.rs"] + , "edition": ["2021"] + , "deps": ["bar-lib"] + } +, "main": + { "type": ["@", "rules", "rust", "binary"] + , "name": ["main"] + , "stage": ["bin"] + , "crate_root": ["main.rs"] + , "deps": ["foo-lib"] + } +, "main-wrong-dep": + { "type": ["@", "rules", "rust", "binary"] + , "name": ["main"] + , "stage": ["bin"] + , "crate_root": ["main.rs"] + , "deps": ["bar-lib"] + } +, "main-missing-dep": + { "type": ["@", "rules", "rust", "binary"] + , "name": ["main"] + , "stage": ["bin"] + , "crate_root": ["main.rs"] + } +} diff --git a/test/static/bar.rs b/test/static/bar.rs new file mode 100644 index 0000000..6a0afce --- /dev/null +++ b/test/static/bar.rs @@ -0,0 +1,11 @@ + +extern crate baz; +pub fn hello(){ + baz::hello(); + println!("hello bar"); +} + +pub fn add(a: i32, b: i32) -> i32 { + a + b +} + diff --git a/test/static/baz.rs b/test/static/baz.rs new file mode 100644 index 0000000..4222589 --- /dev/null +++ b/test/static/baz.rs @@ -0,0 +1,5 @@ + +pub fn hello(){ + +println!("hello baz"); + }
\ No newline at end of file diff --git a/test/static/build.rs b/test/static/build.rs new file mode 100644 index 0000000..c2537fa --- /dev/null +++ b/test/static/build.rs @@ -0,0 +1,7 @@ + + +fn main() { + +println!("cargo:rustc-cfg=feature=\"config_transitionnnnnnnnnnnnnnnnnnnnnnnn\""); + +} diff --git a/test/static/foo.rs b/test/static/foo.rs new file mode 100644 index 0000000..c2dca08 --- /dev/null +++ b/test/static/foo.rs @@ -0,0 +1,6 @@ +extern crate bar; +pub fn hello(){ + +bar::hello(); + println!("hello foo"); + }
\ No newline at end of file diff --git a/test/static/main.rs b/test/static/main.rs new file mode 100644 index 0000000..6da0e2e --- /dev/null +++ b/test/static/main.rs @@ -0,0 +1,6 @@ +extern crate foo; + +fn main() { + +foo::hello(); +} |