1
0

feat: initial commit

This commit is contained in:
Rokas Puzonas 2022-06-02 13:44:01 +03:00
commit 54c41c3680
5 changed files with 36 additions and 0 deletions

14
.gitignore vendored Normal file
View File

@ -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
.rustfmt.toml Normal file
View File

@ -0,0 +1,3 @@
hard_tabs = true
tab_spaces = 2
max_width = 80

8
Cargo.toml Normal file
View File

@ -0,0 +1,8 @@
[package]
name = "rust-wasm-snake"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Snake using Rust & WASM
Tutorial: https://www.youtube.com/watch?v=iR7Q_6quwSI

8
src/lib.rs Normal file
View File

@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}