
11 changed files with 25 additions and 6 deletions
@ -0,0 +1,2 @@
|
||||
sourcepath=./examples/rust/ |
||||
extensionRe=.*\.rs$ |
@ -0,0 +1,8 @@
|
||||
port=10242 |
||||
compileTimeoutMs=1500 |
||||
compilers=/usr/local/bin/rustc |
||||
compileFilename=example.rs |
||||
compileToAsm=--emit asm --crate-type staticlib |
||||
#compiler-wrapper=./c-preload/compiler-wrapper |
||||
#max-asm-size=262144 |
||||
#cacheMb=100 |
@ -0,0 +1,7 @@
|
||||
pub fn maxArray(x: &mut[int, ..65536], y: &[int, ..65536]) { |
||||
for i in range(0u, 65536) { |
||||
if y[i] > x[i] { |
||||
x[i] = y[i]; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue