File tree 6 files changed +34
-0
lines changed
6 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ curl -OL " https://static.rust-lang.org/dist/rust-1.63.0-x86_64-unknown-linux-gnu.tar.gz"
4
+ tar xzvf rust-1.63.0-x86_64-unknown-linux-gnu.tar.gz
5
+ rm rust-1.63.0-x86_64-unknown-linux-gnu.tar.gz
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std
4
+ # Rust compiler needs to find the stdlib to link against
5
+ rustc -o binary -L ${RUST_INSTALL_LOC} /rustc/lib -L ${RUST_INSTALL_LOC} /rust-std-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib " $@ "
6
+ chmod +x binary
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Put 'export' statements here for environment variables
4
+ export PATH=$PWD /rust-1.63.0-x86_64-unknown-linux-gnu/rustc/bin/:$PATH
5
+ export RUST_INSTALL_LOC=$PWD /rust-1.63.0-x86_64-unknown-linux-gnu
Original file line number Diff line number Diff line change
1
+ {
2
+ "language" : " rust" ,
3
+ "version" : " 1.63.0" ,
4
+ "aliases" : [
5
+ " rs"
6
+ ]
7
+ }
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ shift
4
+ ./binary " $@ "
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ println ! ( "OK" ) ;
3
+
4
+ // 1.63.0 features
5
+ use std:: sync:: Mutex ;
6
+ const _M: Mutex < ( ) > = Mutex :: new ( ( ) ) ;
7
+ }
You can’t perform that action at this time.
0 commit comments