diff options
| author | Adam Carpenter <53hornet@gmail.com> | 2019-03-21 17:10:15 -0400 | 
|---|---|---|
| committer | Adam Carpenter <53hornet@gmail.com> | 2019-03-21 17:10:15 -0400 | 
| commit | 333965318a5d000140d54be2a2a9e0832372f271 (patch) | |
| tree | e7f28b53144982cfdf2cb95c9d71e5ea7a566b77 /advanced | |
| parent | 2fadb006603139c335ed8df8fa9c25402986c4fd (diff) | |
| download | learning-rust-333965318a5d000140d54be2a2a9e0832372f271.tar.xz learning-rust-333965318a5d000140d54be2a2a9e0832372f271.zip | |
Added advanced features.
Diffstat (limited to 'advanced')
88 files changed, 183 insertions, 0 deletions
| diff --git a/advanced/adv-lifetimes/Cargo.toml b/advanced/adv-lifetimes/Cargo.toml new file mode 100644 index 0000000..b127e9f --- /dev/null +++ b/advanced/adv-lifetimes/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "adv-lifetimes" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/advanced/adv-lifetimes/src/main.rs b/advanced/adv-lifetimes/src/main.rs new file mode 100644 index 0000000..755baf4 --- /dev/null +++ b/advanced/adv-lifetimes/src/main.rs @@ -0,0 +1,36 @@ +fn main() { +    let num = 5; + +    let obj = Box::new(Ball { diameter: &num }) as Box<dyn Red>; +} + +struct Context<'s>(&'s str); + +struct Parser<'c, 's: 'c> { +    context: &'c Context<'s>, +} + +impl<'c, 's> Parser<'c, 's> { +    fn parse(&self) -> Result<(), &'s str> { +        Err(&self.context.0[1..]) +    } +} + +fn parse_context(context: Context) -> Result<(), &str> { +    Parser { context: &context }.parse() +} + +trait Red { } + +struct Ball<'a> { +    diameter: &'a i32, +} + +impl<'a> Red for Ball<'a> { } + +struct StrWrap<'a>(&'a str); + +fn foo(string: &str) -> StrWrap<'_> { +    StrWrap(string) +} + diff --git a/advanced/adv-lifetimes/target/.rustc_info.json b/advanced/adv-lifetimes/target/.rustc_info.json new file mode 100644 index 0000000..1ebffa8 --- /dev/null +++ b/advanced/adv-lifetimes/target/.rustc_info.json @@ -0,0 +1 @@ +{"rustc_fingerprint":13873747241073698561,"outputs":{"1164083562126845933":["rustc 1.33.0 (2aa4c46cf 2019-02-28)\nbinary: rustc\ncommit-hash: 2aa4c46cfdd726e97360c2734835aa3515e8c858\ncommit-date: 2019-02-28\nhost: x86_64-unknown-linux-gnu\nrelease: 1.33.0\nLLVM version: 8.0\n",""],"1617349019360157463":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/carpenat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\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_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n",""],"15337506775154344876":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/carpenat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\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_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n",""]},"successes":{}}
\ No newline at end of file diff --git a/advanced/adv-lifetimes/target/debug/.cargo-lock b/advanced/adv-lifetimes/target/debug/.cargo-lock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/.cargo-lock diff --git a/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce new file mode 100644 index 0000000..343281c --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce @@ -0,0 +1 @@ +13e4db2b30f9ca6a
\ No newline at end of file diff --git a/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce.json b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce.json new file mode 100644 index 0000000..5c49bc9 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce.json @@ -0,0 +1 @@ +{"rustc":14715343205281380114,"features":"[]","target":8567927432741039825,"profile":8125872795052292327,"path":1036222786711178230,"deps":[],"local":[{"MtimeBased":[[1553198188,330030700],".fingerprint/adv-lifetimes-b828770eb5a3e1ce/dep-bin-adv_lifetimes-b828770eb5a3e1ce"]}],"rustflags":[],"edition":"Edition2018"}
\ No newline at end of file diff --git a/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/dep-bin-adv_lifetimes-b828770eb5a3e1ce b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/dep-bin-adv_lifetimes-b828770eb5a3e1ceBinary files differ new file mode 100644 index 0000000..e046c38 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/dep-bin-adv_lifetimes-b828770eb5a3e1ce diff --git a/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/invoked.timestamp b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started.
\ No newline at end of file diff --git a/advanced/adv-lifetimes/target/debug/adv-lifetimes b/advanced/adv-lifetimes/target/debug/adv-lifetimesBinary files differ new file mode 100755 index 0000000..2b7d451 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/adv-lifetimes diff --git a/advanced/adv-lifetimes/target/debug/adv-lifetimes.d b/advanced/adv-lifetimes/target/debug/adv-lifetimes.d new file mode 100644 index 0000000..5b70c2f --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/adv-lifetimes.d @@ -0,0 +1 @@ +/home/carpenat/devel/learning-rust/advanced/adv-lifetimes/target/debug/adv-lifetimes: /home/carpenat/devel/learning-rust/advanced/adv-lifetimes/src/main.rs diff --git a/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce b/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ceBinary files differ new file mode 100755 index 0000000..2b7d451 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce diff --git a/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d b/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d new file mode 100644 index 0000000..46f625d --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d @@ -0,0 +1,5 @@ +/home/carpenat/devel/learning-rust/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce: src/main.rs + +/home/carpenat/devel/learning-rust/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d: src/main.rs + +src/main.rs: diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.oBinary files differ new file mode 100644 index 0000000..1016763 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.oBinary files differ new file mode 100644 index 0000000..18f625a --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.oBinary files differ new file mode 100644 index 0000000..291b794 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.oBinary files differ new file mode 100644 index 0000000..d807aaf --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.oBinary files differ new file mode 100644 index 0000000..75e4ba5 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.oBinary files differ new file mode 100644 index 0000000..330d677 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.oBinary files differ new file mode 100644 index 0000000..e9f690f --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.oBinary files differ new file mode 100644 index 0000000..86f98dc --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.oBinary files differ new file mode 100644 index 0000000..27da0fb --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/dep-graph.bin b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/dep-graph.binBinary files differ new file mode 100644 index 0000000..c90662a --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/dep-graph.bin diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/query-cache.bin b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/query-cache.binBinary files differ new file mode 100644 index 0000000..d4c7d71 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/query-cache.bin diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.oBinary files differ new file mode 100644 index 0000000..7925212 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/work-products.bin b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/work-products.binBinary files differ new file mode 100644 index 0000000..2194036 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/work-products.bin diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct.lock b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct.lock new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct.lock diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1d3j5bthhcuoz0k9.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1d3j5bthhcuoz0k9.oBinary files differ new file mode 100644 index 0000000..1016763 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1d3j5bthhcuoz0k9.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1km18hbh24de81co.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1km18hbh24de81co.oBinary files differ new file mode 100644 index 0000000..18f625a --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1km18hbh24de81co.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2v6gyxz0l04kvq2h.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2v6gyxz0l04kvq2h.oBinary files differ new file mode 100644 index 0000000..291b794 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2v6gyxz0l04kvq2h.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2x7jzlfoigpi8n19.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2x7jzlfoigpi8n19.oBinary files differ new file mode 100644 index 0000000..d807aaf --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2x7jzlfoigpi8n19.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2ydsyc2m0zj6gcc.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2ydsyc2m0zj6gcc.oBinary files differ new file mode 100644 index 0000000..75e4ba5 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2ydsyc2m0zj6gcc.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/30vxab50z8tyxoor.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/30vxab50z8tyxoor.oBinary files differ new file mode 100644 index 0000000..330d677 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/30vxab50z8tyxoor.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3ayyqouszix7bt86.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3ayyqouszix7bt86.oBinary files differ new file mode 100644 index 0000000..e9f690f --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3ayyqouszix7bt86.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3roysfyfmk8bsw0.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3roysfyfmk8bsw0.oBinary files differ new file mode 100644 index 0000000..86f98dc --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3roysfyfmk8bsw0.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/4v0h7catp0lfgaza.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/4v0h7catp0lfgaza.oBinary files differ new file mode 100644 index 0000000..27da0fb --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/4v0h7catp0lfgaza.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/dep-graph.bin b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/dep-graph.binBinary files differ new file mode 100644 index 0000000..21438a4 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/dep-graph.bin diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/query-cache.bin b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/query-cache.binBinary files differ new file mode 100644 index 0000000..502a8b4 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/query-cache.bin diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/sjopcb0dfmz1icu.o b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/sjopcb0dfmz1icu.oBinary files differ new file mode 100644 index 0000000..7925212 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/sjopcb0dfmz1icu.o diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/work-products.bin b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/work-products.binBinary files differ new file mode 100644 index 0000000..2194036 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/work-products.bin diff --git a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t.lock b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t.lock new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t.lock diff --git a/advanced/adv-traits/Cargo.toml b/advanced/adv-traits/Cargo.toml new file mode 100644 index 0000000..b1c5f6a --- /dev/null +++ b/advanced/adv-traits/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "adv-traits" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/advanced/adv-traits/src/main.rs b/advanced/adv-traits/src/main.rs new file mode 100644 index 0000000..6ec0aac --- /dev/null +++ b/advanced/adv-traits/src/main.rs @@ -0,0 +1,34 @@ +//fn main() { +//    println!("Hello, world!"); +//} +// +//pub trait Iterator { +//    type Item; +// +//    fn next(&mut self) -> Option<Self::Item>; +//} +// +use std::ops::Add; + +#[derive(Debug, PartialEq)] +struct Point { +    x: i32, +    y: i32, +} + +impl Add for Point { +    type Output = Point; + +    fn add(self, other: Point) -> Point { +        Point { +            x: self.x + other.x, +            y: self.y + other.y, +        } +    } +} + +fn main() { +    assert_eq!(Point { x: 1, y: 0 } + Point { x: 2, y: 3 }, +               Point { x: 3, y: 3 }); +    println!("Done."); +} diff --git a/advanced/adv-traits/target/.rustc_info.json b/advanced/adv-traits/target/.rustc_info.json new file mode 100644 index 0000000..7928d45 --- /dev/null +++ b/advanced/adv-traits/target/.rustc_info.json @@ -0,0 +1 @@ +{"rustc_fingerprint":13873747241073698561,"outputs":{"1617349019360157463":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/carpenat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\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_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n",""],"1164083562126845933":["rustc 1.33.0 (2aa4c46cf 2019-02-28)\nbinary: rustc\ncommit-hash: 2aa4c46cfdd726e97360c2734835aa3515e8c858\ncommit-date: 2019-02-28\nhost: x86_64-unknown-linux-gnu\nrelease: 1.33.0\nLLVM version: 8.0\n",""],"15337506775154344876":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/carpenat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\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_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n",""]},"successes":{}}
\ No newline at end of file diff --git a/advanced/adv-traits/target/debug/.cargo-lock b/advanced/adv-traits/target/debug/.cargo-lock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/advanced/adv-traits/target/debug/.cargo-lock diff --git a/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b new file mode 100644 index 0000000..e613bbc --- /dev/null +++ b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b @@ -0,0 +1 @@ +636ef41b82832f13
\ No newline at end of file diff --git a/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b.json b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b.json new file mode 100644 index 0000000..8b613d0 --- /dev/null +++ b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b.json @@ -0,0 +1 @@ +{"rustc":14715343205281380114,"features":"[]","target":4630177701526872026,"profile":36343588025168328,"path":1036222786711178230,"deps":[],"local":[{"MtimeBased":[[1553199946,719046300],".fingerprint/adv-traits-7a3f023f72f2e99b/dep-bin-adv_traits-7a3f023f72f2e99b"]}],"rustflags":[],"edition":"Edition2018"}
\ No newline at end of file diff --git a/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/dep-bin-adv_traits-7a3f023f72f2e99b b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/dep-bin-adv_traits-7a3f023f72f2e99bBinary files differ new file mode 100644 index 0000000..e046c38 --- /dev/null +++ b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/dep-bin-adv_traits-7a3f023f72f2e99b diff --git a/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/invoked.timestamp b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started.
\ No newline at end of file diff --git a/advanced/adv-traits/target/debug/adv-traits b/advanced/adv-traits/target/debug/adv-traitsBinary files differ new file mode 100755 index 0000000..11e80f1 --- /dev/null +++ b/advanced/adv-traits/target/debug/adv-traits diff --git a/advanced/adv-traits/target/debug/adv-traits.d b/advanced/adv-traits/target/debug/adv-traits.d new file mode 100644 index 0000000..8564f19 --- /dev/null +++ b/advanced/adv-traits/target/debug/adv-traits.d @@ -0,0 +1 @@ +/home/carpenat/devel/learning-rust/advanced/adv-traits/target/debug/adv-traits: /home/carpenat/devel/learning-rust/advanced/adv-traits/src/main.rs diff --git a/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b b/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99bBinary files differ new file mode 100755 index 0000000..11e80f1 --- /dev/null +++ b/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b diff --git a/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d b/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d new file mode 100644 index 0000000..ea0dbeb --- /dev/null +++ b/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d @@ -0,0 +1,5 @@ +/home/carpenat/devel/learning-rust/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b: src/main.rs + +/home/carpenat/devel/learning-rust/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d: src/main.rs + +src/main.rs: diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1817p87j5sskdd2d.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1817p87j5sskdd2d.oBinary files differ new file mode 100644 index 0000000..e6e5dbd --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1817p87j5sskdd2d.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/18dwqulmfpgc4a76.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/18dwqulmfpgc4a76.oBinary files differ new file mode 100644 index 0000000..7217217 --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/18dwqulmfpgc4a76.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1uwm6llvq8hpxxe4.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1uwm6llvq8hpxxe4.oBinary files differ new file mode 100644 index 0000000..a50fb0f --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1uwm6llvq8hpxxe4.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/22vo1hhgz7nrqprk.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/22vo1hhgz7nrqprk.oBinary files differ new file mode 100644 index 0000000..2d0b66a --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/22vo1hhgz7nrqprk.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/39s13eb25j8u8cmp.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/39s13eb25j8u8cmp.oBinary files differ new file mode 100644 index 0000000..f3d3ce6 --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/39s13eb25j8u8cmp.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3scspgmrophbznf2.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3scspgmrophbznf2.oBinary files differ new file mode 100644 index 0000000..9d2899c --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3scspgmrophbznf2.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3syc801cqhizh1el.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3syc801cqhizh1el.oBinary files differ new file mode 100644 index 0000000..f364532 --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3syc801cqhizh1el.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/4iuush58y7c4c0jb.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/4iuush58y7c4c0jb.oBinary files differ new file mode 100644 index 0000000..ae9ba65 --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/4iuush58y7c4c0jb.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/5baiae7vuud9a1ml.o b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/5baiae7vuud9a1ml.oBinary files differ new file mode 100644 index 0000000..73eeb93 --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/5baiae7vuud9a1ml.o diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/dep-graph.bin b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/dep-graph.binBinary files differ new file mode 100644 index 0000000..37818e6 --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/dep-graph.bin diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/query-cache.bin b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/query-cache.binBinary files differ new file mode 100644 index 0000000..017fbfc --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/query-cache.bin diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/work-products.bin b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/work-products.binBinary files differ new file mode 100644 index 0000000..669496c --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/work-products.bin diff --git a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia.lock b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia.lock new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia.lock diff --git a/advanced/unsafe-rust/Cargo.toml b/advanced/unsafe-rust/Cargo.toml new file mode 100644 index 0000000..b37474a --- /dev/null +++ b/advanced/unsafe-rust/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "unsafe-rust" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/advanced/unsafe-rust/src/main.rs b/advanced/unsafe-rust/src/main.rs new file mode 100644 index 0000000..c9967a8 --- /dev/null +++ b/advanced/unsafe-rust/src/main.rs @@ -0,0 +1,62 @@ +fn main() { +    let mut num = 5; + +    let r1 = &num as *const i32; +    let r2 = &mut num as *mut i32; + +    let address = 0x012345usize; +    let r = address as *const i32; + +    unsafe { +        println!("{}", *r1); +        println!("{}", *r2); +    } + +    unsafe { +        dangerous(); +    } + + +    unsafe { +        println!("c call: {}", abs(-3)); +    } + + +    unsafe { +        HELLO_WORLD = "test"; +        println!("{}", HELLO_WORLD); +    } +    println!("{}", HI_THERE); + +    add_to_count(3); + +    unsafe {  +        println!("counter: {}", COUNTER); +    } +} + +unsafe fn dangerous() {} + +extern "C" { +    fn abs(input: i32) -> i32; +} + +static mut HELLO_WORLD: &str = "hello world"; +static mut COUNTER: u32 = 0; + +fn add_to_count(inc: u32) { +    unsafe { +        COUNTER += inc; +    } +} + +const HI_THERE: &str = "hi there"; + +unsafe trait Foo { +    // methods +} + +unsafe impl Foo for i32 { +    // implementations +} + diff --git a/advanced/unsafe-rust/target/.rustc_info.json b/advanced/unsafe-rust/target/.rustc_info.json new file mode 100644 index 0000000..9d7b53d --- /dev/null +++ b/advanced/unsafe-rust/target/.rustc_info.json @@ -0,0 +1 @@ +{"rustc_fingerprint":13873747241073698561,"outputs":{"15337506775154344876":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/carpenat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\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_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n",""],"1164083562126845933":["rustc 1.33.0 (2aa4c46cf 2019-02-28)\nbinary: rustc\ncommit-hash: 2aa4c46cfdd726e97360c2734835aa3515e8c858\ncommit-date: 2019-02-28\nhost: x86_64-unknown-linux-gnu\nrelease: 1.33.0\nLLVM version: 8.0\n",""],"1617349019360157463":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/carpenat/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\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_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n",""]},"successes":{}}
\ No newline at end of file diff --git a/advanced/unsafe-rust/target/debug/.cargo-lock b/advanced/unsafe-rust/target/debug/.cargo-lock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/.cargo-lock diff --git a/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879 b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879 new file mode 100644 index 0000000..482713d --- /dev/null +++ b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879 @@ -0,0 +1 @@ +c1637025d3fcd0b5
\ No newline at end of file diff --git a/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879.json b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879.json new file mode 100644 index 0000000..57b65ce --- /dev/null +++ b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879.json @@ -0,0 +1 @@ +{"rustc":14715343205281380114,"features":"[]","target":13550359907968648163,"profile":11066475326754421590,"path":1036222786711178230,"deps":[],"local":[{"MtimeBased":[[1553195584,22060500],".fingerprint/unsafe-rust-c28e180aed6b1879/dep-bin-unsafe_rust-c28e180aed6b1879"]}],"rustflags":[],"edition":"Edition2018"}
\ No newline at end of file diff --git a/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/dep-bin-unsafe_rust-c28e180aed6b1879 b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/dep-bin-unsafe_rust-c28e180aed6b1879Binary files differ new file mode 100644 index 0000000..e046c38 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/dep-bin-unsafe_rust-c28e180aed6b1879 diff --git a/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/invoked.timestamp b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/invoked.timestamp new file mode 100644 index 0000000..e00328d --- /dev/null +++ b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/invoked.timestamp @@ -0,0 +1 @@ +This file has an mtime of when this was started.
\ No newline at end of file diff --git a/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879 b/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879Binary files differ new file mode 100755 index 0000000..4e2ac17 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879 diff --git a/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d b/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d new file mode 100644 index 0000000..f91b92f --- /dev/null +++ b/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d @@ -0,0 +1,5 @@ +/home/carpenat/devel/learning-rust/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879: src/main.rs + +/home/carpenat/devel/learning-rust/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d: src/main.rs + +src/main.rs: diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/1gfyn0tm39r747ad.o b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/1gfyn0tm39r747ad.oBinary files differ new file mode 100644 index 0000000..f32ee36 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/1gfyn0tm39r747ad.o diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/23eb85ricvscbd12.o b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/23eb85ricvscbd12.oBinary files differ new file mode 100644 index 0000000..af6cc3b --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/23eb85ricvscbd12.o diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/2sdrl1lm2yvj0gxu.o b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/2sdrl1lm2yvj0gxu.oBinary files differ new file mode 100644 index 0000000..41b97d1 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/2sdrl1lm2yvj0gxu.o diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/30gce4cd2hq0uwsp.o b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/30gce4cd2hq0uwsp.oBinary files differ new file mode 100644 index 0000000..710891c --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/30gce4cd2hq0uwsp.o diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/3iheyheinuvmg6ds.o b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/3iheyheinuvmg6ds.oBinary files differ new file mode 100644 index 0000000..12ea699 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/3iheyheinuvmg6ds.o diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/4hodvrxy8ugbncf7.o b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/4hodvrxy8ugbncf7.oBinary files differ new file mode 100644 index 0000000..bb0d9b2 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/4hodvrxy8ugbncf7.o diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/5oo0hnz9c2qo9ox.o b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/5oo0hnz9c2qo9ox.oBinary files differ new file mode 100644 index 0000000..70db773 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/5oo0hnz9c2qo9ox.o diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/dep-graph.bin b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/dep-graph.binBinary files differ new file mode 100644 index 0000000..8e2b895 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/dep-graph.bin diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/query-cache.bin b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/query-cache.binBinary files differ new file mode 100644 index 0000000..ef70a51 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/query-cache.bin diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/work-products.bin b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/work-products.binBinary files differ new file mode 100644 index 0000000..fd9cb86 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/work-products.bin diff --git a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi.lock b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi.lock new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi.lock diff --git a/advanced/unsafe-rust/target/debug/unsafe-rust b/advanced/unsafe-rust/target/debug/unsafe-rustBinary files differ new file mode 100755 index 0000000..4e2ac17 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/unsafe-rust diff --git a/advanced/unsafe-rust/target/debug/unsafe-rust.d b/advanced/unsafe-rust/target/debug/unsafe-rust.d new file mode 100644 index 0000000..4a06b79 --- /dev/null +++ b/advanced/unsafe-rust/target/debug/unsafe-rust.d @@ -0,0 +1 @@ +/home/carpenat/devel/learning-rust/advanced/unsafe-rust/target/debug/unsafe-rust: /home/carpenat/devel/learning-rust/advanced/unsafe-rust/src/main.rs |