feat: add rust-script
This commit is contained in:
1
external/rust-script/tests/data/slow-build/.gitignore
vendored
Normal file
1
external/rust-script/tests/data/slow-build/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/Cargo.lock
|
||||
10
external/rust-script/tests/data/slow-build/Cargo.toml
vendored
Normal file
10
external/rust-script/tests/data/slow-build/Cargo.toml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "slow-build"
|
||||
version = "0.1.0"
|
||||
authors = ["Daniel Keep <daniel.keep@gmail.com>"]
|
||||
|
||||
build = "slow-build-build.rs"
|
||||
|
||||
[lib]
|
||||
name = "slow_build"
|
||||
path = "slow-build-lib.rs"
|
||||
5
external/rust-script/tests/data/slow-build/slow-build-build.rs
vendored
Normal file
5
external/rust-script/tests/data/slow-build/slow-build-build.rs
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
println!("Sleeping for 2 seconds...");
|
||||
std::thread::sleep(std::time::Duration::from_millis(2000));
|
||||
println!("Done.");
|
||||
}
|
||||
0
external/rust-script/tests/data/slow-build/slow-build-lib.rs
vendored
Normal file
0
external/rust-script/tests/data/slow-build/slow-build-lib.rs
vendored
Normal file
Reference in New Issue
Block a user