diff --git a/guessing_game/Cargo.lock b/guessing_game/Cargo.lock new file mode 100644 index 0000000..ee5d790 --- /dev/null +++ b/guessing_game/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "guessing_game" +version = "0.1.0" diff --git a/guessing_game/Cargo.toml b/guessing_game/Cargo.toml new file mode 100644 index 0000000..78c94fe --- /dev/null +++ b/guessing_game/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "guessing_game" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/guessing_game/src/main.rs b/guessing_game/src/main.rs new file mode 100644 index 0000000..a0334e5 --- /dev/null +++ b/guessing_game/src/main.rs @@ -0,0 +1,26 @@ +// some things are automatically loaded in every rust program +// https://doc.rust-lang.org/std/prelude/index.html +// for extras, import them with `use`: +use std::io; + +fn main() { + println!("Guess the number!"); + println!("input your guess"); + // vars are immutable by default, change this + // The :: syntax in the ::new line indicates that new is an _associated function_ of the String + // a function that’s implemented on a type + let mut guess = String::new(); + // could still call this without importing it via std::io::stdin + // this can be one line, it is broken up for readability. + io::stdin() + // & indicates that this argument is a reference, + // references are also immutable by default so &mut is needed + .read_line(&mut guess) + // expect handles the Err variant by crashing the program. There are other ways to handle + // errors. + .expect("Failed to read line"); + // read_line returns a `result` value. result is an enum. Each possible state is a variant. + // Result's variants are Ok and Err + + println!("you guessed: {guess}"); +} diff --git a/guessing_game/target/.rustc_info.json b/guessing_game/target/.rustc_info.json new file mode 100644 index 0000000..074eb7a --- /dev/null +++ b/guessing_game/target/.rustc_info.json @@ -0,0 +1 @@ +{"rustc_fingerprint":2873261240282726551,"outputs":{"10376369925670944939":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/luket/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"llvm14-builtins-abi\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.67.0-nightly (7eef946fc 2022-11-06)\nbinary: rustc\ncommit-hash: 7eef946fc0e0eff40e588eab77b09b287accbec3\ncommit-date: 2022-11-06\nhost: x86_64-unknown-linux-gnu\nrelease: 1.67.0-nightly\nLLVM version: 15.0.4\n","stderr":""},"15697416045686424142":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n","stderr":""}},"successes":{}} \ No newline at end of file diff --git a/guessing_game/target/CACHEDIR.TAG b/guessing_game/target/CACHEDIR.TAG new file mode 100644 index 0000000..20d7c31 --- /dev/null +++ b/guessing_game/target/CACHEDIR.TAG @@ -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/ diff --git a/guessing_game/target/debug/.cargo-lock b/guessing_game/target/debug/.cargo-lock new file mode 100644 index 0000000..e69de29 diff --git a/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/bin-guessing_game b/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/bin-guessing_game new file mode 100644 index 0000000..c8b6ec7 --- /dev/null +++ b/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/bin-guessing_game @@ -0,0 +1 @@ +96b64cf4f2c856d9 \ No newline at end of file diff --git a/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/bin-guessing_game.json b/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/bin-guessing_game.json new file mode 100644 index 0000000..4713c9f --- /dev/null +++ b/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/bin-guessing_game.json @@ -0,0 +1 @@ +{"rustc":15234846723159686366,"features":"[]","target":18246892274002150725,"profile":9251013656241001069,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/guessing_game-3f658c19dd973748/dep-bin-guessing_game"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} \ No newline at end of file diff --git a/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/dep-bin-guessing_game b/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/dep-bin-guessing_game new file mode 100644 index 0000000..5fdf103 Binary files /dev/null and b/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/dep-bin-guessing_game differ diff --git a/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/invoked.timestamp b/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/guessing_game/target/debug/.fingerprint/guessing_game-3f658c19dd973748/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started. \ No newline at end of file diff --git a/guessing_game/target/debug/deps/guessing_game-3f658c19dd973748 b/guessing_game/target/debug/deps/guessing_game-3f658c19dd973748 new file mode 100755 index 0000000..74a37aa Binary files /dev/null and b/guessing_game/target/debug/deps/guessing_game-3f658c19dd973748 differ diff --git a/guessing_game/target/debug/deps/guessing_game-3f658c19dd973748.d b/guessing_game/target/debug/deps/guessing_game-3f658c19dd973748.d new file mode 100644 index 0000000..41703f4 --- /dev/null +++ b/guessing_game/target/debug/deps/guessing_game-3f658c19dd973748.d @@ -0,0 +1,5 @@ +/home/luket/git/rust/guessing_game/target/debug/deps/guessing_game-3f658c19dd973748: src/main.rs + +/home/luket/git/rust/guessing_game/target/debug/deps/guessing_game-3f658c19dd973748.d: src/main.rs + +src/main.rs: diff --git a/guessing_game/target/debug/guessing_game b/guessing_game/target/debug/guessing_game new file mode 100755 index 0000000..74a37aa Binary files /dev/null and b/guessing_game/target/debug/guessing_game differ diff --git a/guessing_game/target/debug/guessing_game.d b/guessing_game/target/debug/guessing_game.d new file mode 100644 index 0000000..dedc67f --- /dev/null +++ b/guessing_game/target/debug/guessing_game.d @@ -0,0 +1 @@ +/home/luket/git/rust/guessing_game/target/debug/guessing_game: /home/luket/git/rust/guessing_game/src/main.rs diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/19jr8b67i5x0lkp0.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/19jr8b67i5x0lkp0.o new file mode 100644 index 0000000..ad2a699 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/19jr8b67i5x0lkp0.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/1gsq2h12fgd56hfu.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/1gsq2h12fgd56hfu.o new file mode 100644 index 0000000..2c10b76 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/1gsq2h12fgd56hfu.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/1nqx1dm5a71j0gi6.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/1nqx1dm5a71j0gi6.o new file mode 100644 index 0000000..04e0597 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/1nqx1dm5a71j0gi6.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/23lmkcj5034ugjkb.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/23lmkcj5034ugjkb.o new file mode 100644 index 0000000..2cd8373 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/23lmkcj5034ugjkb.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2cjkg9pswx20g5e6.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2cjkg9pswx20g5e6.o new file mode 100644 index 0000000..25f20e5 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2cjkg9pswx20g5e6.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2tqlv1y5b7qb5mge.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2tqlv1y5b7qb5mge.o new file mode 100644 index 0000000..f7663ac Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2tqlv1y5b7qb5mge.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2xt3e301axkjpw3t.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2xt3e301axkjpw3t.o new file mode 100644 index 0000000..91cfb6b Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/2xt3e301axkjpw3t.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3291hlwldk2kz57e.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3291hlwldk2kz57e.o new file mode 100644 index 0000000..f3dbec5 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3291hlwldk2kz57e.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/33w1busqmlj0m91y.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/33w1busqmlj0m91y.o new file mode 100644 index 0000000..443623f Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/33w1busqmlj0m91y.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3741kvzk2b9n0obu.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3741kvzk2b9n0obu.o new file mode 100644 index 0000000..6065067 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3741kvzk2b9n0obu.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3fep2jps5t5zfp4o.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3fep2jps5t5zfp4o.o new file mode 100644 index 0000000..b6d9e2d Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3fep2jps5t5zfp4o.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3mrh8za89fx9r9s4.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3mrh8za89fx9r9s4.o new file mode 100644 index 0000000..fd0b057 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3mrh8za89fx9r9s4.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3u0nl61dkh7i29c6.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3u0nl61dkh7i29c6.o new file mode 100644 index 0000000..6c0e165 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/3u0nl61dkh7i29c6.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/442nw28mdbzfpz6p.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/442nw28mdbzfpz6p.o new file mode 100644 index 0000000..0b4484a Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/442nw28mdbzfpz6p.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4d540ij8c2an8z67.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4d540ij8c2an8z67.o new file mode 100644 index 0000000..6be633e Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4d540ij8c2an8z67.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4hfokjro31pwnshv.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4hfokjro31pwnshv.o new file mode 100644 index 0000000..f59dae8 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4hfokjro31pwnshv.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4p1aomvcqmfnpw2t.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4p1aomvcqmfnpw2t.o new file mode 100644 index 0000000..d414cee Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4p1aomvcqmfnpw2t.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4qcsxlxoolpn0po0.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4qcsxlxoolpn0po0.o new file mode 100644 index 0000000..31f45fc Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/4qcsxlxoolpn0po0.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/dep-graph.bin b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/dep-graph.bin new file mode 100644 index 0000000..8bba167 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/dep-graph.bin differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/ojd3idfoq4gskjp.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/ojd3idfoq4gskjp.o new file mode 100644 index 0000000..ecbf9f6 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/ojd3idfoq4gskjp.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/qaw5dh4j58de1sx.o b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/qaw5dh4j58de1sx.o new file mode 100644 index 0000000..4307222 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/qaw5dh4j58de1sx.o differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/query-cache.bin b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/query-cache.bin new file mode 100644 index 0000000..30946ba Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/query-cache.bin differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/work-products.bin b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/work-products.bin new file mode 100644 index 0000000..e8d62d6 Binary files /dev/null and b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe-zafxt0u2zgar/work-products.bin differ diff --git a/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe.lock b/guessing_game/target/debug/incremental/guessing_game-1hrazmpn0plc9/s-gg9mjym62v-kitkfe.lock new file mode 100644 index 0000000..e69de29