diff --git a/examples/hello/submissions/accepted/hello.rs b/examples/hello/submissions/accepted/hello.rs new file mode 100644 index 00000000..47ad8c63 --- /dev/null +++ b/examples/hello/submissions/accepted/hello.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello World!"); +} diff --git a/problemtools/config/languages.yaml b/problemtools/config/languages.yaml index 7a4b002d..de1a6411 100644 --- a/problemtools/config/languages.yaml +++ b/problemtools/config/languages.yaml @@ -245,8 +245,8 @@ rust: name: 'Rust' priority: 575 files: '*.rs' - compile: '/usr/bin/rustc -o{binary} -O --crate-type bin --edition=2018 {files}' - run: '{binary}' + compile: '/usr/bin/rustc -C opt-level=3 -C target-cpu=native --crate-type bin --edition 2021 {mainfile} -o {mainfile}.out' + run: '{mainfile}.out' scala: name: 'Scala'