Skip to content
Snippets Groups Projects
Commit ea683d8a authored by Emma Anholt's avatar Emma Anholt
Browse files

DO NOT MERGE: add a hello-world under src/ to test the rust integration

parent 6009fdc7
No related branches found
No related tags found
No related merge requests found
// This is a comment, and is ignored by the compiler
// You can test this code by clicking the "Run" button over there ->
// or if you prefer to use your keyboard, you can use the "Ctrl + Enter" shortcut
// This code is editable, feel free to hack it!
// You can always return to the original code by clicking the "Reset" button ->
// This is the main function
fn main() {
// Statements here are executed when the compiled binary is called
// Print text to the console
println!("Hello World!");
}
...@@ -129,3 +129,8 @@ if with_glx != 'disabled' and not with_glvnd ...@@ -129,3 +129,8 @@ if with_glx != 'disabled' and not with_glvnd
variables : ['glx_tls=@0@'.format(use_elf_tls ? 'yes' : 'no')], variables : ['glx_tls=@0@'.format(use_elf_tls ? 'yes' : 'no')],
) )
endif endif
if add_languages('rust', required : false)
executable('helloworld',
'helloworld.rs')
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment