This commit is contained in:
parent
af7af4d6f2
commit
83b275cefd
|
@ -0,0 +1,16 @@
|
||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "lab_1"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"text_io",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "text_io"
|
||||||
|
version = "0.1.12"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d5f0c8eb2ad70c12a6a69508f499b3051c924f4b1cfeae85bfad96e6bc5bba46"
|
|
@ -0,0 +1,9 @@
|
||||||
|
[package]
|
||||||
|
name = "lab_1"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
text_io = "0.1.12"
|
|
@ -0,0 +1,15 @@
|
||||||
|
fn main() {
|
||||||
|
// use text_io::scan;
|
||||||
|
use text_io::read;
|
||||||
|
|
||||||
|
print!("Input: ");
|
||||||
|
|
||||||
|
// read until a whitespace and try to convert what was read into an i32
|
||||||
|
let a: i32 = read!();
|
||||||
|
|
||||||
|
/* let i: u32;
|
||||||
|
print!("Input: ");
|
||||||
|
scan!("{}", i); */
|
||||||
|
|
||||||
|
println!("You have input: {}", a);
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
{"rustc_fingerprint":1109913473729500203,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/rhinemann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\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_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.69.0 (84c898d65 2023-04-16)\nbinary: rustc\ncommit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\ncommit-date: 2023-04-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.69.0\nLLVM version: 15.0.7\n","stderr":""}},"successes":{}}
|
|
@ -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/
|
|
@ -0,0 +1 @@
|
||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":9251013656241001069,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,16250147254765824332]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-21a9cdc6153637a5/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
This file has an mtime of when this was started.
|
|
@ -0,0 +1,2 @@
|
||||||
|
{"message":"unexpected end of macro invocation","code":null,"level":"error","spans":[{"file_name":"src/main.rs","byte_start":179,"byte_end":186,"line_start":8,"line_end":8,"column_start":18,"column_end":25,"is_primary":true,"text":[{"text":" let a: i32 = scan!();","highlight_start":18,"highlight_end":25}],"label":"missing tokens in macro arguments","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"while trying to match meta-variable `$text:expr`","code":null,"level":"note","spans":[{"file_name":"/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs","byte_start":6858,"byte_end":6868,"line_start":225,"line_end":225,"column_start":6,"column_end":16,"is_primary":true,"text":[{"text":" ($text:expr, $($arg:expr),*) => {","highlight_start":6,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: unexpected end of macro invocation\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:8:18\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;12m8\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m let a: i32 = scan!();\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;9mmissing tokens in macro arguments\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;10mnote\u001b[0m\u001b[0m: while trying to match meta-variable `$text:expr`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0m/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:225:6\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;12m225\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m ($text:expr, $($arg:expr),*) => {\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;10m^^^^^^^^^^\u001b[0m\n\n"}
|
||||||
|
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: aborting due to previous error\u001b[0m\n\n"}
|
|
@ -0,0 +1 @@
|
||||||
|
d97c05c8356d63be
|
|
@ -0,0 +1 @@
|
||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":7309141686862299243,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,18437410369655646666]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-68601d683e1e8856/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
This file has an mtime of when this was started.
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
||||||
|
1e31ad2d831b958b
|
|
@ -0,0 +1 @@
|
||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":1021633075455700787,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-6de41bec606e8613/dep-test-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
||||||
|
03a82760ea6c966b
|
|
@ -0,0 +1 @@
|
||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":1021633075455700787,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,18437410369655646666]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-c6f8d37b6207cc41/dep-test-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
|
@ -0,0 +1 @@
|
||||||
|
8860c7066aee2306
|
|
@ -0,0 +1 @@
|
||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":7309141686862299243,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-ec33eeac96f0d2fc/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
This file has an mtime of when this was started.
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
||||||
|
4c291bccd41e84e1
|
|
@ -0,0 +1 @@
|
||||||
|
{"rustc":3257411903276762393,"features":"[]","target":9368524284222934410,"profile":12637318739757120569,"path":17386512851369609810,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/text_io-2d13b918f35cc59d/dep-lib-text_io"}}],"rustflags":[],"metadata":10716249605224554386,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
||||||
|
caa96dad0bd7deff
|
|
@ -0,0 +1 @@
|
||||||
|
{"rustc":3257411903276762393,"features":"[]","target":9368524284222934410,"profile":3735503092003429423,"path":17386512851369609810,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/text_io-8f0db3acf1dd6458/dep-lib-text_io"}}],"rustflags":[],"metadata":10716249605224554386,"config":2202906307356721367,"compile_kind":0}
|
|
@ -0,0 +1,5 @@
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-21a9cdc6153637a5: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-21a9cdc6153637a5.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
|
@ -0,0 +1,5 @@
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-68601d683e1e8856.rmeta: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-68601d683e1e8856.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
|
@ -0,0 +1,5 @@
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-6de41bec606e8613.rmeta: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-6de41bec606e8613.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
|
@ -0,0 +1,5 @@
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-c6f8d37b6207cc41.rmeta: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-c6f8d37b6207cc41.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
|
@ -0,0 +1,5 @@
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-ec33eeac96f0d2fc.rmeta: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-ec33eeac96f0d2fc.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,7 @@
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-2d13b918f35cc59d.rmeta: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/libtext_io-2d13b918f35cc59d.rlib: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-2d13b918f35cc59d.d: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:
|
|
@ -0,0 +1,5 @@
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-8f0db3acf1dd6458.rmeta: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-8f0db3acf1dd6458.d: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue