diff --git a/packages/rust/1.68.2/compile b/packages/rust/1.68.2/compile index 0fe6d8f..c4b591a 100644 --- a/packages/rust/1.68.2/compile +++ b/packages/rust/1.68.2/compile @@ -1,6 +1,6 @@ -#!/usr/bin/env bash - -# https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std -# Rust compiler needs to find the stdlib to link against -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 "$@" +#!/usr/bin/env bash + +# https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std +# Rust compiler needs to find the stdlib to link against +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 "$@" chmod +x binary \ No newline at end of file diff --git a/packages/rust/1.68.2/environment b/packages/rust/1.68.2/environment index 9306950..77e21a4 100644 --- a/packages/rust/1.68.2/environment +++ b/packages/rust/1.68.2/environment @@ -1,5 +1,5 @@ -#!/usr/bin/env bash - -# Put 'export' statements here for environment variables -export PATH=$PWD/rust-1.68.2-x86_64-unknown-linux-gnu/rustc/bin/:$PATH +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/rust-1.68.2-x86_64-unknown-linux-gnu/rustc/bin/:$PATH export RUST_INSTALL_LOC=$PWD/rust-1.68.2-x86_64-unknown-linux-gnu \ No newline at end of file diff --git a/packages/rust/1.68.2/metadata.json b/packages/rust/1.68.2/metadata.json index 36507cc..e0cdb7c 100644 --- a/packages/rust/1.68.2/metadata.json +++ b/packages/rust/1.68.2/metadata.json @@ -1,7 +1,7 @@ -{ - "language": "rust", - "version": "1.68.2", - "aliases": [ - "rs" - ] +{ + "language": "rust", + "version": "1.68.2", + "aliases": [ + "rs" + ] } \ No newline at end of file diff --git a/packages/rust/1.68.2/run b/packages/rust/1.68.2/run index 19702cb..bb85070 100644 --- a/packages/rust/1.68.2/run +++ b/packages/rust/1.68.2/run @@ -1,4 +1,4 @@ -#!/usr/bin/env bash - -shift +#!/usr/bin/env bash + +shift ./binary "$@" \ No newline at end of file diff --git a/packages/rust/1.68.2/test.rs b/packages/rust/1.68.2/test.rs index 5b9bca6..f5524c7 100644 --- a/packages/rust/1.68.2/test.rs +++ b/packages/rust/1.68.2/test.rs @@ -1,3 +1,3 @@ -fn main() { - println!("OK"); +fn main() { + println!("OK"); } \ No newline at end of file