-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e57960
commit 705d31f
Showing
327 changed files
with
376 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 🦀 a course on rust, algorithms, and data Structures | ||
|
||
<br> | ||
|
||
***rust is a strong static type language designed to guide developers towards reliable and efficient code in terms of speed, memory usage, and security.*** | ||
|
||
***in this project we learn it the right way: by tackling classical algorithms and data structures problems, from zero to hero.*** | ||
|
||
<br> | ||
|
||
#### in this dir: | ||
|
||
* **[module 1: get started](module_1_beginner)** | ||
* **[module 2: intermediary problems](module_2_intermediary)** | ||
* **[module 3: algorithms problems](module_3_algorithms)** | ||
* **[module 4: data structures problems](module_4_data_strcutures)** | ||
|
||
|
||
|
105 changes: 105 additions & 0 deletions
105
algorithms-and-data-structures/module_1_beginner/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Module 1: Beginner | ||
|
||
<br> | ||
|
||
|
||
### Rust is an ahead-of-time compiled language | ||
|
||
* The `main` function in Rust is always the first code that runs in every executable Rust program. | ||
|
||
* In any directory, compile and run a Rust program with: | ||
|
||
|
||
```sh | ||
rustc main.rs | ||
./main | ||
``` | ||
|
||
|
||
<br> | ||
|
||
--- | ||
|
||
### Cargo | ||
|
||
* Cargo is a dependency manager and build tool, which makes adding, compiling, and managing dependencies painless and consistent across the Rust ecosystem. | ||
|
||
* A crate is a collection of Rust source code files. Cargo coordinates external crates in the `Cargo.toml` file. You can add a new crate with `cargo add <crate name>` and update with `cargo update <crate name>`. | ||
|
||
|
||
#### Creating a new project | ||
|
||
```sh | ||
cargo new gm_world | ||
``` | ||
|
||
* This command creates a cargo TOML file and a placeholder for `main.rs`: | ||
|
||
```sh | ||
. | ||
├── Cargo.toml | ||
└── src | ||
└── main.rs | ||
``` | ||
|
||
|
||
#### Building and running with Cargo | ||
|
||
* Alternatively, in any directory, compile and run a Rust program with: | ||
|
||
|
||
```sh | ||
cargo build | ||
``` | ||
|
||
* This command creates a file named `Cargo.lock` (which keeps track of the versions for all dependencies), and an executable inside `target/debug/` that can be ran. | ||
|
||
* If you are building for release or benchmarking, add the flag `--release` to compile it with optimizations (and the target will be `release`). | ||
|
||
* Additionally, you can build and run with: | ||
|
||
```sh | ||
cargo run | ||
``` | ||
|
||
* Finally, to make sure your code compile in a fast manner without executing it, you can run: | ||
|
||
```sh | ||
cargo check | ||
``` | ||
|
||
|
||
|
||
<br> | ||
|
||
--- | ||
|
||
### Rustfmt | ||
|
||
* A formatting tool ensuring a consistent coding style across developers. | ||
|
||
<br> | ||
|
||
--- | ||
|
||
### Macros | ||
|
||
* A `!` (as in `println!`) calls a Rust macro. | ||
|
||
<br> | ||
|
||
--- | ||
|
||
### Variables | ||
|
||
* Variables and references are immutable by default. | ||
* Constants are declared with `const` and always immutable. | ||
|
||
<br> | ||
|
||
---- | ||
|
||
### Results | ||
|
||
* Rust handles potential failure with `Result`, which is an `enumeration` (`enum`, a type that can be in one of multiple possible states or variant). | ||
|
8 changes: 8 additions & 0 deletions
8
algorithms-and-data-structures/module_1_beginner/gm_world/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "gm_world" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] |
3 changes: 3 additions & 0 deletions
3
algorithms-and-data-structures/module_1_beginner/gm_world/src/main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
println!("Hello, world!"); | ||
} |
1 change: 1 addition & 0 deletions
1
algorithms-and-data-structures/module_1_beginner/gm_world/target/.rustc_info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc_fingerprint":13123995926778499093,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.70.0 (90c541806 2023-05-31)\nbinary: rustc\ncommit-hash: 90c541806f23a127002de5b4038be731ba1458ca\ncommit-date: 2023-05-31\nhost: aarch64-apple-darwin\nrelease: 1.70.0\nLLVM version: 16.0.2\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/Users/m/.rustup/toolchains/stable-aarch64-apple-darwin\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"aarch64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"aes\"\ntarget_feature=\"crc\"\ntarget_feature=\"dit\"\ntarget_feature=\"dotprod\"\ntarget_feature=\"dpb\"\ntarget_feature=\"dpb2\"\ntarget_feature=\"fcma\"\ntarget_feature=\"fhm\"\ntarget_feature=\"flagm\"\ntarget_feature=\"fp16\"\ntarget_feature=\"frintts\"\ntarget_feature=\"jsconv\"\ntarget_feature=\"lor\"\ntarget_feature=\"lse\"\ntarget_feature=\"neon\"\ntarget_feature=\"paca\"\ntarget_feature=\"pacg\"\ntarget_feature=\"pan\"\ntarget_feature=\"pmuv3\"\ntarget_feature=\"ras\"\ntarget_feature=\"rcpc\"\ntarget_feature=\"rcpc2\"\ntarget_feature=\"rdm\"\ntarget_feature=\"sb\"\ntarget_feature=\"sha2\"\ntarget_feature=\"sha3\"\ntarget_feature=\"ssbs\"\ntarget_feature=\"vh\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n","stderr":""}},"successes":{}} |
3 changes: 3 additions & 0 deletions
3
algorithms-and-data-structures/module_1_beginner/gm_world/target/CACHEDIR.TAG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Signature: 8a477f597d28d172789f06886806bc55 | ||
# This file is a cache directory tag created by cargo. | ||
# For information about cache directory tags see https://bford.info/cachedir/ |
Empty file.
1 change: 1 addition & 0 deletions
1
...dule_1_beginner/gm_world/target/debug/.fingerprint/gm_world-b171cdd5d38d2c52/bin-gm_world
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
182b23719bf615a0 |
1 change: 1 addition & 0 deletions
1
...1_beginner/gm_world/target/debug/.fingerprint/gm_world-b171cdd5d38d2c52/bin-gm_world.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"[]","target":12905394603528956051,"profile":11736316127369858332,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/gm_world-b171cdd5d38d2c52/dep-bin-gm_world"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} |
Binary file added
BIN
+24 Bytes
..._1_beginner/gm_world/target/debug/.fingerprint/gm_world-b171cdd5d38d2c52/dep-bin-gm_world
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...1_beginner/gm_world/target/debug/.fingerprint/gm_world-b171cdd5d38d2c52/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
Binary file added
BIN
+475 KB
...nd-data-structures/module_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52
Binary file not shown.
Binary file added
BIN
+6.3 KB
...e_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52.1olpfxnody8gct6s.rcgu.o
Binary file not shown.
Binary file added
BIN
+2.84 KB
...e_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52.3a5odjei6wjxpa1i.rcgu.o
Binary file not shown.
Binary file added
BIN
+2.79 KB
...le_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52.3me89n8ufy0djgz.rcgu.o
Binary file not shown.
Binary file added
BIN
+5.03 KB
...e_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52.3s3c0pw4kdi0gned.rcgu.o
Binary file not shown.
Binary file added
BIN
+3.2 KB
...e_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52.4wke22shq28zdgms.rcgu.o
Binary file not shown.
Binary file added
BIN
+5.77 KB
...le_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52.64nhlwz5i6q4vn3.rcgu.o
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
...-data-structures/module_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/Users/m/src/rust_and_algorithms/module_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52: src/main.rs | ||
|
||
/Users/m/src/rust_and_algorithms/module_1_beginner/gm_world/target/debug/deps/gm_world-b171cdd5d38d2c52.d: src/main.rs | ||
|
||
src/main.rs: |
Binary file added
BIN
+475 KB
algorithms-and-data-structures/module_1_beginner/gm_world/target/debug/gm_world
Binary file not shown.
1 change: 1 addition & 0 deletions
1
algorithms-and-data-structures/module_1_beginner/gm_world/target/debug/gm_world.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/Users/m/src/rust_and_algorithms/module_1_beginner/gm_world/target/debug/gm_world: /Users/m/src/rust_and_algorithms/module_1_beginner/gm_world/src/main.rs |
Binary file added
BIN
+6.3 KB
.../incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/1olpfxnody8gct6s.o
Binary file not shown.
Binary file added
BIN
+2.84 KB
.../incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/3a5odjei6wjxpa1i.o
Binary file not shown.
Binary file added
BIN
+2.79 KB
...g/incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/3me89n8ufy0djgz.o
Binary file not shown.
Binary file added
BIN
+5.03 KB
.../incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/3s3c0pw4kdi0gned.o
Binary file not shown.
Binary file added
BIN
+3.2 KB
.../incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/4wke22shq28zdgms.o
Binary file not shown.
Binary file added
BIN
+5.77 KB
...g/incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/64nhlwz5i6q4vn3.o
Binary file not shown.
Binary file added
BIN
+78.2 KB
...debug/incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/dep-graph.bin
Binary file not shown.
Binary file added
BIN
+13.9 KB
...bug/incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/query-cache.bin
Binary file not shown.
Binary file added
BIN
+381 Bytes
...g/incremental/gm_world-1n8zrfoghm3iw/s-gmhupm1bm6-15qsc44-30po9spcnsdjj/work-products.bin
Binary file not shown.
Empty file.
7 changes: 7 additions & 0 deletions
7
algorithms-and-data-structures/module_1_beginner/guessing_game/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "guessing_game" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
rand = "0.8.5" |
38 changes: 38 additions & 0 deletions
38
algorithms-and-data-structures/module_1_beginner/guessing_game/src/main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
use std::io; | ||
use rand::Rng; | ||
use std::cmp::Ordering; | ||
|
||
fn main() { | ||
|
||
// generate random number | ||
println!("Guess the number!"); | ||
let secret_number = rand::thread_rng().gen_range(1..=50); | ||
|
||
loop { | ||
// ask for user input | ||
println!("Please input your guess."); | ||
let mut guess = String::new(); | ||
io::stdin() | ||
.read_line(&mut guess) | ||
.expect("Failed to read line"); | ||
|
||
// convert guess to u32, unsigned 32-bit integer | ||
// shadowing: reusing the guess variable name | ||
// parse returns a Result type, which is an enum with variants Ok or Err | ||
let guess: u32 = match guess.trim().parse() { | ||
Ok(num) => num, | ||
Err(_) => continue, | ||
}; | ||
println!("You guessed: {guess}"); | ||
|
||
// compare guess to secret number | ||
match guess.cmp(&secret_number) { | ||
Ordering::Less => println!("Too small!"), | ||
Ordering::Greater => println!("Too big!"), | ||
Ordering::Equal => { | ||
println!("You win!"); | ||
break; | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
algorithms-and-data-structures/module_1_beginner/guessing_game/target/.rustc_info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc_fingerprint":13123995926778499093,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.70.0 (90c541806 2023-05-31)\nbinary: rustc\ncommit-hash: 90c541806f23a127002de5b4038be731ba1458ca\ncommit-date: 2023-05-31\nhost: aarch64-apple-darwin\nrelease: 1.70.0\nLLVM version: 16.0.2\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/Users/m/.rustup/toolchains/stable-aarch64-apple-darwin\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"aarch64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"aes\"\ntarget_feature=\"crc\"\ntarget_feature=\"dit\"\ntarget_feature=\"dotprod\"\ntarget_feature=\"dpb\"\ntarget_feature=\"dpb2\"\ntarget_feature=\"fcma\"\ntarget_feature=\"fhm\"\ntarget_feature=\"flagm\"\ntarget_feature=\"fp16\"\ntarget_feature=\"frintts\"\ntarget_feature=\"jsconv\"\ntarget_feature=\"lor\"\ntarget_feature=\"lse\"\ntarget_feature=\"neon\"\ntarget_feature=\"paca\"\ntarget_feature=\"pacg\"\ntarget_feature=\"pan\"\ntarget_feature=\"pmuv3\"\ntarget_feature=\"ras\"\ntarget_feature=\"rcpc\"\ntarget_feature=\"rcpc2\"\ntarget_feature=\"rdm\"\ntarget_feature=\"sb\"\ntarget_feature=\"sha2\"\ntarget_feature=\"sha3\"\ntarget_feature=\"ssbs\"\ntarget_feature=\"vh\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n","stderr":""}},"successes":{}} |
3 changes: 3 additions & 0 deletions
3
algorithms-and-data-structures/module_1_beginner/guessing_game/target/CACHEDIR.TAG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Signature: 8a477f597d28d172789f06886806bc55 | ||
# This file is a cache directory tag created by cargo. | ||
# For information about cache directory tags see https://bford.info/cachedir/ |
Empty file.
Binary file added
BIN
+8 Bytes
...1_beginner/guessing_game/target/debug/.fingerprint/cfg-if-0ec8ce22d83d2462/dep-lib-cfg-if
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...eginner/guessing_game/target/debug/.fingerprint/cfg-if-0ec8ce22d83d2462/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
...ule_1_beginner/guessing_game/target/debug/.fingerprint/cfg-if-0ec8ce22d83d2462/lib-cfg-if
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3392f77dc92c811f |
1 change: 1 addition & 0 deletions
1
..._beginner/guessing_game/target/debug/.fingerprint/cfg-if-0ec8ce22d83d2462/lib-cfg-if.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"[]","target":10623512480563079566,"profile":8344124108420085910,"path":1921917490579027495,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cfg-if-0ec8ce22d83d2462/dep-lib-cfg-if"}}],"rustflags":[],"metadata":8462187951337715540,"config":2202906307356721367,"compile_kind":0} |
Binary file added
BIN
+8 Bytes
...nner/guessing_game/target/debug/.fingerprint/getrandom-1aeed3bf8c21ee85/dep-lib-getrandom
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...nner/guessing_game/target/debug/.fingerprint/getrandom-1aeed3bf8c21ee85/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
...beginner/guessing_game/target/debug/.fingerprint/getrandom-1aeed3bf8c21ee85/lib-getrandom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cda9cabe91136e60 |
1 change: 1 addition & 0 deletions
1
...ner/guessing_game/target/debug/.fingerprint/getrandom-1aeed3bf8c21ee85/lib-getrandom.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"[\"std\"]","target":16789414514566550411,"profile":8344124108420085910,"path":12190893838580354263,"deps":[[2452538001284770427,"cfg_if",false,2270144931084866099],[2798846484360888381,"libc",false,2902005615398555261]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/getrandom-1aeed3bf8c21ee85/dep-lib-getrandom"}}],"rustflags":[],"metadata":12606519392706294666,"config":2202906307356721367,"compile_kind":0} |
Empty file.
1 change: 1 addition & 0 deletions
1
...sing_game/target/debug/.fingerprint/guessing_game-c0f2b63db544c8f1/bin-guessing_game.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"[]","target":13778422847712860350,"profile":11736316127369858332,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/guessing_game-c0f2b63db544c8f1/dep-bin-guessing_game"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} |
Binary file added
BIN
+24 Bytes
...ssing_game/target/debug/.fingerprint/guessing_game-c0f2b63db544c8f1/dep-bin-guessing_game
Binary file not shown.
1 change: 1 addition & 0 deletions
1
.../guessing_game/target/debug/.fingerprint/guessing_game-c0f2b63db544c8f1/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
5 changes: 5 additions & 0 deletions
5
...ng_game/target/debug/.fingerprint/guessing_game-c0f2b63db544c8f1/output-bin-guessing_game
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{"message":"unresolved import `rand`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018 or later, paths in `use` statements are relative to the current\nmodule unless they begin with the name of a crate or a literal `crate::`, in\nwhich case they start from the crate root. As in Rust 2015 code, the `self::`\nand `super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nSince Rust 2018 the `extern crate` declaration is not required and\nyou can instead just `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":17,"byte_end":21,"line_start":2,"line_end":2,"column_start":5,"column_end":9,"is_primary":true,"text":[{"text":"use rand::Rng;","highlight_start":5,"highlight_end":9}],"label":"use of undeclared crate or module `rand`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0432]\u001b[0m\u001b[0m\u001b[1m: unresolved import `rand`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:2:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m2\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0muse rand::Rng;\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9muse of undeclared crate or module `rand`\u001b[0m\n\n"} | ||
{"message":"failed to resolve: use of undeclared crate or module `rand`","code":{"code":"E0433","explanation":"An undeclared crate, module, or type was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n\nIf you've expected to use a crate name:\n\n```compile_fail\nuse ferris_wheel::BigO;\n// error: failed to resolve: use of undeclared crate or module `ferris_wheel`\n```\n\nMake sure the crate has been added as a dependency in `Cargo.toml`.\n\nTo use a module from your current crate, add the `crate::` prefix to the path.\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":101,"byte_end":105,"line_start":7,"line_end":7,"column_start":25,"column_end":29,"is_primary":true,"text":[{"text":" let secret_number = rand::thread_rng().gen_range(1, 101);","highlight_start":25,"highlight_end":29}],"label":"use of undeclared crate or module `rand`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0433]\u001b[0m\u001b[0m\u001b[1m: failed to resolve: use of undeclared crate or module `rand`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:7:25\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m7\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m let secret_number = rand::thread_rng().gen_range(1, 101);\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9muse of undeclared crate or module `rand`\u001b[0m\n\n"} | ||
{"message":"aborting due to 2 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: aborting due to 2 previous errors\u001b[0m\n\n"} | ||
{"message":"Some errors have detailed explanations: E0432, E0433.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1mSome errors have detailed explanations: E0432, E0433.\u001b[0m\n"} | ||
{"message":"For more information about an error, try `rustc --explain E0432`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1mFor more information about an error, try `rustc --explain E0432`.\u001b[0m\n"} |
1 change: 1 addition & 0 deletions
1
.../guessing_game/target/debug/.fingerprint/guessing_game-c21a51176d7c6e8a/bin-guessing_game
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8d20a126a5044e90 |
1 change: 1 addition & 0 deletions
1
...sing_game/target/debug/.fingerprint/guessing_game-c21a51176d7c6e8a/bin-guessing_game.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"[]","target":13778422847712860350,"profile":11736316127369858332,"path":1684066648322511884,"deps":[[5910892534286594076,"rand",false,6068215567931417371]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/guessing_game-c21a51176d7c6e8a/dep-bin-guessing_game"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} |
Binary file added
BIN
+24 Bytes
...ssing_game/target/debug/.fingerprint/guessing_game-c21a51176d7c6e8a/dep-bin-guessing_game
Binary file not shown.
1 change: 1 addition & 0 deletions
1
.../guessing_game/target/debug/.fingerprint/guessing_game-c21a51176d7c6e8a/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
Binary file added
BIN
+8 Bytes
...ule_1_beginner/guessing_game/target/debug/.fingerprint/libc-7bef7b9e6ce49da1/dep-lib-libc
Binary file not shown.
1 change: 1 addition & 0 deletions
1
..._beginner/guessing_game/target/debug/.fingerprint/libc-7bef7b9e6ce49da1/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
.../module_1_beginner/guessing_game/target/debug/.fingerprint/libc-7bef7b9e6ce49da1/lib-libc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7d0e0552bbfe4528 |
1 change: 1 addition & 0 deletions
1
...le_1_beginner/guessing_game/target/debug/.fingerprint/libc-7bef7b9e6ce49da1/lib-libc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"[]","target":1307715644349195660,"profile":8344124108420085910,"path":10861314034592621310,"deps":[[2798846484360888381,"build_script_build",false,8027764960609125671]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-7bef7b9e6ce49da1/dep-lib-libc"}}],"rustflags":[],"metadata":14998826085014762512,"config":2202906307356721367,"compile_kind":0} |
1 change: 1 addition & 0 deletions
1
...sing_game/target/debug/.fingerprint/libc-bd31c8efa8fe4040/build-script-build-script-build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4aaa30987801ed9d |
1 change: 1 addition & 0 deletions
1
...game/target/debug/.fingerprint/libc-bd31c8efa8fe4040/build-script-build-script-build.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"[]","target":8188216131759486267,"profile":8626402512162920248,"path":64750362080148061,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-bd31c8efa8fe4040/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":14998826085014762512,"config":2202906307356721367,"compile_kind":0} |
Binary file added
BIN
+8 Bytes
..._game/target/debug/.fingerprint/libc-bd31c8efa8fe4040/dep-build-script-build-script-build
Binary file not shown.
1 change: 1 addition & 0 deletions
1
..._beginner/guessing_game/target/debug/.fingerprint/libc-bd31c8efa8fe4040/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
..._game/target/debug/.fingerprint/libc-c445eecdea3df9e2/run-build-script-build-script-build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
27456fe1b259686f |
1 change: 1 addition & 0 deletions
1
.../target/debug/.fingerprint/libc-c445eecdea3df9e2/run-build-script-build-script-build.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"","target":0,"profile":0,"path":0,"deps":[[2798846484360888381,"build_script_build",false,11379753450896140874]],"local":[{"RerunIfChanged":{"output":"debug/build/libc-c445eecdea3df9e2/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0} |
Binary file added
BIN
+8 Bytes
...er/guessing_game/target/debug/.fingerprint/ppv-lite86-5deb4647438dbd7c/dep-lib-ppv-lite86
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...ner/guessing_game/target/debug/.fingerprint/ppv-lite86-5deb4647438dbd7c/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
...ginner/guessing_game/target/debug/.fingerprint/ppv-lite86-5deb4647438dbd7c/lib-ppv-lite86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f920e135a19bb34d |
1 change: 1 addition & 0 deletions
1
...r/guessing_game/target/debug/.fingerprint/ppv-lite86-5deb4647438dbd7c/lib-ppv-lite86.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rustc":631956316838095215,"features":"[\"simd\", \"std\"]","target":602634026009422966,"profile":8344124108420085910,"path":7650828019895201246,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/ppv-lite86-5deb4647438dbd7c/dep-lib-ppv-lite86"}}],"rustflags":[],"metadata":14155036307809790115,"config":2202906307356721367,"compile_kind":0} |
Binary file added
BIN
+8 Bytes
...ule_1_beginner/guessing_game/target/debug/.fingerprint/rand-f3c1dbcdf8d8b396/dep-lib-rand
Binary file not shown.
1 change: 1 addition & 0 deletions
1
..._beginner/guessing_game/target/debug/.fingerprint/rand-f3c1dbcdf8d8b396/invoked.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file has an mtime of when this was started. |
1 change: 1 addition & 0 deletions
1
.../module_1_beginner/guessing_game/target/debug/.fingerprint/rand-f3c1dbcdf8d8b396/lib-rand
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1b230c83e8a13654 |
Oops, something went wrong.