File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ [workspace ]
2+ members = [" world" ]
Original file line number Diff line number Diff line change 1+ [package ]
2+ name = " world"
3+ version = " 0.1.0"
4+ authors = [" Skgland <bb-github@t-online.de>" ]
5+ edition = " 2018"
6+
7+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+ [dependencies ]
Original file line number Diff line number Diff line change 1+ fn main ( ) {
2+ println ! ( "Hello, world!" ) ;
3+ }
Original file line number Diff line number Diff line change @@ -97,6 +97,21 @@ fn test_cargo_config() {
9797 } ) ;
9898}
9999
100+ #[ test]
101+ fn workspace ( ) {
102+ runner:: run ( "workspace" , |run| {
103+ run. build ( SandboxBuilder :: new ( ) . enable_networking ( false ) , |build| {
104+ let storage = rustwide:: logging:: LogStorage :: new ( LevelFilter :: Info ) ;
105+ rustwide:: logging:: capture ( & storage, || -> Result < _ , Error > {
106+ build. cargo ( ) . args ( & [ "run" ] ) . run ( ) ?;
107+ Ok ( ( ) )
108+ } ) ?;
109+ Ok ( ( ) )
110+ } ) ?;
111+ Ok ( ( ) )
112+ } ) ;
113+ }
114+
100115test_prepare_error ! (
101116 test_missing_cargotoml,
102117 "missing-cargotoml" ,
You can’t perform that action at this time.
0 commit comments