mirror of
https://github.com/servo/servo.git
synced 2025-07-04 05:53:39 +01:00
Build some Rust code
This commit is contained in:
parent
b19d28b997
commit
d537bac018
8 changed files with 33 additions and 2 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
target
|
|
@ -1 +0,0 @@
|
|||
print("hello from a child task!")
|
6
child-task.sh
Executable file
6
child-task.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
|
||||
|
||||
cd something-rust
|
||||
rustup run --install cargo run
|
|
@ -30,7 +30,7 @@ payload = {
|
|||
git clone %(DECISION_TASK_CLONE_URL)s repo &&
|
||||
cd repo &&
|
||||
git checkout %(DECISION_TASK_COMMIT_SHA)s &&
|
||||
python2.7 child-task.py
|
||||
./child-task.sh
|
||||
""" % os.environ,
|
||||
],
|
||||
},
|
||||
|
|
14
something-rust/Cargo.lock
generated
Normal file
14
something-rust/Cargo.lock
generated
Normal file
|
@ -0,0 +1,14 @@
|
|||
[[package]]
|
||||
name = "matches"
|
||||
version = "0.1.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "something-rust"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[metadata]
|
||||
"checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
|
7
something-rust/Cargo.toml
Normal file
7
something-rust/Cargo.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
[package]
|
||||
name = "something-rust"
|
||||
version = "0.1.0"
|
||||
authors = ["Simon Sapin"]
|
||||
|
||||
[dependencies]
|
||||
matches = "0.1"
|
1
something-rust/rust-toolchain
Normal file
1
something-rust/rust-toolchain
Normal file
|
@ -0,0 +1 @@
|
|||
1.28.0
|
3
something-rust/src/main.rs
Normal file
3
something-rust/src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue