File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ //! Tests for multiple build scripts feature.
2
+
3
+ use cargo_test_support:: prelude:: * ;
4
+ use cargo_test_support:: project;
5
+ use cargo_test_support:: str;
6
+
7
+ #[ cargo_test]
8
+ fn build_without_nightly_aborts_with_error ( ) {
9
+ let p = project ( )
10
+ . file (
11
+ "Cargo.toml" ,
12
+ r#"
13
+ [package]
14
+ name = "foo"
15
+ version = "0.1.0"
16
+ edition = "2024"
17
+ build = ["build1.rs"]
18
+ "# ,
19
+ )
20
+ . build ( ) ;
21
+ p. cargo ( "check" )
22
+ . with_status ( 101 )
23
+ . with_stderr_data ( str![ [ r#"
24
+ [ERROR] failed to parse manifest at `[ROOT]/foo/Cargo.toml`
25
+
26
+ Caused by:
27
+ `build = […]` requires `-Z multiple-build-scripts`
28
+
29
+ "# ] ] )
30
+ . run ( ) ;
31
+ }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ mod build_plan;
16
16
mod build_script;
17
17
mod build_script_env;
18
18
mod build_script_extra_link_arg;
19
+ mod build_scripts_multiple;
19
20
mod cache_lock;
20
21
mod cache_messages;
21
22
mod cargo;
You can’t perform that action at this time.
0 commit comments