Add assignment 2a rust

This commit is contained in:
Michael Zhang 2023-04-05 17:58:00 -05:00
parent 08f9ee167a
commit d7eb032095
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
9 changed files with 1269 additions and 30 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
.direnv .direnv
.pijul .pijul
/target

1229
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

20
Cargo.toml Normal file
View file

@ -0,0 +1,20 @@
[workspace]
members = [
"assignment-0",
"assignment-1a",
"assignment-1b",
"assignment-1c",
"assignment-1d",
"assignment-2a-rust",
]
# For profiling with flamegraphs
[profile.release]
debug = true
# Optimize for size when creating handin
[profile.release-handin]
inherits = "release"
strip = true
lto = true

View file

@ -4,16 +4,6 @@ authors = ["Michael Zhang <zhan4854@umn.edu>"]
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
# For profiling with flamegraphs
[profile.release]
debug = true
# Optimize for size when creating handin
[profile.release-handin]
inherits = "release"
strip = true
lto = true
[[bin]] [[bin]]
name = "raytracer1b" name = "raytracer1b"
path = "src/main.rs" path = "src/main.rs"

View file

@ -4,16 +4,6 @@ authors = ["Michael Zhang <zhan4854@umn.edu>"]
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
# For profiling with flamegraphs
[profile.release]
debug = true
# Optimize for size when creating handin
[profile.release-handin]
inherits = "release"
strip = true
lto = true
[[bin]] [[bin]]
name = "raytracer1c" name = "raytracer1c"
path = "src/main.rs" path = "src/main.rs"

View file

@ -4,16 +4,6 @@ authors = ["Michael Zhang <zhan4854@umn.edu>"]
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
# For profiling with flamegraphs
[profile.release]
debug = true
# Optimize for size when creating handin
[profile.release-handin]
inherits = "release"
strip = true
lto = true
[features] [features]
release-handin = ["tracing/release_max_level_info"] release-handin = ["tracing/release_max_level_info"]

7
assignment-2a-rust/Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "assignment-2a-rust"
version = "0.1.0"

View file

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

View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}