Skip to content

Commit

Permalink
add some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Jul 16, 2022
1 parent 7bee4fe commit 5ebaea9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
Empty file added .gitignore
Empty file.
14 changes: 14 additions & 0 deletions test/hello_world/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
3 changes: 1 addition & 2 deletions test/hello_world/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ name = "hello_world"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rand = "0.8.5"
5 changes: 5 additions & 0 deletions test/hello_world/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
use rand::Rng;

fn main() {
let mut rng = rand::thread_rng();

println!("Hello, world!");
println!("A random number: {}", rng.gen::<u64>());
}

0 comments on commit 5ebaea9

Please sign in to comment.