From ef1bf4921ee4127d461eec03a14c9070d193345c Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 11 Feb 2019 16:59:01 -0500 Subject: Init. --- collections/.gitignore | 2 + collections/Cargo.lock | 4 + collections/Cargo.toml | 7 ++ collections/src/main.rs | 133 ++++++++++++++++++++++++++++ control/.gitignore | 2 + control/Cargo.lock | 4 + control/Cargo.toml | 7 ++ control/src/main.rs | 7 ++ employees | 1 + enums/.gitignore | 2 + enums/Cargo.lock | 4 + enums/Cargo.toml | 7 ++ enums/src/main.rs | 12 +++ enums/src/main1.rs | 48 ++++++++++ errors/.gitignore | 2 + errors/Cargo.lock | 4 + errors/Cargo.toml | 7 ++ errors/src/main.rs | 38 ++++++++ fibonacci/.gitignore | 2 + fibonacci/Cargo.lock | 4 + fibonacci/Cargo.toml | 7 ++ fibonacci/src/main.rs | 31 +++++++ ftoctof/.gitignore | 2 + ftoctof/Cargo.lock | 4 + ftoctof/Cargo.toml | 7 ++ ftoctof/src/main.rs | 43 +++++++++ functions/.gitignore | 2 + functions/Cargo.lock | 4 + functions/Cargo.toml | 7 ++ functions/src/main.rs | 10 +++ generics/.gitignore | 2 + generics/Cargo.lock | 4 + generics/Cargo.toml | 7 ++ generics/src/main.rs | 68 ++++++++++++++ guessing-game/.gitignore | 2 + guessing-game/Cargo.lock | 80 +++++++++++++++++ guessing-game/Cargo.toml | 8 ++ guessing-game/src/main.rs | 36 ++++++++ hello_world/hello_cargo/.gitignore | 2 + hello_world/hello_cargo/Cargo.lock | 4 + hello_world/hello_cargo/Cargo.toml | 7 ++ hello_world/hello_cargo/src/main.rs | 3 + hello_world/main.exe | Bin 0 -> 4129619 bytes hello_world/main.rs | 4 + horcrux/.gitignore | 2 + horcrux/Cargo.toml | 7 ++ horcrux/src/main.rs | 3 + mathsssss/.gitignore | 2 + mathsssss/Cargo.lock | 4 + mathsssss/Cargo.toml | 7 ++ mathsssss/src/main.rs | 61 +++++++++++++ ownership/.gitignore | 2 + ownership/Cargo.lock | 4 + ownership/Cargo.toml | 7 ++ ownership/src/main.rs | 51 +++++++++++ packages/my-project/.gitignore | 2 + packages/my-project/Cargo.lock | 4 + packages/my-project/Cargo.toml | 7 ++ packages/my-project/src/main.rs | 82 +++++++++++++++++ packages/my-project/src/sound.rs | 1 + packages/my-project/src/sound/instrument.rs | 3 + piglatin/.gitignore | 2 + piglatin/Cargo.lock | 4 + piglatin/Cargo.toml | 7 ++ piglatin/src/main.rs | 38 ++++++++ rust-csci415 | 1 + structs/.gitignore | 2 + structs/Cargo.lock | 4 + structs/Cargo.toml | 7 ++ structs/src/main.rs | 32 +++++++ structs/src/main.rs.bak | 36 ++++++++ traits/.gitignore | 2 + traits/Cargo.lock | 4 + traits/Cargo.toml | 7 ++ traits/src/main.rs | 114 ++++++++++++++++++++++++ variables/.gitignore | 2 + variables/Cargo.lock | 4 + variables/Cargo.toml | 7 ++ variables/src/main.rs | 6 ++ xmas/.gitignore | 2 + xmas/Cargo.lock | 4 + xmas/Cargo.toml | 7 ++ xmas/out.txt | 114 ++++++++++++++++++++++++ xmas/src/main.rs | 42 +++++++++ 84 files changed, 1338 insertions(+) create mode 100755 collections/.gitignore create mode 100755 collections/Cargo.lock create mode 100755 collections/Cargo.toml create mode 100755 collections/src/main.rs create mode 100755 control/.gitignore create mode 100755 control/Cargo.lock create mode 100755 control/Cargo.toml create mode 100755 control/src/main.rs create mode 160000 employees create mode 100755 enums/.gitignore create mode 100755 enums/Cargo.lock create mode 100755 enums/Cargo.toml create mode 100755 enums/src/main.rs create mode 100755 enums/src/main1.rs create mode 100644 errors/.gitignore create mode 100644 errors/Cargo.lock create mode 100644 errors/Cargo.toml create mode 100644 errors/src/main.rs create mode 100644 fibonacci/.gitignore create mode 100644 fibonacci/Cargo.lock create mode 100644 fibonacci/Cargo.toml create mode 100644 fibonacci/src/main.rs create mode 100644 ftoctof/.gitignore create mode 100644 ftoctof/Cargo.lock create mode 100644 ftoctof/Cargo.toml create mode 100644 ftoctof/src/main.rs create mode 100755 functions/.gitignore create mode 100755 functions/Cargo.lock create mode 100755 functions/Cargo.toml create mode 100755 functions/src/main.rs create mode 100644 generics/.gitignore create mode 100644 generics/Cargo.lock create mode 100644 generics/Cargo.toml create mode 100644 generics/src/main.rs create mode 100755 guessing-game/.gitignore create mode 100755 guessing-game/Cargo.lock create mode 100755 guessing-game/Cargo.toml create mode 100755 guessing-game/src/main.rs create mode 100755 hello_world/hello_cargo/.gitignore create mode 100755 hello_world/hello_cargo/Cargo.lock create mode 100755 hello_world/hello_cargo/Cargo.toml create mode 100755 hello_world/hello_cargo/src/main.rs create mode 100755 hello_world/main.exe create mode 100755 hello_world/main.rs create mode 100755 horcrux/.gitignore create mode 100755 horcrux/Cargo.toml create mode 100755 horcrux/src/main.rs create mode 100644 mathsssss/.gitignore create mode 100644 mathsssss/Cargo.lock create mode 100644 mathsssss/Cargo.toml create mode 100644 mathsssss/src/main.rs create mode 100755 ownership/.gitignore create mode 100755 ownership/Cargo.lock create mode 100755 ownership/Cargo.toml create mode 100755 ownership/src/main.rs create mode 100755 packages/my-project/.gitignore create mode 100755 packages/my-project/Cargo.lock create mode 100755 packages/my-project/Cargo.toml create mode 100755 packages/my-project/src/main.rs create mode 100755 packages/my-project/src/sound.rs create mode 100755 packages/my-project/src/sound/instrument.rs create mode 100644 piglatin/.gitignore create mode 100644 piglatin/Cargo.lock create mode 100644 piglatin/Cargo.toml create mode 100644 piglatin/src/main.rs create mode 160000 rust-csci415 create mode 100755 structs/.gitignore create mode 100755 structs/Cargo.lock create mode 100755 structs/Cargo.toml create mode 100755 structs/src/main.rs create mode 100755 structs/src/main.rs.bak create mode 100644 traits/.gitignore create mode 100644 traits/Cargo.lock create mode 100644 traits/Cargo.toml create mode 100644 traits/src/main.rs create mode 100755 variables/.gitignore create mode 100755 variables/Cargo.lock create mode 100755 variables/Cargo.toml create mode 100755 variables/src/main.rs create mode 100644 xmas/.gitignore create mode 100644 xmas/Cargo.lock create mode 100644 xmas/Cargo.toml create mode 100644 xmas/out.txt create mode 100644 xmas/src/main.rs diff --git a/collections/.gitignore b/collections/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/collections/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/collections/Cargo.lock b/collections/Cargo.lock new file mode 100755 index 0000000..14856a6 --- /dev/null +++ b/collections/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "collections" +version = "0.1.0" + diff --git a/collections/Cargo.toml b/collections/Cargo.toml new file mode 100755 index 0000000..8460a0c --- /dev/null +++ b/collections/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "collections" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/collections/src/main.rs b/collections/src/main.rs new file mode 100755 index 0000000..7257ce2 --- /dev/null +++ b/collections/src/main.rs @@ -0,0 +1,133 @@ +use std::collections::HashMap; + +fn main() { + //let v: Vec = Vec::new(); + //let mut v = vec![1, 2, 3, 4, 5]; + + // let third: &i32 = &v[2]; + // println!("the third element is {}", third); + // + // match v.get(2) { + // Some(third) => println!("third is {}", third), + // None => println!("no third element"), + // } + // + // for i in &mut v { + // *i += 10; + // println!("{}", *i); + // } + // for i in &v { + // println!("{}", i); + // } + + // enum SpreadsheetCell { + // Int(i32), + // Float(f64), + // Text(String), + // } + // + // let row = vec![ + // SpreadsheetCell::Int(3), + // SpreadsheetCell::Text(String::from("blue")), + // SpreadsheetCell::Float(10.12), + // ]; + + //let mut s = String::new(); + + //let data = "initial contents"; + //let s = data.to_string(); + //dbg!(s); + //let s = "initial contents".to_string(); + //dbg!(s); + //let s = String::from("initial contents"); + //dbg!(s); + + //let mut s = String::from("hello"); + //s.push_str(" world"); + + //let mut s1 = String::from("hello"); + //let s2 = " world"; + //s1.push_str(s2); + //s1.push('!'); + //dbg!(s1); + + //let s1 = String::from("Hello "); + //let s2 = String::from("world"); + //let s3 = s1 + &s2 + "!"; + //dbg!(s3); + + //let my_result: Result<&'static str, &'static str> = Ok("test"); + + //dbg!(my_result); + + //let s1 = String::from("tic"); + //let s2 = String::from("tac"); + //let s3 = String::from("toe"); + + //let s = format!("{}-{}-{}", s1, s2, s3); + //dbg!(s); + + //let s = String::from("welcome to hello world"); + //let len = s.len(); + //dbg!(len); + //let s1 = s[0..15].to_string(); + //dbg!(s1); + + //for c in "hello world".bytes() { + // dbg!(c); + //} + + //let mut scores = HashMap::new(); + //scores.insert(String::from("Blue"), 10); + //scores.insert(String::from("Yellow"), 50); + //scores.insert(String::from("Blue"), 20); + //dbg!(scores); + + //let teams = vec![String::from("blue"), String::from("yellow")]; + //let initial_scores = vec![10, 20]; + //let scores: HashMap<_, _> = teams.iter().zip(initial_scores.iter()).collect(); + //dbg!(scores); + + //let field_name = String::from("favorite color"); + //let field_value = String::from("blue"); + + //let mut map = HashMap::new(); + //map.insert(field_name, field_value); + + //let mut scores = HashMap::new(); + //scores.insert(String::from("blue"), 10); + //scores.insert(String::from("yellow"), 50); + + //let team_name = String::from("blue"); + //let score = scores.get(&team_name); + + //dbg!(team_name); + //dbg!(score); + + //let mut scores = HashMap::new(); + + //scores.insert(String::from("blue"), 10); + //scores.insert(String::from("yellow"), 50); + + //for (key, value) in &scores { + // dbg!(key); + // dbg!(value); + //} + + // let mut scores = HashMap::new(); + // scores.insert(String::from("blue"), 10); + // scores.entry(String::from("yellow")).or_insert(50); + // scores.entry(String::from("blue")).or_insert(50); + // dbg!(scores); + + //let text = "when in the course of himan events it becomes necessary for one people to dissolve the political bands which have connected them with another and to assume among the powers of the earth the separate and equal station to which thelaws of nature and of nature's God entitle them a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation"; + //let mut map = HashMap::new(); + + //for word in text.split_whitespace() { + // let count = map.entry(word).or_insert(0); + // *count += 1; + //} + + //dbg!(map); + +} diff --git a/control/.gitignore b/control/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/control/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/control/Cargo.lock b/control/Cargo.lock new file mode 100755 index 0000000..81a9861 --- /dev/null +++ b/control/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "control" +version = "0.1.0" + diff --git a/control/Cargo.toml b/control/Cargo.toml new file mode 100755 index 0000000..70b4d1d --- /dev/null +++ b/control/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "control" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/control/src/main.rs b/control/src/main.rs new file mode 100755 index 0000000..0b74683 --- /dev/null +++ b/control/src/main.rs @@ -0,0 +1,7 @@ +fn main() { + + for number in (1..1000).rev() { + println!("{}", number); + } +} + diff --git a/employees b/employees new file mode 160000 index 0000000..db1600d --- /dev/null +++ b/employees @@ -0,0 +1 @@ +Subproject commit db1600def1822679e51e8917c8b4731c8f477812 diff --git a/enums/.gitignore b/enums/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/enums/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/enums/Cargo.lock b/enums/Cargo.lock new file mode 100755 index 0000000..d3577dd --- /dev/null +++ b/enums/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "enums" +version = "0.1.0" + diff --git a/enums/Cargo.toml b/enums/Cargo.toml new file mode 100755 index 0000000..99fb9fc --- /dev/null +++ b/enums/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "enums" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/enums/src/main.rs b/enums/src/main.rs new file mode 100755 index 0000000..b8c61de --- /dev/null +++ b/enums/src/main.rs @@ -0,0 +1,12 @@ +fn main() { + let some_u8_value = Some(3u8); +// match some_u8_value { +// Some(3) => println!("three"), +// _ => (), +// } + + if let Some(3) = some_u8_value { + println!("three"); + } + +} diff --git a/enums/src/main1.rs b/enums/src/main1.rs new file mode 100755 index 0000000..9670693 --- /dev/null +++ b/enums/src/main1.rs @@ -0,0 +1,48 @@ +#[derive(Debug)] +enum UsState { + NY, + VA, + NC, +} + +enum Coin { + Penny, + Nickel, + Dime, + Quarter(UsState), +} + +impl Coin { + + fn value_in_cents(self) -> u32 { + + match self { + Coin::Penny => { + println!("lucky penny"); + 1 + }, + Coin::Nickel => 5, + Coin::Dime => 10, + Coin::Quarter(state) => { + println!("State quarter from {:?}", state); + 25 + }, + + } + + } +} + +fn plus_one(x: Option) -> Option { + + match x { + None => None, + Some(i) => Some(i + 1), + } +} + +fn main() { + let five = Some(5); + let six = plus_one(five); + let none = plus_one(None); +} diff --git a/errors/.gitignore b/errors/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/errors/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/errors/Cargo.lock b/errors/Cargo.lock new file mode 100644 index 0000000..749984f --- /dev/null +++ b/errors/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "errors" +version = "0.1.0" + diff --git a/errors/Cargo.toml b/errors/Cargo.toml new file mode 100644 index 0000000..e531a1b --- /dev/null +++ b/errors/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "errors" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/errors/src/main.rs b/errors/src/main.rs new file mode 100644 index 0000000..1250677 --- /dev/null +++ b/errors/src/main.rs @@ -0,0 +1,38 @@ +use std::io; +use std::io::Read; +use std::fs::File; +//use std::io::ErrorKind; + +fn read_username_from_file() -> Result { +// let f = File::open("hello.txt"); +// let mut f = match f { +// Ok(file) => file, +// Err(e) => return Err(e), +// }; +// let mut s = String::new(); +// match f.read_to_string(&mut s) { +// Ok(_) => Ok(s), +// Err(e) => Err(e), +// } + let mut s = String::new(); + File::open("hello.txt")?.read_to_string(&mut s)?; + Ok(s) +} +fn main() { +// let f = File::open("hello.txt").map_err(|error| { +// if error.kind() == ErrorKind::NotFound { +// File::create("hello.txt").unwrap_or_else(|error| { +// panic!("Could not create file: {:?}", error); +// }) +// } +// else { +// panic!("Problem opening file: {:?}", error); +// } +// }); + + //let f = File::open("hello.txt").unwrap(); + + //let f = File::open("hello.txt").expect("failed to open hello.txt"); + + dbg!(read_username_from_file()); +} diff --git a/fibonacci/.gitignore b/fibonacci/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/fibonacci/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/fibonacci/Cargo.lock b/fibonacci/Cargo.lock new file mode 100644 index 0000000..06aa71c --- /dev/null +++ b/fibonacci/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "fibonacci" +version = "0.1.0" + diff --git a/fibonacci/Cargo.toml b/fibonacci/Cargo.toml new file mode 100644 index 0000000..60bf227 --- /dev/null +++ b/fibonacci/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "fibonacci" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/fibonacci/src/main.rs b/fibonacci/src/main.rs new file mode 100644 index 0000000..0b4f22b --- /dev/null +++ b/fibonacci/src/main.rs @@ -0,0 +1,31 @@ +use std::env; + +fn fib(n: u32) -> u32 { + + if n == 0 || n == 1 { + return n; + } + else { + return fib(n - 1) + fib(n - 2); + } + +} + +fn main() { + // grab iterations + let iterations: u32 = match env::args().nth(1) { + Some(s) => { + let attempt: u32 = s.trim().parse() + .expect("error: could not parse iterations"); + attempt + }, + None => { + eprintln!("error: usage: fibonacci [iterations]"); + return; + }, + }; + + for i in 0..iterations { + println!("{}", fib(i)); + } +} diff --git a/ftoctof/.gitignore b/ftoctof/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/ftoctof/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/ftoctof/Cargo.lock b/ftoctof/Cargo.lock new file mode 100644 index 0000000..e716471 --- /dev/null +++ b/ftoctof/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "ftoctof" +version = "0.1.0" + diff --git a/ftoctof/Cargo.toml b/ftoctof/Cargo.toml new file mode 100644 index 0000000..544eb2b --- /dev/null +++ b/ftoctof/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "ftoctof" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/ftoctof/src/main.rs b/ftoctof/src/main.rs new file mode 100644 index 0000000..6425344 --- /dev/null +++ b/ftoctof/src/main.rs @@ -0,0 +1,43 @@ +use std::env; + +fn print_usage() { + eprintln!("error: usage: ftoctof [degrees] [f|c]"); +} + +fn main() { + // grab degrees value + let degrees: f32 = match env::args().nth(1) { + Some(s) => { + let attempt: f32 = s.trim().parse() + .expect("error: could not parse degrees"); + attempt + }, + None => { + print_usage(); + return; + }, + }; + + // grab scale identifier + let scale = match env::args().nth(2) { + Some(s) => s.to_lowercase(), + None => { + print_usage(); + return; + }, + }; + + // compute and print conversion + if scale == "f" { + let result: f32 = (degrees - 32.0) * 5.0 / 9.0; + println!("{} degrees fahrenheight is {} degrees celcius.", degrees, result); + } + else if scale == "c" { + let result: f32 = degrees * 9.0 / 5.0 + 32.0; + println!("{} degrees celcius is {} degrees fahrenheight.", degrees, result); + } + else { + print_usage(); + } + +} diff --git a/functions/.gitignore b/functions/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/functions/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/functions/Cargo.lock b/functions/Cargo.lock new file mode 100755 index 0000000..89a654d --- /dev/null +++ b/functions/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "functions" +version = "0.1.0" + diff --git a/functions/Cargo.toml b/functions/Cargo.toml new file mode 100755 index 0000000..656b779 --- /dev/null +++ b/functions/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "functions" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/functions/src/main.rs b/functions/src/main.rs new file mode 100755 index 0000000..43284ff --- /dev/null +++ b/functions/src/main.rs @@ -0,0 +1,10 @@ +fn main() { + let x = plus_one(5); + + println!("The value of x is {}", x); +} + +fn plus_one(x: i32) -> i32 { + x + 1 +} + diff --git a/generics/.gitignore b/generics/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/generics/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/generics/Cargo.lock b/generics/Cargo.lock new file mode 100644 index 0000000..3ddbc8c --- /dev/null +++ b/generics/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "generics" +version = "0.1.0" + diff --git a/generics/Cargo.toml b/generics/Cargo.toml new file mode 100644 index 0000000..5529f73 --- /dev/null +++ b/generics/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "generics" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/generics/src/main.rs b/generics/src/main.rs new file mode 100644 index 0000000..e41d6f5 --- /dev/null +++ b/generics/src/main.rs @@ -0,0 +1,68 @@ +//struct Point { +// x: T, +// y: U, +//} + +//impl Point { +// fn x(&self) -> &T { +// &self.x +// } +// +// fn y(&self) -> &T { +// &self.y +// } + +// fn mixup(self, other: Point) -> Point { +// Point { +// x: self.x, +// y: other.y, +// } +// } +//} + +fn largest(list: &[T]) -> T { + let mut largest = list[0]; + + for &item in list.iter() { + + if item > largest { + largest = item; + } + + } + + largest +} + +//enum Option_i32 { +// Some(i32), +// None, +//} +// +//enum Option_f64 { +// Some(f64), +// None, +//} + +fn main() { + let number_list = vec![34, 50, 25, 100, 65]; + dbg!(largest(&number_list)); + let char_list = vec!['h', 'e', 'l', 'l', 'o']; + dbg!(largest(&char_list)); +// let integer = Point { x: 5, y: 10 }; +// let float = Point { x: 5.0, y: 10.0 }; + +// let p = Point { x: 5.0, y: 10.5 }; +// dbg!(p.x()); +// dbg!(p.y()); + +// let p1 = Point { x: 5, y: 10.4 }; +// let p2 = Point { x: "Hello", y: 'c' }; +// let p3 = p1.mixup(p2); +// +// dbg!(p3.x); +// dbg!(p3.y); + +// let integer = Option_i32::Some(5); +// let float = Option_f64::Some(5.0); +} diff --git a/guessing-game/.gitignore b/guessing-game/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/guessing-game/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/guessing-game/Cargo.lock b/guessing-game/Cargo.lock new file mode 100755 index 0000000..c25e3df --- /dev/null +++ b/guessing-game/Cargo.lock @@ -0,0 +1,80 @@ +[[package]] +name = "bitflags" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "fuchsia-zircon" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", + "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "fuchsia-zircon-sys" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "guessing-game" +version = "0.1.0" +dependencies = [ + "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "libc" +version = "0.2.45" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "rand" +version = "0.3.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "rand" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "winapi" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[metadata] +"checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12" +"checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" +"checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" +"checksum libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)" = "2d2857ec59fadc0773853c664d2d18e7198e83883e7060b63c924cb077bd5c74" +"checksum rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)" = "15a732abf9d20f0ad8eeb6f909bf6868722d9a06e1e50802b6a70351f40b4eb1" +"checksum rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "8356f47b32624fef5b3301c1be97e5944ecdd595409cc5da11d05f211db6cfbd" +"checksum winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "92c1eb33641e276cfa214a0522acad57be5c56b10cb348b3c5117db75f3ac4b0" +"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/guessing-game/Cargo.toml b/guessing-game/Cargo.toml new file mode 100755 index 0000000..8238fc5 --- /dev/null +++ b/guessing-game/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "guessing-game" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] +rand = "0.3.14" diff --git a/guessing-game/src/main.rs b/guessing-game/src/main.rs new file mode 100755 index 0000000..38dd28d --- /dev/null +++ b/guessing-game/src/main.rs @@ -0,0 +1,36 @@ +use std::io; +use std::cmp::Ordering; +use rand::Rng; + +fn main() { + println!("Guess the number!"); + + let secret_number = rand::thread_rng().gen_range(1, 101); + //println!("The secret number is: {}", secret_number); + + loop { + println!("Enter a guess."); + + let mut guess = String::new(); + + io::stdin().read_line(&mut guess) + .expect("Failed to read line."); + + let guess: u32 = match guess.trim().parse() { + Ok(num) => num, + Err(_) => continue, + }; + + println!("You guessed: {}", guess); + + match guess.cmp(&secret_number) { + Ordering::Less => println!("Too small!"), + Ordering::Greater => println!("Too big!"), + Ordering::Equal => { + println!("You win!"); + break; + } + } + } + +} diff --git a/hello_world/hello_cargo/.gitignore b/hello_world/hello_cargo/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/hello_world/hello_cargo/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/hello_world/hello_cargo/Cargo.lock b/hello_world/hello_cargo/Cargo.lock new file mode 100755 index 0000000..bd8a836 --- /dev/null +++ b/hello_world/hello_cargo/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "hello_cargo" +version = "0.1.0" + diff --git a/hello_world/hello_cargo/Cargo.toml b/hello_world/hello_cargo/Cargo.toml new file mode 100755 index 0000000..61d091a --- /dev/null +++ b/hello_world/hello_cargo/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "hello_cargo" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/hello_world/hello_cargo/src/main.rs b/hello_world/hello_cargo/src/main.rs new file mode 100755 index 0000000..e7a11a9 --- /dev/null +++ b/hello_world/hello_cargo/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/hello_world/main.exe b/hello_world/main.exe new file mode 100755 index 0000000..8bb285b Binary files /dev/null and b/hello_world/main.exe differ diff --git a/hello_world/main.rs b/hello_world/main.rs new file mode 100755 index 0000000..3d46bbe --- /dev/null +++ b/hello_world/main.rs @@ -0,0 +1,4 @@ +fn main() { + println!("hello world!"); +} + diff --git a/horcrux/.gitignore b/horcrux/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/horcrux/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/horcrux/Cargo.toml b/horcrux/Cargo.toml new file mode 100755 index 0000000..f6996ac --- /dev/null +++ b/horcrux/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "horcrux" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/horcrux/src/main.rs b/horcrux/src/main.rs new file mode 100755 index 0000000..e7a11a9 --- /dev/null +++ b/horcrux/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/mathsssss/.gitignore b/mathsssss/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/mathsssss/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/mathsssss/Cargo.lock b/mathsssss/Cargo.lock new file mode 100644 index 0000000..7ef6f32 --- /dev/null +++ b/mathsssss/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "mathsssss" +version = "0.1.0" + diff --git a/mathsssss/Cargo.toml b/mathsssss/Cargo.toml new file mode 100644 index 0000000..201c096 --- /dev/null +++ b/mathsssss/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "mathsssss" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/mathsssss/src/main.rs b/mathsssss/src/main.rs new file mode 100644 index 0000000..991590b --- /dev/null +++ b/mathsssss/src/main.rs @@ -0,0 +1,61 @@ +use std::env; +use std::collections::HashMap; + +fn calc_mean(numbers: &Vec) -> f32 { + let sum: i32 = numbers.iter().sum(); + sum as f32 / numbers.len() as f32 +} + +fn calc_median(numbers: &Vec) -> i32 { + numbers[numbers.len() / 2] +} + +fn calc_mode(numbers: &Vec) -> i32 { + let mut counts: HashMap = HashMap::new(); + + for each in numbers { + let count = counts.entry(*each).or_insert(0); + *count += 1; + } + + let mut most: i32 = 0; + let mut result: i32 = 0; + + for (key, val) in counts.iter() { + + if val > &most { + most = *val; + result = *key; + } + } + + if most <= 1 { + 0 + } + else { + result + } + +} + +fn main() { + // grab numbers + let mut numbers: Vec = Vec::new(); + + for arg in env::args().skip(1) { + let number: i32 = arg.trim().parse() + .expect("error: could not parse arg"); + numbers.push(number); + } + + // sort list (mostly for median) + numbers.sort_by(|a, b| a.partial_cmp(b).unwrap()); + + // calculate and print results + let mean: f32 = calc_mean(&numbers); + println!("mean: {}", mean); + let median: i32 = calc_median(&numbers); + println!("median: {}", median); + let mode: i32 = calc_mode(&numbers); + println!("mode: {}", mode); +} diff --git a/ownership/.gitignore b/ownership/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/ownership/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/ownership/Cargo.lock b/ownership/Cargo.lock new file mode 100755 index 0000000..9e4e62d --- /dev/null +++ b/ownership/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "ownership" +version = "0.1.0" + diff --git a/ownership/Cargo.toml b/ownership/Cargo.toml new file mode 100755 index 0000000..f21df45 --- /dev/null +++ b/ownership/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "ownership" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/ownership/src/main.rs b/ownership/src/main.rs new file mode 100755 index 0000000..1684f55 --- /dev/null +++ b/ownership/src/main.rs @@ -0,0 +1,51 @@ +fn main() { + //let words = String::from("hello there world"); + //let words = "hello there world"; + //let first = first_word(&words); + //let second = second_word(&words); + //let last = last_word(&words); + //println!("{}\n{}", first, last); + let a = [1, 2, 3, 4, 5]; + let slice = &a[1..4]; + + for each in slice { + println!("{}", each); + } +} + +fn first_word(s: &str) -> &str { + let bytes = s.as_bytes(); + + for (i, &item) in bytes.iter().enumerate() { + if item == b' ' { + return &s[..i]; + } + } + + &s +} + +fn second_word(s: &str) -> &str { + let bytes = s.as_bytes(); + + for (i, &item) in bytes.iter().enumerate() { + if item == b' ' { + return &s[i + 1..]; + } + } + + &s +} + +fn last_word(s: &str) -> &str { + let bytes = s.as_bytes(); + let mut result = ""; + + for (i, &item) in bytes.iter().enumerate() { + if item == b' ' { + result = &s[i + 1..]; + } + } + + &result +} diff --git a/packages/my-project/.gitignore b/packages/my-project/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/packages/my-project/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/packages/my-project/Cargo.lock b/packages/my-project/Cargo.lock new file mode 100755 index 0000000..9679152 --- /dev/null +++ b/packages/my-project/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "my-project" +version = "0.1.0" + diff --git a/packages/my-project/Cargo.toml b/packages/my-project/Cargo.toml new file mode 100755 index 0000000..6edcb51 --- /dev/null +++ b/packages/my-project/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "my-project" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/packages/my-project/src/main.rs b/packages/my-project/src/main.rs new file mode 100755 index 0000000..486ae46 --- /dev/null +++ b/packages/my-project/src/main.rs @@ -0,0 +1,82 @@ +mod sound; + +fn main() { + crate::sound::instrument::clarinet(); + sound::instrument::clarinet(); +} +//mod sound { +// pub mod instrument { +// pub mod woodwind { +// +// pub fn clarinet() { +// println!("clarinet"); +// } +// +// } +// +// pub mod string { +// +// pub fn guitar() { +// println!("guitar"); +// super::woodwind::clarinet(); +// } +// +// } +// +// } +// +// mod voice { +// } +// +//} +// +//mod performance_group { +// pub use crate::sound::instrument::woodwind; +// +// pub fn clarinet_trio() { +// woodwind::clarinet(); +// woodwind::clarinet(); +// woodwind::clarinet(); +// } +// +//} +// +//fn main() { +// performance_group::clarinet_trio(); +// performance_group::woodwind::clarinet(); +//} + +//mod plant { +// pub struct Vegetable { +// pub name: String, +// id: i32, +// } +// +// impl Vegetable { +// pub fn new(name: &str) -> Vegetable { +// Vegetable { +// name: String::from(name), +// id: 1, +// } +// } +// } +//} +// +//fn main() { +// let mut v = plant::Vegetable::new("squash"); +// v.name = String::from("butternut squash"); +// println!("{} are delicious", v.name); +// //println!("The id is: {}", v.id); +//} + +//mod menu { +// pub enum Appetizer { +// Soup, +// Salad, +// } +//} +// +//fn main() { +// let order1 = menu::Appetizer::Soup; +// let order2 = menu::Appetizer::Salad; +//} diff --git a/packages/my-project/src/sound.rs b/packages/my-project/src/sound.rs new file mode 100755 index 0000000..866ac56 --- /dev/null +++ b/packages/my-project/src/sound.rs @@ -0,0 +1 @@ +pub mod instrument; diff --git a/packages/my-project/src/sound/instrument.rs b/packages/my-project/src/sound/instrument.rs new file mode 100755 index 0000000..727784e --- /dev/null +++ b/packages/my-project/src/sound/instrument.rs @@ -0,0 +1,3 @@ +pub fn clarinet() { + println!("clarinet"); +} diff --git a/piglatin/.gitignore b/piglatin/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/piglatin/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/piglatin/Cargo.lock b/piglatin/Cargo.lock new file mode 100644 index 0000000..67b9b02 --- /dev/null +++ b/piglatin/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "piglatin" +version = "0.1.0" + diff --git a/piglatin/Cargo.toml b/piglatin/Cargo.toml new file mode 100644 index 0000000..7d62333 --- /dev/null +++ b/piglatin/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "piglatin" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/piglatin/src/main.rs b/piglatin/src/main.rs new file mode 100644 index 0000000..c5d9813 --- /dev/null +++ b/piglatin/src/main.rs @@ -0,0 +1,38 @@ +use std::env; + +fn print_usage() { + eprintln!("error: usage: piglatin [word] [words]..."); +} + +fn main() { + + for mut word in env::args().skip(1) { + // grab first letter + let first = match word.get(0..1) { + Some(s) => s, + None => { + print_usage(); + return; + } + }; + + // check if first letter is vowel or consonant + // if vowel, append -hay and print + // if consonant, appent first letter and -ay and print + match first { + "a" | "e" | "i" | "o" | "u" | + "A" | "E" | "I" | "O" | "U" => { + print!("{}-hay ", word); + }, + _ => { + let rest = match word.get(1..) { + Some(s) => s, + None => "", + }; + print!("{}-{}ay ", rest, first); + }, + } + } + + println!(); +} diff --git a/rust-csci415 b/rust-csci415 new file mode 160000 index 0000000..eb478e1 --- /dev/null +++ b/rust-csci415 @@ -0,0 +1 @@ +Subproject commit eb478e1594d45a0a73a634a0b3b013d7799b17c9 diff --git a/structs/.gitignore b/structs/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/structs/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/structs/Cargo.lock b/structs/Cargo.lock new file mode 100755 index 0000000..25b0b72 --- /dev/null +++ b/structs/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "structs" +version = "0.1.0" + diff --git a/structs/Cargo.toml b/structs/Cargo.toml new file mode 100755 index 0000000..e61ea2a --- /dev/null +++ b/structs/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "structs" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/structs/src/main.rs b/structs/src/main.rs new file mode 100755 index 0000000..cf93866 --- /dev/null +++ b/structs/src/main.rs @@ -0,0 +1,32 @@ +#[derive(Debug)] +struct Rectangle { + width: u32, + height: u32, +} + +impl Rectangle { + + fn area(&self) -> u32 { + self.width * self.height + } + + fn can_hold(&self, other: &Rectangle ) -> bool { + self.width > other.width && self.height > other.height + } + +} + +fn main() { + let rect1 = Rectangle { + width: 30, + height: 50, + }; + let rect2 = Rectangle { + width: 3, + height: 5, + }; + println!("{:#?}", rect1); + println!("The area of the rectangle is {} square pixels.", rect1.area()); + println!("{}", rect1.can_hold(&rect2)); +} + diff --git a/structs/src/main.rs.bak b/structs/src/main.rs.bak new file mode 100755 index 0000000..361b225 --- /dev/null +++ b/structs/src/main.rs.bak @@ -0,0 +1,36 @@ +struct User { + username: String, + email: String, + sign_in_count: u64, + active: bool, +} + +fn main() { +// let mut user1 = User { +// email: String::from("test@tester.net"), +// username: String::from("testytester"), +// active: true, +// sign_in_count: 999, +// }; +// let user1 = build_user(String::from("dennis.nedry@adp.com"), String::from("nedryland")); +// let user2 = User { +// email: String::from("john.hammond@adp.com"), +// username: String::from("spare_no_expense"), +// ..user1 +// }; +// println!("{} {} {} {}", user2.email, user2.username, user2.active, user2.sign_in_count); + + struct Color(u32, u32, u32); + struct Point(i32, i32, i32); + let black = Color(0, 0, 0); + let origin = Point(0, -1, 0); +} + +fn build_user(email: String, username: String) -> User { + User { + email, + username, + active: true, + sign_in_count: 1, + } +} diff --git a/traits/.gitignore b/traits/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/traits/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/traits/Cargo.lock b/traits/Cargo.lock new file mode 100644 index 0000000..3eff52b --- /dev/null +++ b/traits/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "traits" +version = "0.1.0" + diff --git a/traits/Cargo.toml b/traits/Cargo.toml new file mode 100644 index 0000000..461bdcd --- /dev/null +++ b/traits/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "traits" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/traits/src/main.rs b/traits/src/main.rs new file mode 100644 index 0000000..770caa9 --- /dev/null +++ b/traits/src/main.rs @@ -0,0 +1,114 @@ +use std::fmt::Display; + +struct Pair { + x: T, + y: T, +} + +impl Pair { + fn new(x: T, y: T) -> Self { + Self { + x, + y, + } + } +} + +impl Pair { + fn cmp_display(&self) { + if self.x >= self.y { + println!("{}", self.x); + } + else { + println!("{}", self.y); + } + } +} + +pub trait Summary { + fn summarize(&self) -> String { + format!("(read more from {}...)", self.summarize_author()) + } + + fn summarize_author(&self) -> String; +} + +pub struct NewsArticle { + pub headline: String, + pub location: String, + pub author: String, + pub content: String, +} + +impl Summary for NewsArticle { +// fn summarize(&self) -> String { +// format!("{}, by {} ({})", self.headline, self.author, self.location) +// } + + fn summarize_author(&self) -> String { + format!("{}", self.author) + } + +} + +pub struct Tweet { + pub username: String, + pub content: String, + pub reply: bool, + pub retweet: bool, +} + +impl Summary for Tweet { +// fn summarize(&self) -> String { +// format!("{}: {}", self.username, self.content) +// } + + fn summarize_author(&self) -> String { + format!("@{}", self.username) + } +} + +pub fn notify(item: impl Summary) { + println!("breaking news: {}", item.summarize()); +} + +fn returns_summarizable() -> impl Summary { + + NewsArticle { + headline: String::from("Penguins win the stanley cup championship!"), + location: String::from("Pittsburgh, PA, USA"), + author: String::from("Iceburgh"), + content: String::from("The pittsburgh penguins are winners I guess."), + } +// Tweet { +// username: String::from("horse_ebooks"), +// content: String::from("of course blargh"), +// reply: false, +// retweet: false, +// } +} + +fn main() { + + let tweet = Tweet { + username: String::from("horse_ebooks"), + content: String::from("of course, as you probably already know, people"), + reply: false, + retweet: false, + }; + + //dbg!(tweet.summarize()); + + let article = NewsArticle { + headline: String::from("Penguins win the stanley cup championship!"), + location: String::from("Pittsburgh, PA, USA"), + author: String::from("Iceburgh"), + content: String::from("The pittsburgh penguins are winners I guess."), + }; + + //dbg!(article.summarize()); + + //notify(tweet); + + returns_summarizable(); +} diff --git a/variables/.gitignore b/variables/.gitignore new file mode 100755 index 0000000..53eaa21 --- /dev/null +++ b/variables/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/variables/Cargo.lock b/variables/Cargo.lock new file mode 100755 index 0000000..6d77f6b --- /dev/null +++ b/variables/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "variables" +version = "0.1.0" + diff --git a/variables/Cargo.toml b/variables/Cargo.toml new file mode 100755 index 0000000..62ee489 --- /dev/null +++ b/variables/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "variables" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/variables/src/main.rs b/variables/src/main.rs new file mode 100755 index 0000000..d632530 --- /dev/null +++ b/variables/src/main.rs @@ -0,0 +1,6 @@ +fn main() { + let a: [i32; 5] = [1, 2, 3, 4, 5]; + let first = a[0]; + let second = a[1]; + println!("{} {}", first, second); +} diff --git a/xmas/.gitignore b/xmas/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/xmas/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/xmas/Cargo.lock b/xmas/Cargo.lock new file mode 100644 index 0000000..033bd72 --- /dev/null +++ b/xmas/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "xmas" +version = "0.1.0" + diff --git a/xmas/Cargo.toml b/xmas/Cargo.toml new file mode 100644 index 0000000..d10c790 --- /dev/null +++ b/xmas/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "xmas" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/xmas/out.txt b/xmas/out.txt new file mode 100644 index 0000000..55ae012 --- /dev/null +++ b/xmas/out.txt @@ -0,0 +1,114 @@ + +On the 1st day of Christmas, +My true love gave to me +A partridge in a pear tree + +On the 2nd day of Christmas, +My true love gave to me +Two turtle doves and +A partridge in a pear tree + +On the 3rd day of Christmas, +My true love gave to me +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 4th day of Christmas, +My true love gave to me +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 5th day of Christmas, +My true love gave to me +Five golden rings +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 6th day of Christmas, +My true love gave to me +Six geese a-laying +Five golden rings +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 7th day of Christmas, +My true love gave to me +Seven swans a-swimming +Six geese a-laying +Five golden rings +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 8th day of Christmas, +My true love gave to me +Eight maids a-milking +Seven swans a-swimming +Six geese a-laying +Five golden rings +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 9th day of Christmas, +My true love gave to me +Nine ladies dancing +Eight maids a-milking +Seven swans a-swimming +Six geese a-laying +Five golden rings +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 10th day of Christmas, +My true love gave to me +Ten lords a-leaping +Nine ladies dancing +Eight maids a-milking +Seven swans a-swimming +Six geese a-laying +Five golden rings +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 11th day of Christmas, +My true love gave to me +Eleven pipers piping +Ten lords a-leaping +Nine ladies dancing +Eight maids a-milking +Seven swans a-swimming +Six geese a-laying +Five golden rings +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree + +On the 12th day of Christmas, +My true love gave to me +Twelve drummers drumming +Eleven pipers piping +Ten lords a-leaping +Nine ladies dancing +Eight maids a-milking +Seven swans a-swimming +Six geese a-laying +Five golden rings +Four calling birds +Three French hens +Two turtle doves and +A partridge in a pear tree diff --git a/xmas/src/main.rs b/xmas/src/main.rs new file mode 100644 index 0000000..e725a26 --- /dev/null +++ b/xmas/src/main.rs @@ -0,0 +1,42 @@ +fn main() { + let days = [ + "1st", + "2nd", + "3rd", + "4th", + "5th", + "6th", + "7th", + "8th", + "9th", + "10th", + "11th", + "12th", + ]; + let gifts = [ + "A partridge in a pear tree", + "Two turtle doves and", + "Three French hens", + "Four calling birds", + "Five golden rings", + "Six geese a-laying", + "Seven swans a-swimming", + "Eight maids a-milking", + "Nine ladies dancing", + "Ten lords a-leaping", + "Eleven pipers piping", + "Twelve drummers drumming", + ]; + + // for each day + for mut each in 0..12 { + println!("\nOn the {} day of Christmas,", days[each]); + println!("My true love gave to me"); + + // print associated lyrics + for i in (0..each+1).rev() { + println!("{}", gifts[i]); + } + + } +} -- cgit v1.2.3 From a4d1303d5b3ff94880578ff7fcd96a4d5b840619 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 12 Feb 2019 09:53:25 -0500 Subject: Removed junk. --- rust-csci415 | 1 - 1 file changed, 1 deletion(-) delete mode 160000 rust-csci415 diff --git a/rust-csci415 b/rust-csci415 deleted file mode 160000 index eb478e1..0000000 --- a/rust-csci415 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit eb478e1594d45a0a73a634a0b3b013d7799b17c9 -- cgit v1.2.3 From b92640850c55d0ef6e4f2f555702c7d08832aa59 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 12 Feb 2019 09:54:28 -0500 Subject: Migrated employees. --- employees | 1 - 1 file changed, 1 deletion(-) delete mode 160000 employees diff --git a/employees b/employees deleted file mode 160000 index db1600d..0000000 --- a/employees +++ /dev/null @@ -1 +0,0 @@ -Subproject commit db1600def1822679e51e8917c8b4731c8f477812 -- cgit v1.2.3 From 388ab48626f6a10b8dfac59170046022b208f7fa Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 12 Feb 2019 09:54:54 -0500 Subject: Re-added employees --- employees/.gitignore | 2 + employees/Cargo.lock | 4 ++ employees/Cargo.toml | 7 ++ employees/src/main.rs | 181 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 194 insertions(+) create mode 100644 employees/.gitignore create mode 100644 employees/Cargo.lock create mode 100644 employees/Cargo.toml create mode 100644 employees/src/main.rs diff --git a/employees/.gitignore b/employees/.gitignore new file mode 100644 index 0000000..53eaa21 --- /dev/null +++ b/employees/.gitignore @@ -0,0 +1,2 @@ +/target +**/*.rs.bk diff --git a/employees/Cargo.lock b/employees/Cargo.lock new file mode 100644 index 0000000..a6d8fc5 --- /dev/null +++ b/employees/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "employees" +version = "0.1.0" + diff --git a/employees/Cargo.toml b/employees/Cargo.toml new file mode 100644 index 0000000..016ef3b --- /dev/null +++ b/employees/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "employees" +version = "0.1.0" +authors = ["Adam Carpenter "] +edition = "2018" + +[dependencies] diff --git a/employees/src/main.rs b/employees/src/main.rs new file mode 100644 index 0000000..0900bed --- /dev/null +++ b/employees/src/main.rs @@ -0,0 +1,181 @@ +use std::collections::HashMap; +use std::process; +use std::io::{self, Write}; + +struct Employees { + departments: HashMap>, +} + +impl Employees { + + fn add_employee(&self, name: &Option<&String>, department: &Option<&String>) -> Result<(), &'static str> { + // parse name + let name = match name { + Some(s) => s, + None => { + return Err("Invalid or empty name."); + }, + }; + + // parse department + let dept = match department { + Some(s) => s, + None => { + return Err("Invalid or empty department."); + }, + }; + + // add name to department in departments + // and create department if it doesn't exist + employees.entry(dept.to_string()) + .or_insert(Vec::new()) + .push(name.to_string()); + + Ok(()) + } +} + +//fn list_employees() { +// let dept = match actions.get(1) { +// Some(s) => s, +// None => { +// "" +// } +// }; +// +// if dept == "" { +// // print employees in all depts +// for each in employees.keys() { +// println!("{}", each); +// match employees.get(&each.to_string()) { +// Some(v) => { +// for every in v { +// println!(" {}", every); +// } +// }, +// None => continue, +// }; +// } +// } +// else { +// // print employees in single dept +// match employees.get(&dept.to_string()) { +// Some(v) => { +// for every in v { +// println!("{}", every); +// }; +// }, +// None => { +// eprintln!("List: Invalid department."); +// continue; +// } +// }; +// } +//} +// +//fn list_employee(name) { +//} + + +//fn remove_employee(name) { +// let name = match actions.get(1) { +// Some(s) => s, +// None => { +// eprintln!("Remove: Invalid or empty name."); +// continue; +// }, +// }; +// +// let dept = match actions.get(2) { +// Some(s) => s, +// None => { +// eprintln!("Remove: Empty department."); +// continue; +// }, +// }; +// +// match employees.get_mut(&dept.to_string()) { +// Some(v) => { +// v.retain(|employee| employee != name); +// }, +// None => { +// eprintln!("Remove: Invalid department."); +// continue; +// } +// }; + +//} + +fn get_actions() -> Vec { + print!("> "); + io::stdout().flush().unwrap(); + + // grab input + let mut input = String::new(); + io::stdin().read_line(&mut input) + .expect("Failed to read input."); + + // finish on eof + if input == "" { + println!("Bye."); + process::exit(0); + } + + // collect all CLI arguments into vector of trimmed Strings + input.trim() + .split_whitespace() + .map(|action| action.to_string()) + .collect() +} + +fn main() { + println!("Welcome to employee manager."); + println!("Enter 'help' for help or Ctrl+D to exit."); + let mut departments: HashMap> = HashMap::new(); + + // operating loop + loop { + let actions = get_actions(); + + // act on actions + let command = match actions.get(0) { + Some(c) => c, + None => { + eprintln!("Empty command. Enter Ctrl+D to exit."); + continue; + } + }; + + match command.as_str() { + // add employee to department + "add" => { + match add_employee(&actions.get(1), &actions.get(2), &mut departments) { + Ok(()) => {dbg!(&departments);}, + Err(e) => eprintln!("{}", e), + }; + }, + + // list employees from one or all departments + "list" => { + }, + + // remove employee from department + "remove" => { + }, + + // print help + "help" => { + println!("Valid commands include:"); + println!("\tlist [department]"); + println!("\tadd "); + println!("\tremove "); + println!("Enter 'help' for help or Ctrl+D to exit."); + }, + + // all else fails + _ => eprintln!("Invalid command."), + } + + } + +} -- cgit v1.2.3 From 0d653b5cfa9f0a0df9d2383c8e8fe443b6cb902d Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 12 Feb 2019 09:55:53 -0500 Subject: Added Readme. --- readme.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..73457bb --- /dev/null +++ b/readme.md @@ -0,0 +1,4 @@ +# Rust Learning Repo + +All of my work as I follow the Rust Book examples and exercises. + -- cgit v1.2.3 From a48940b60367f94c50b6782d8883110b76a356e8 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Tue, 19 Feb 2019 16:23:08 -0500 Subject: Added adder and testing --- adder/Cargo.lock | 4 + adder/Cargo.toml | 7 ++ adder/src/lib.rs | 92 +++++++++++++++++++++ adder/target/.rustc_info.json | 1 + adder/target/debug/.cargo-lock | 0 .../dep-lib-adder-324ef1b938ba3079 | Bin 0 -> 11 bytes .../lib-adder-324ef1b938ba3079 | 1 + .../lib-adder-324ef1b938ba3079.json | 1 + .../dep-test-lib-adder-50a9ec09c6e49fab | Bin 0 -> 11 bytes .../test-lib-adder-50a9ec09c6e49fab | 1 + .../test-lib-adder-50a9ec09c6e49fab.json | 1 + adder/target/debug/adder-50a9ec09c6e49fab | Bin 0 -> 4548728 bytes adder/target/debug/adder-50a9ec09c6e49fab.d | 1 + adder/target/debug/deps/adder-324ef1b938ba3079.d | 5 ++ adder/target/debug/deps/adder-50a9ec09c6e49fab | Bin 0 -> 4548728 bytes adder/target/debug/deps/adder-50a9ec09c6e49fab.d | 5 ++ .../debug/deps/libadder-324ef1b938ba3079.rlib | Bin 0 -> 79884 bytes .../1w0u8no8sz6bsrft.bc.z | Bin 0 -> 5194 bytes .../1w0u8no8sz6bsrft.o | Bin 0 -> 9208 bytes .../28x9lmh8lepssp7j.bc.z | Bin 0 -> 4360 bytes .../28x9lmh8lepssp7j.o | Bin 0 -> 7912 bytes .../4mwcgizr5xk7niji.bc.z | Bin 0 -> 5464 bytes .../4mwcgizr5xk7niji.o | Bin 0 -> 10720 bytes .../56vbkt1jj57sxe01.bc.z | Bin 0 -> 9156 bytes .../56vbkt1jj57sxe01.o | Bin 0 -> 17920 bytes .../dep-graph.bin | Bin 0 -> 335918 bytes .../gh7bpht9njegmxo.bc.z | Bin 0 -> 1936 bytes .../gh7bpht9njegmxo.o | Bin 0 -> 3096 bytes .../query-cache.bin | Bin 0 -> 100440 bytes .../work-products.bin | Bin 0 -> 419 bytes .../adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7.lock | 0 .../150b5aw0t42bdobn.o | Bin 0 -> 3128 bytes .../1aozlodhl0o5x6tb.o | Bin 0 -> 25776 bytes .../1gi4mxyozvpwolne.o | Bin 0 -> 16288 bytes .../1ifcgxqm57fuc3ae.o | Bin 0 -> 5984 bytes .../1lja2qq10zz6djy0.o | Bin 0 -> 23176 bytes .../1np9wizkuvtyqdqn.o | Bin 0 -> 5664 bytes .../1oblomd2abrkrv6a.o | Bin 0 -> 8928 bytes .../1xrsat1tpjsiz650.o | Bin 0 -> 20432 bytes .../23q9hyff3zzgp7gu.o | Bin 0 -> 13968 bytes .../27fotnlnjou8p5zb.o | Bin 0 -> 8160 bytes .../2asi19pvy29lvv9x.o | Bin 0 -> 10144 bytes .../2cifebbl8h4b9qqx.o | Bin 0 -> 4760 bytes .../2g3a8xgh76djrxuv.o | Bin 0 -> 13912 bytes .../2j1yalcdnti3rikg.o | Bin 0 -> 35336 bytes .../2k0zmzd6dxanekgk.o | Bin 0 -> 11656 bytes .../2rtv43syzz3e116j.o | Bin 0 -> 16592 bytes .../2t9c7t8fa7q3tr7c.o | Bin 0 -> 3504 bytes .../30o1xlaufu5x2rwd.o | Bin 0 -> 3456 bytes .../32qyr78jg1rwa6g1.o | Bin 0 -> 3496 bytes .../334ckoui3ey5uo51.o | Bin 0 -> 9216 bytes .../33chierc2k6i5uqv.o | Bin 0 -> 4256 bytes .../3bkwkcth9hgggae.o | Bin 0 -> 33960 bytes .../3jz02qn5vjiw6sz5.o | Bin 0 -> 12816 bytes .../3le6xv4xf0nkg560.o | Bin 0 -> 5368 bytes .../3v21idoqg1fjf4jv.o | Bin 0 -> 3496 bytes .../3v29x4g08glpijdj.o | Bin 0 -> 5944 bytes .../3wfhavj3rclupveg.o | Bin 0 -> 9688 bytes .../40bq7tdgowhi362e.o | Bin 0 -> 4280 bytes .../439l2mktn0av9rf0.o | Bin 0 -> 5752 bytes .../44cjk84ime84q1bd.o | Bin 0 -> 4160 bytes .../456ulyipzp0nbvqn.o | Bin 0 -> 4056 bytes .../49tpqtk65j3t7nn0.o | Bin 0 -> 12520 bytes .../4anavq8ru3n8g7kr.o | Bin 0 -> 11864 bytes .../4br95dja5fsdrep5.o | Bin 0 -> 10944 bytes .../4cftgyscz698ddvp.o | Bin 0 -> 20872 bytes .../4def8tneaw96mqe3.o | Bin 0 -> 4632 bytes .../4iv8ppgg8s4czkzp.o | Bin 0 -> 10096 bytes .../4uvbhcv8kdau5auy.o | Bin 0 -> 5816 bytes .../50rs00yqneqm34w6.o | Bin 0 -> 30768 bytes .../5145k1oi6zqtq8k.o | Bin 0 -> 3208 bytes .../51p649byfqsam4b4.o | Bin 0 -> 9568 bytes .../52rwcq9si4nswo3k.o | Bin 0 -> 20032 bytes .../53j5whxbewdtnhde.o | Bin 0 -> 4312 bytes .../53up84elqm3a4ctb.o | Bin 0 -> 6000 bytes .../5600zjmpl19ldj15.o | Bin 0 -> 27016 bytes .../5asrj9nt24kbc3nu.o | Bin 0 -> 7240 bytes .../5efql6znf93nb86v.o | Bin 0 -> 19360 bytes .../5ejnf2bgz1k1pf6e.o | Bin 0 -> 37144 bytes .../dep-graph.bin | Bin 0 -> 1495092 bytes .../mi440ei4r9uur0q.o | Bin 0 -> 5136 bytes .../otbge3poyau1tly.o | Bin 0 -> 5712 bytes .../pjxzx5xzd5i1pzn.o | Bin 0 -> 13136 bytes .../query-cache.bin | Bin 0 -> 324578 bytes .../work-products.bin | Bin 0 -> 2781 bytes .../adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9.lock | 0 adder/target/debug/libadder.d | 1 + adder/target/debug/libadder.rlib | Bin 0 -> 3752 bytes testing/Cargo.lock | 4 + testing/Cargo.toml | 7 ++ testing/src/lib.rs | 32 +++++++ testing/target/.rustc_info.json | 1 + testing/target/debug/.cargo-lock | 0 ...egration-test-integration_test-1a358058a871a1c6 | Bin 0 -> 26 bytes ...egration-test-integration_test-1a358058a871a1c6 | 1 + ...ion-test-integration_test-1a358058a871a1c6.json | 1 + .../dep-lib-testing-813a2e3b38183b9f | Bin 0 -> 11 bytes .../lib-testing-813a2e3b38183b9f | 1 + .../lib-testing-813a2e3b38183b9f.json | 1 + .../dep-test-lib-testing-e06eb924885e312d | Bin 0 -> 11 bytes .../test-lib-testing-e06eb924885e312d | 1 + .../test-lib-testing-e06eb924885e312d.json | 1 + .../debug/deps/integration_test-1a358058a871a1c6 | Bin 0 -> 4345120 bytes .../debug/deps/integration_test-1a358058a871a1c6.d | 5 ++ .../debug/deps/libtesting-813a2e3b38183b9f.rlib | Bin 0 -> 9130 bytes .../target/debug/deps/testing-813a2e3b38183b9f.d | 5 ++ testing/target/debug/deps/testing-e06eb924885e312d | Bin 0 -> 4347088 bytes .../target/debug/deps/testing-e06eb924885e312d.d | 5 ++ .../1t03bhc6pzw2nd6m.o | Bin 0 -> 5744 bytes .../2psuteotuu954xoj.o | Bin 0 -> 7216 bytes .../2ym1hzdvtimvhwql.o | Bin 0 -> 12840 bytes .../364l98n50kntzl3h.o | Bin 0 -> 4792 bytes .../3qmo95huem0jp0vl.o | Bin 0 -> 9240 bytes .../3u9xgzqcte93ux9p.o | Bin 0 -> 14520 bytes .../47svy69thrkymuvc.o | Bin 0 -> 7592 bytes .../4gbiclu2mkawnr5u.o | Bin 0 -> 7984 bytes .../5fkcxe5h8f2ytj7.o | Bin 0 -> 3344 bytes .../9gxf4e6vopz3q84.o | Bin 0 -> 3528 bytes .../dep-graph.bin | Bin 0 -> 729498 bytes .../query-cache.bin | Bin 0 -> 116491 bytes .../work-products.bin | Bin 0 -> 573 bytes .../s-f9n90kyodc-1q8ky3q.lock | 0 .../141y9ktx8wlxevn4.o | Bin 0 -> 10392 bytes .../16kthln99blc7qv3.o | Bin 0 -> 5712 bytes .../1hz7ymz8vueb3o0v.o | Bin 0 -> 9208 bytes .../1zze8extmhj1inh.o | Bin 0 -> 7384 bytes .../2h6gt9o6rvpvq7re.o | Bin 0 -> 4760 bytes .../3fqxmakmjdr4865v.o | Bin 0 -> 14488 bytes .../3jssatmi8jwq2q03.o | Bin 0 -> 12808 bytes .../3lo5qhj4pbw8ykv4.o | Bin 0 -> 7960 bytes .../4cx6zvlmoqzv3ctm.o | Bin 0 -> 5416 bytes .../4wme8wac7aw04zjw.o | Bin 0 -> 3496 bytes .../5ci3hw7n3cym6x67.o | Bin 0 -> 9176 bytes .../dep-graph.bin | Bin 0 -> 770023 bytes .../query-cache.bin | Bin 0 -> 142259 bytes .../work-products.bin | Bin 0 -> 629 bytes .../testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm.lock | 0 .../2okzpkuw96q2j6ie.bc.z | Bin 0 -> 2578 bytes .../2okzpkuw96q2j6ie.o | Bin 0 -> 4672 bytes .../dep-graph.bin | Bin 0 -> 64325 bytes .../query-cache.bin | Bin 0 -> 38617 bytes .../work-products.bin | Bin 0 -> 114 bytes .../testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b.lock | 0 .../target/debug/integration_test-1a358058a871a1c6 | Bin 0 -> 4345120 bytes .../debug/integration_test-1a358058a871a1c6.d | 1 + testing/target/debug/testing-e06eb924885e312d | Bin 0 -> 4347088 bytes testing/target/debug/testing-e06eb924885e312d.d | 1 + testing/tests/integration_test.rs | 7 ++ 148 files changed, 194 insertions(+) create mode 100644 adder/Cargo.lock create mode 100644 adder/Cargo.toml create mode 100644 adder/src/lib.rs create mode 100644 adder/target/.rustc_info.json create mode 100644 adder/target/debug/.cargo-lock create mode 100644 adder/target/debug/.fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079 create mode 100644 adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 create mode 100644 adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079.json create mode 100644 adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab create mode 100644 adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab create mode 100644 adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab.json create mode 100755 adder/target/debug/adder-50a9ec09c6e49fab create mode 100644 adder/target/debug/adder-50a9ec09c6e49fab.d create mode 100644 adder/target/debug/deps/adder-324ef1b938ba3079.d create mode 100755 adder/target/debug/deps/adder-50a9ec09c6e49fab create mode 100644 adder/target/debug/deps/adder-50a9ec09c6e49fab.d create mode 100644 adder/target/debug/deps/libadder-324ef1b938ba3079.rlib create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.bc.z create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.o create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.bc.z create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.o create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.bc.z create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.o create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.bc.z create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.o create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.bc.z create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.o create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin create mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/work-products.bin create mode 100755 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7.lock create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/150b5aw0t42bdobn.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1aozlodhl0o5x6tb.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1gi4mxyozvpwolne.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1ifcgxqm57fuc3ae.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1lja2qq10zz6djy0.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1np9wizkuvtyqdqn.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1oblomd2abrkrv6a.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1xrsat1tpjsiz650.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/23q9hyff3zzgp7gu.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/27fotnlnjou8p5zb.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2asi19pvy29lvv9x.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2cifebbl8h4b9qqx.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2g3a8xgh76djrxuv.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2j1yalcdnti3rikg.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2k0zmzd6dxanekgk.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2rtv43syzz3e116j.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2t9c7t8fa7q3tr7c.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/30o1xlaufu5x2rwd.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/32qyr78jg1rwa6g1.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/334ckoui3ey5uo51.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/33chierc2k6i5uqv.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3bkwkcth9hgggae.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3jz02qn5vjiw6sz5.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3le6xv4xf0nkg560.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v21idoqg1fjf4jv.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v29x4g08glpijdj.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3wfhavj3rclupveg.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/40bq7tdgowhi362e.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/439l2mktn0av9rf0.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/44cjk84ime84q1bd.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/456ulyipzp0nbvqn.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/49tpqtk65j3t7nn0.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4anavq8ru3n8g7kr.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4br95dja5fsdrep5.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4cftgyscz698ddvp.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4def8tneaw96mqe3.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4iv8ppgg8s4czkzp.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4uvbhcv8kdau5auy.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/50rs00yqneqm34w6.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5145k1oi6zqtq8k.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/51p649byfqsam4b4.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/52rwcq9si4nswo3k.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53j5whxbewdtnhde.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53up84elqm3a4ctb.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5600zjmpl19ldj15.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5asrj9nt24kbc3nu.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5efql6znf93nb86v.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5ejnf2bgz1k1pf6e.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/mi440ei4r9uur0q.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/otbge3poyau1tly.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/pjxzx5xzd5i1pzn.o create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin create mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/work-products.bin create mode 100755 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9.lock create mode 100644 adder/target/debug/libadder.d create mode 100644 adder/target/debug/libadder.rlib create mode 100644 testing/Cargo.lock create mode 100644 testing/Cargo.toml create mode 100644 testing/src/lib.rs create mode 100644 testing/target/.rustc_info.json create mode 100644 testing/target/debug/.cargo-lock create mode 100644 testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 create mode 100644 testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 create mode 100644 testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json create mode 100644 testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f create mode 100644 testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f create mode 100644 testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json create mode 100644 testing/target/debug/.fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d create mode 100644 testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d create mode 100644 testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json create mode 100755 testing/target/debug/deps/integration_test-1a358058a871a1c6 create mode 100644 testing/target/debug/deps/integration_test-1a358058a871a1c6.d create mode 100644 testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib create mode 100644 testing/target/debug/deps/testing-813a2e3b38183b9f.d create mode 100755 testing/target/debug/deps/testing-e06eb924885e312d create mode 100644 testing/target/debug/deps/testing-e06eb924885e312d.d create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/1t03bhc6pzw2nd6m.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2psuteotuu954xoj.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2ym1hzdvtimvhwql.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/364l98n50kntzl3h.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3qmo95huem0jp0vl.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3u9xgzqcte93ux9p.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/47svy69thrkymuvc.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/4gbiclu2mkawnr5u.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/5fkcxe5h8f2ytj7.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/9gxf4e6vopz3q84.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/dep-graph.bin create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/query-cache.bin create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/work-products.bin create mode 100755 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q.lock create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/141y9ktx8wlxevn4.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/16kthln99blc7qv3.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1zze8extmhj1inh.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3fqxmakmjdr4865v.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3jssatmi8jwq2q03.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4wme8wac7aw04zjw.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/dep-graph.bin create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/query-cache.bin create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/work-products.bin create mode 100755 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm.lock create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.o create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/dep-graph.bin create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/query-cache.bin create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/work-products.bin create mode 100755 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b.lock create mode 100755 testing/target/debug/integration_test-1a358058a871a1c6 create mode 100644 testing/target/debug/integration_test-1a358058a871a1c6.d create mode 100755 testing/target/debug/testing-e06eb924885e312d create mode 100644 testing/target/debug/testing-e06eb924885e312d.d create mode 100644 testing/tests/integration_test.rs diff --git a/adder/Cargo.lock b/adder/Cargo.lock new file mode 100644 index 0000000..4fb18f9 --- /dev/null +++ b/adder/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "adder" +version = "0.1.0" + diff --git a/adder/Cargo.toml b/adder/Cargo.toml new file mode 100644 index 0000000..5224ea1 --- /dev/null +++ b/adder/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "adder" +version = "0.1.0" +authors = ["carpenat"] +edition = "2018" + +[dependencies] diff --git a/adder/src/lib.rs b/adder/src/lib.rs new file mode 100644 index 0000000..bc79931 --- /dev/null +++ b/adder/src/lib.rs @@ -0,0 +1,92 @@ +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() -> Result<(), String> { + if 2 + 2 == 4 { + Ok(()) + } + else { + Err(String::from("two plus two does not equal four")) + } + } + + #[test] + fn larger_can_hold_smaller() { + let larger = Rectangle { length: 8, width: 7 }; + let smaller = Rectangle { length: 5, width: 1 }; + + assert!(larger.can_hold(&smaller)); + } + + #[test] + fn smaller_cannot_hold_larger() { + let larger = Rectangle { length: 8, width: 7 }; + let smaller = Rectangle { length: 5, width: 1 }; + + assert!(!smaller.can_hold(&larger)); + } + + #[test] + fn it_adds_two() { + assert_eq!(4, add_two(2)); + } + + #[test] + fn it_wont_add_two() { + assert_ne!(4, add_two(3)); + } + + #[test] + fn greeting_contains_name() { + let result = greeting("adam"); + assert!(result.contains("adam")); + } + + #[test] + #[should_panic(expected = "must be between 1 and 100")] + fn greater_than_100() { + Guess::new(200); + } +} + +#[derive(Debug)] +pub struct Rectangle { + length: u32, + width: u32, +} + +pub struct Guess { + value: i32, +} + +impl Guess { + pub fn new(value: i32) -> Guess { + if value < 1 || value > 100 { + panic!("must be between 1 and 100, not {}", value); + } + //if value < 1 { + // panic!("must be greater than 1, not {}", value); + //} + //else if value > 100 { + // panic!("must be less than 100, not {}", value); + //} + + Guess { value } + } +} + +impl Rectangle { + pub fn can_hold(&self, other: &Rectangle) -> bool { + self.length > other.length && self.width > other.width + } +} + +pub fn add_two(a: i32) -> i32 { + a + 2 +} + +pub fn greeting(name: &str) -> String { + format!("hello {}", name) +} diff --git a/adder/target/.rustc_info.json b/adder/target/.rustc_info.json new file mode 100644 index 0000000..d00f8d7 --- /dev/null +++ b/adder/target/.rustc_info.json @@ -0,0 +1 @@ +{"rustc_fingerprint":5868336760187092304,"outputs":{"1164083562126845933":["rustc 1.32.0 (9fda7c223 2019-01-16)\nbinary: rustc\ncommit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b\ncommit-date: 2019-01-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.32.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\"\nunix\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\"\nunix\n",""]},"successes":{}} \ No newline at end of file diff --git a/adder/target/debug/.cargo-lock b/adder/target/debug/.cargo-lock new file mode 100644 index 0000000..e69de29 diff --git a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079 b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079 new file mode 100644 index 0000000..b8e6181 Binary files /dev/null and b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079 differ diff --git a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 new file mode 100644 index 0000000..3dde506 --- /dev/null +++ b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 @@ -0,0 +1 @@ +eb5988d04d1ce784 \ No newline at end of file diff --git a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079.json b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079.json new file mode 100644 index 0000000..90b506d --- /dev/null +++ b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079.json @@ -0,0 +1 @@ +{"rustc":11779505878581416876,"features":"[]","target":17956472603111243260,"profile":739652522282439549,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550602275,721045800],".fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab new file mode 100644 index 0000000..b8e6181 Binary files /dev/null and b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab differ diff --git a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab new file mode 100644 index 0000000..cb674bd --- /dev/null +++ b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab @@ -0,0 +1 @@ +e44760269ed9958c \ No newline at end of file diff --git a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab.json b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab.json new file mode 100644 index 0000000..1c41849 --- /dev/null +++ b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab.json @@ -0,0 +1 @@ +{"rustc":11779505878581416876,"features":"[]","target":17956472603111243260,"profile":14175392328352671011,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550602276,744765700],".fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/adder/target/debug/adder-50a9ec09c6e49fab b/adder/target/debug/adder-50a9ec09c6e49fab new file mode 100755 index 0000000..26fac6f Binary files /dev/null and b/adder/target/debug/adder-50a9ec09c6e49fab differ diff --git a/adder/target/debug/adder-50a9ec09c6e49fab.d b/adder/target/debug/adder-50a9ec09c6e49fab.d new file mode 100644 index 0000000..9ba50e9 --- /dev/null +++ b/adder/target/debug/adder-50a9ec09c6e49fab.d @@ -0,0 +1 @@ +/home/carpenat/devel/learning-rust/adder/target/debug/adder-50a9ec09c6e49fab: /home/carpenat/devel/learning-rust/adder/src/lib.rs diff --git a/adder/target/debug/deps/adder-324ef1b938ba3079.d b/adder/target/debug/deps/adder-324ef1b938ba3079.d new file mode 100644 index 0000000..ae8ab4b --- /dev/null +++ b/adder/target/debug/deps/adder-324ef1b938ba3079.d @@ -0,0 +1,5 @@ +/home/carpenat/devel/learning-rust/adder/target/debug/deps/libadder-324ef1b938ba3079.rlib: src/lib.rs + +/home/carpenat/devel/learning-rust/adder/target/debug/deps/adder-324ef1b938ba3079.d: src/lib.rs + +src/lib.rs: diff --git a/adder/target/debug/deps/adder-50a9ec09c6e49fab b/adder/target/debug/deps/adder-50a9ec09c6e49fab new file mode 100755 index 0000000..26fac6f Binary files /dev/null and b/adder/target/debug/deps/adder-50a9ec09c6e49fab differ diff --git a/adder/target/debug/deps/adder-50a9ec09c6e49fab.d b/adder/target/debug/deps/adder-50a9ec09c6e49fab.d new file mode 100644 index 0000000..6ee6a57 --- /dev/null +++ b/adder/target/debug/deps/adder-50a9ec09c6e49fab.d @@ -0,0 +1,5 @@ +/home/carpenat/devel/learning-rust/adder/target/debug/deps/adder-50a9ec09c6e49fab: src/lib.rs + +/home/carpenat/devel/learning-rust/adder/target/debug/deps/adder-50a9ec09c6e49fab.d: src/lib.rs + +src/lib.rs: diff --git a/adder/target/debug/deps/libadder-324ef1b938ba3079.rlib b/adder/target/debug/deps/libadder-324ef1b938ba3079.rlib new file mode 100644 index 0000000..5ca4536 Binary files /dev/null and b/adder/target/debug/deps/libadder-324ef1b938ba3079.rlib differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.bc.z new file mode 100644 index 0000000..8df4f48 Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.bc.z differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.o new file mode 100644 index 0000000..a83e201 Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.o differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.bc.z new file mode 100644 index 0000000..2c2ea6c Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.bc.z differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.o new file mode 100644 index 0000000..d98ecc1 Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.o differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.bc.z new file mode 100644 index 0000000..83617db Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.bc.z differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.o new file mode 100644 index 0000000..11812ba Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.o differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.bc.z new file mode 100644 index 0000000..10f1f81 Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.bc.z differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.o new file mode 100644 index 0000000..09b8e0a Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.o differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin new file mode 100644 index 0000000..a32cc6c Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.bc.z new file mode 100644 index 0000000..50510aa Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.bc.z differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.o new file mode 100644 index 0000000..84918da Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.o differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin new file mode 100644 index 0000000..265e389 Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/work-products.bin b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/work-products.bin new file mode 100644 index 0000000..bb0d29c Binary files /dev/null and b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/work-products.bin differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7.lock b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7.lock new file mode 100755 index 0000000..e69de29 diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/150b5aw0t42bdobn.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/150b5aw0t42bdobn.o new file mode 100644 index 0000000..d58da3e Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/150b5aw0t42bdobn.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1aozlodhl0o5x6tb.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1aozlodhl0o5x6tb.o new file mode 100644 index 0000000..83ccf8c Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1aozlodhl0o5x6tb.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1gi4mxyozvpwolne.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1gi4mxyozvpwolne.o new file mode 100644 index 0000000..fbd9817 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1gi4mxyozvpwolne.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1ifcgxqm57fuc3ae.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1ifcgxqm57fuc3ae.o new file mode 100644 index 0000000..039f7cb Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1ifcgxqm57fuc3ae.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1lja2qq10zz6djy0.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1lja2qq10zz6djy0.o new file mode 100644 index 0000000..fc4af79 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1lja2qq10zz6djy0.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1np9wizkuvtyqdqn.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1np9wizkuvtyqdqn.o new file mode 100644 index 0000000..88c43d6 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1np9wizkuvtyqdqn.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1oblomd2abrkrv6a.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1oblomd2abrkrv6a.o new file mode 100644 index 0000000..3b9ae8a Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1oblomd2abrkrv6a.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1xrsat1tpjsiz650.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1xrsat1tpjsiz650.o new file mode 100644 index 0000000..0877991 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1xrsat1tpjsiz650.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/23q9hyff3zzgp7gu.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/23q9hyff3zzgp7gu.o new file mode 100644 index 0000000..9f78045 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/23q9hyff3zzgp7gu.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/27fotnlnjou8p5zb.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/27fotnlnjou8p5zb.o new file mode 100644 index 0000000..c822531 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/27fotnlnjou8p5zb.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2asi19pvy29lvv9x.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2asi19pvy29lvv9x.o new file mode 100644 index 0000000..5e5372a Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2asi19pvy29lvv9x.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2cifebbl8h4b9qqx.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2cifebbl8h4b9qqx.o new file mode 100644 index 0000000..6c6550f Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2cifebbl8h4b9qqx.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2g3a8xgh76djrxuv.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2g3a8xgh76djrxuv.o new file mode 100644 index 0000000..fc6b9da Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2g3a8xgh76djrxuv.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2j1yalcdnti3rikg.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2j1yalcdnti3rikg.o new file mode 100644 index 0000000..f15880e Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2j1yalcdnti3rikg.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2k0zmzd6dxanekgk.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2k0zmzd6dxanekgk.o new file mode 100644 index 0000000..03bab18 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2k0zmzd6dxanekgk.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2rtv43syzz3e116j.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2rtv43syzz3e116j.o new file mode 100644 index 0000000..ef502c9 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2rtv43syzz3e116j.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2t9c7t8fa7q3tr7c.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2t9c7t8fa7q3tr7c.o new file mode 100644 index 0000000..24be3a2 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2t9c7t8fa7q3tr7c.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/30o1xlaufu5x2rwd.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/30o1xlaufu5x2rwd.o new file mode 100644 index 0000000..23b7783 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/30o1xlaufu5x2rwd.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/32qyr78jg1rwa6g1.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/32qyr78jg1rwa6g1.o new file mode 100644 index 0000000..0cd6f81 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/32qyr78jg1rwa6g1.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/334ckoui3ey5uo51.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/334ckoui3ey5uo51.o new file mode 100644 index 0000000..cda18c9 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/334ckoui3ey5uo51.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/33chierc2k6i5uqv.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/33chierc2k6i5uqv.o new file mode 100644 index 0000000..3a33cc8 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/33chierc2k6i5uqv.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3bkwkcth9hgggae.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3bkwkcth9hgggae.o new file mode 100644 index 0000000..172a853 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3bkwkcth9hgggae.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3jz02qn5vjiw6sz5.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3jz02qn5vjiw6sz5.o new file mode 100644 index 0000000..30c3d1f Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3jz02qn5vjiw6sz5.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3le6xv4xf0nkg560.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3le6xv4xf0nkg560.o new file mode 100644 index 0000000..9868791 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3le6xv4xf0nkg560.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v21idoqg1fjf4jv.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v21idoqg1fjf4jv.o new file mode 100644 index 0000000..6c0e736 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v21idoqg1fjf4jv.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v29x4g08glpijdj.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v29x4g08glpijdj.o new file mode 100644 index 0000000..f81a436 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v29x4g08glpijdj.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3wfhavj3rclupveg.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3wfhavj3rclupveg.o new file mode 100644 index 0000000..8fd4eb0 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3wfhavj3rclupveg.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/40bq7tdgowhi362e.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/40bq7tdgowhi362e.o new file mode 100644 index 0000000..2f3a83d Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/40bq7tdgowhi362e.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/439l2mktn0av9rf0.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/439l2mktn0av9rf0.o new file mode 100644 index 0000000..aa50b26 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/439l2mktn0av9rf0.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/44cjk84ime84q1bd.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/44cjk84ime84q1bd.o new file mode 100644 index 0000000..18f3e27 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/44cjk84ime84q1bd.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/456ulyipzp0nbvqn.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/456ulyipzp0nbvqn.o new file mode 100644 index 0000000..515c2b2 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/456ulyipzp0nbvqn.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/49tpqtk65j3t7nn0.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/49tpqtk65j3t7nn0.o new file mode 100644 index 0000000..e535f24 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/49tpqtk65j3t7nn0.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4anavq8ru3n8g7kr.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4anavq8ru3n8g7kr.o new file mode 100644 index 0000000..00a43cc Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4anavq8ru3n8g7kr.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4br95dja5fsdrep5.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4br95dja5fsdrep5.o new file mode 100644 index 0000000..f54f043 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4br95dja5fsdrep5.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4cftgyscz698ddvp.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4cftgyscz698ddvp.o new file mode 100644 index 0000000..d89739b Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4cftgyscz698ddvp.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4def8tneaw96mqe3.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4def8tneaw96mqe3.o new file mode 100644 index 0000000..b266565 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4def8tneaw96mqe3.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4iv8ppgg8s4czkzp.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4iv8ppgg8s4czkzp.o new file mode 100644 index 0000000..828f068 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4iv8ppgg8s4czkzp.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4uvbhcv8kdau5auy.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4uvbhcv8kdau5auy.o new file mode 100644 index 0000000..ce0470b Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4uvbhcv8kdau5auy.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/50rs00yqneqm34w6.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/50rs00yqneqm34w6.o new file mode 100644 index 0000000..17cb53f Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/50rs00yqneqm34w6.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5145k1oi6zqtq8k.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5145k1oi6zqtq8k.o new file mode 100644 index 0000000..55bf0f6 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5145k1oi6zqtq8k.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/51p649byfqsam4b4.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/51p649byfqsam4b4.o new file mode 100644 index 0000000..165ea1d Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/51p649byfqsam4b4.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/52rwcq9si4nswo3k.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/52rwcq9si4nswo3k.o new file mode 100644 index 0000000..3410e86 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/52rwcq9si4nswo3k.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53j5whxbewdtnhde.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53j5whxbewdtnhde.o new file mode 100644 index 0000000..15784d2 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53j5whxbewdtnhde.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53up84elqm3a4ctb.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53up84elqm3a4ctb.o new file mode 100644 index 0000000..bff00e4 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53up84elqm3a4ctb.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5600zjmpl19ldj15.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5600zjmpl19ldj15.o new file mode 100644 index 0000000..cb8c4bb Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5600zjmpl19ldj15.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5asrj9nt24kbc3nu.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5asrj9nt24kbc3nu.o new file mode 100644 index 0000000..d626ea2 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5asrj9nt24kbc3nu.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5efql6znf93nb86v.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5efql6znf93nb86v.o new file mode 100644 index 0000000..8d7467f Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5efql6znf93nb86v.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5ejnf2bgz1k1pf6e.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5ejnf2bgz1k1pf6e.o new file mode 100644 index 0000000..dc2ad80 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5ejnf2bgz1k1pf6e.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin new file mode 100644 index 0000000..8e5c7d4 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/mi440ei4r9uur0q.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/mi440ei4r9uur0q.o new file mode 100644 index 0000000..884fd19 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/mi440ei4r9uur0q.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/otbge3poyau1tly.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/otbge3poyau1tly.o new file mode 100644 index 0000000..156cbb8 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/otbge3poyau1tly.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/pjxzx5xzd5i1pzn.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/pjxzx5xzd5i1pzn.o new file mode 100644 index 0000000..3f25552 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/pjxzx5xzd5i1pzn.o differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin new file mode 100644 index 0000000..624e484 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/work-products.bin b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/work-products.bin new file mode 100644 index 0000000..b5b8a72 Binary files /dev/null and b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/work-products.bin differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9.lock b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9.lock new file mode 100755 index 0000000..e69de29 diff --git a/adder/target/debug/libadder.d b/adder/target/debug/libadder.d new file mode 100644 index 0000000..9ea1be4 --- /dev/null +++ b/adder/target/debug/libadder.d @@ -0,0 +1 @@ +/home/carpenat/devel/learning-rust/adder/target/debug/libadder.rlib: /home/carpenat/devel/learning-rust/adder/src/lib.rs diff --git a/adder/target/debug/libadder.rlib b/adder/target/debug/libadder.rlib new file mode 100644 index 0000000..78df287 Binary files /dev/null and b/adder/target/debug/libadder.rlib differ diff --git a/testing/Cargo.lock b/testing/Cargo.lock new file mode 100644 index 0000000..f38ac62 --- /dev/null +++ b/testing/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "testing" +version = "0.1.0" + diff --git a/testing/Cargo.toml b/testing/Cargo.toml new file mode 100644 index 0000000..665256c --- /dev/null +++ b/testing/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "testing" +version = "0.1.0" +authors = ["carpenat"] +edition = "2018" + +[dependencies] diff --git a/testing/src/lib.rs b/testing/src/lib.rs new file mode 100644 index 0000000..9ce4804 --- /dev/null +++ b/testing/src/lib.rs @@ -0,0 +1,32 @@ +pub fn add_two(a: i32) -> i32 { + internal_adder(a, 2) +} + +fn internal_adder(a: i32, b: i32) -> i32 { + a + b +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn add_two_and_two() { + assert_eq!(4, add_two(2)); + } + + #[test] + fn add_three_and_two() { + assert_eq!(5, add_two(3)); + } + + #[test] + #[ignore] + fn one_hundred() { + assert_eq!(102, add_two(100)); + } + + fn internal() { + assert_eq!(4, internal_adder(2, 2)); + } +} diff --git a/testing/target/.rustc_info.json b/testing/target/.rustc_info.json new file mode 100644 index 0000000..4d57dd8 --- /dev/null +++ b/testing/target/.rustc_info.json @@ -0,0 +1 @@ +{"rustc_fingerprint":5868336760187092304,"outputs":{"1164083562126845933":["rustc 1.32.0 (9fda7c223 2019-01-16)\nbinary: rustc\ncommit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b\ncommit-date: 2019-01-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.32.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\"\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\"\nunix\n",""]},"successes":{}} \ No newline at end of file diff --git a/testing/target/debug/.cargo-lock b/testing/target/debug/.cargo-lock new file mode 100644 index 0000000..e69de29 diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 new file mode 100644 index 0000000..b4f0937 Binary files /dev/null and b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 differ diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 new file mode 100644 index 0000000..174c9ef --- /dev/null +++ b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 @@ -0,0 +1 @@ +98ba49ddce7519f3 \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json new file mode 100644 index 0000000..4a17cde --- /dev/null +++ b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json @@ -0,0 +1 @@ +{"rustc":11779505878581416876,"features":"[]","target":3780201253000999443,"profile":549983324857518330,"path":4024921074540020615,"deps":[["testing v0.1.0 (/home/carpenat/devel/learning-rust/testing)","testing",1889444628513945398]],"local":[{"MtimeBased":[[1550611342,290622300],".fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f new file mode 100644 index 0000000..b8e6181 Binary files /dev/null and b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f differ diff --git a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f new file mode 100644 index 0000000..2589f14 --- /dev/null +++ b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f @@ -0,0 +1 @@ +36f75701e1a7381a \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json new file mode 100644 index 0000000..05cee3f --- /dev/null +++ b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json @@ -0,0 +1 @@ +{"rustc":11779505878581416876,"features":"[]","target":916269982466922323,"profile":18323052400864958076,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550603915,601749100],".fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d new file mode 100644 index 0000000..b8e6181 Binary files /dev/null and b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d differ diff --git a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d new file mode 100644 index 0000000..5faca36 --- /dev/null +++ b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d @@ -0,0 +1 @@ +21f7af5eedf171b5 \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json new file mode 100644 index 0000000..654a00b --- /dev/null +++ b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json @@ -0,0 +1 @@ +{"rustc":11779505878581416876,"features":"[]","target":916269982466922323,"profile":549983324857518330,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550603916,213121900],".fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/deps/integration_test-1a358058a871a1c6 b/testing/target/debug/deps/integration_test-1a358058a871a1c6 new file mode 100755 index 0000000..2d84f28 Binary files /dev/null and b/testing/target/debug/deps/integration_test-1a358058a871a1c6 differ diff --git a/testing/target/debug/deps/integration_test-1a358058a871a1c6.d b/testing/target/debug/deps/integration_test-1a358058a871a1c6.d new file mode 100644 index 0000000..dcc0a0e --- /dev/null +++ b/testing/target/debug/deps/integration_test-1a358058a871a1c6.d @@ -0,0 +1,5 @@ +/home/carpenat/devel/learning-rust/testing/target/debug/deps/integration_test-1a358058a871a1c6: tests/integration_test.rs + +/home/carpenat/devel/learning-rust/testing/target/debug/deps/integration_test-1a358058a871a1c6.d: tests/integration_test.rs + +tests/integration_test.rs: diff --git a/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib b/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib new file mode 100644 index 0000000..af1f402 Binary files /dev/null and b/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib differ diff --git a/testing/target/debug/deps/testing-813a2e3b38183b9f.d b/testing/target/debug/deps/testing-813a2e3b38183b9f.d new file mode 100644 index 0000000..bd050dc --- /dev/null +++ b/testing/target/debug/deps/testing-813a2e3b38183b9f.d @@ -0,0 +1,5 @@ +/home/carpenat/devel/learning-rust/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib: src/lib.rs + +/home/carpenat/devel/learning-rust/testing/target/debug/deps/testing-813a2e3b38183b9f.d: src/lib.rs + +src/lib.rs: diff --git a/testing/target/debug/deps/testing-e06eb924885e312d b/testing/target/debug/deps/testing-e06eb924885e312d new file mode 100755 index 0000000..4d1a22f Binary files /dev/null and b/testing/target/debug/deps/testing-e06eb924885e312d differ diff --git a/testing/target/debug/deps/testing-e06eb924885e312d.d b/testing/target/debug/deps/testing-e06eb924885e312d.d new file mode 100644 index 0000000..143be80 --- /dev/null +++ b/testing/target/debug/deps/testing-e06eb924885e312d.d @@ -0,0 +1,5 @@ +/home/carpenat/devel/learning-rust/testing/target/debug/deps/testing-e06eb924885e312d: src/lib.rs + +/home/carpenat/devel/learning-rust/testing/target/debug/deps/testing-e06eb924885e312d.d: src/lib.rs + +src/lib.rs: diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/1t03bhc6pzw2nd6m.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/1t03bhc6pzw2nd6m.o new file mode 100644 index 0000000..ede4797 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/1t03bhc6pzw2nd6m.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2psuteotuu954xoj.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2psuteotuu954xoj.o new file mode 100644 index 0000000..a42a57b Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2psuteotuu954xoj.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2ym1hzdvtimvhwql.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2ym1hzdvtimvhwql.o new file mode 100644 index 0000000..f7e0909 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2ym1hzdvtimvhwql.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/364l98n50kntzl3h.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/364l98n50kntzl3h.o new file mode 100644 index 0000000..5089e11 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/364l98n50kntzl3h.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3qmo95huem0jp0vl.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3qmo95huem0jp0vl.o new file mode 100644 index 0000000..04548b6 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3qmo95huem0jp0vl.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3u9xgzqcte93ux9p.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3u9xgzqcte93ux9p.o new file mode 100644 index 0000000..4920e41 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3u9xgzqcte93ux9p.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/47svy69thrkymuvc.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/47svy69thrkymuvc.o new file mode 100644 index 0000000..fa2b0a3 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/47svy69thrkymuvc.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/4gbiclu2mkawnr5u.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/4gbiclu2mkawnr5u.o new file mode 100644 index 0000000..a4e2c15 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/4gbiclu2mkawnr5u.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/5fkcxe5h8f2ytj7.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/5fkcxe5h8f2ytj7.o new file mode 100644 index 0000000..1c21374 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/5fkcxe5h8f2ytj7.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/9gxf4e6vopz3q84.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/9gxf4e6vopz3q84.o new file mode 100644 index 0000000..8e18549 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/9gxf4e6vopz3q84.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/dep-graph.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/dep-graph.bin new file mode 100644 index 0000000..f1189e7 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/dep-graph.bin differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/query-cache.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/query-cache.bin new file mode 100644 index 0000000..4530aca Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/query-cache.bin differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/work-products.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/work-products.bin new file mode 100644 index 0000000..3882f5c Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/work-products.bin differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q.lock b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q.lock new file mode 100755 index 0000000..e69de29 diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/141y9ktx8wlxevn4.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/141y9ktx8wlxevn4.o new file mode 100644 index 0000000..60e1def Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/141y9ktx8wlxevn4.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/16kthln99blc7qv3.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/16kthln99blc7qv3.o new file mode 100644 index 0000000..d0f206a Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/16kthln99blc7qv3.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o new file mode 100644 index 0000000..0eaa339 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1zze8extmhj1inh.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1zze8extmhj1inh.o new file mode 100644 index 0000000..c6a6704 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1zze8extmhj1inh.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o new file mode 100644 index 0000000..50b8e6e Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3fqxmakmjdr4865v.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3fqxmakmjdr4865v.o new file mode 100644 index 0000000..325a17f Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3fqxmakmjdr4865v.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3jssatmi8jwq2q03.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3jssatmi8jwq2q03.o new file mode 100644 index 0000000..979d83f Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3jssatmi8jwq2q03.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o new file mode 100644 index 0000000..15ca0e1 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o new file mode 100644 index 0000000..e63c90e Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4wme8wac7aw04zjw.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4wme8wac7aw04zjw.o new file mode 100644 index 0000000..770e5a7 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4wme8wac7aw04zjw.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o new file mode 100644 index 0000000..50a1a9d Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/dep-graph.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/dep-graph.bin new file mode 100644 index 0000000..fc8f40d Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/dep-graph.bin differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/query-cache.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/query-cache.bin new file mode 100644 index 0000000..b08311b Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/query-cache.bin differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/work-products.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/work-products.bin new file mode 100644 index 0000000..91d3b2b Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/work-products.bin differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm.lock b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm.lock new file mode 100755 index 0000000..e69de29 diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z new file mode 100644 index 0000000..40a464d Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.o b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.o new file mode 100644 index 0000000..83dc79e Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.o differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/dep-graph.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/dep-graph.bin new file mode 100644 index 0000000..4f35f8e Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/dep-graph.bin differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/query-cache.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/query-cache.bin new file mode 100644 index 0000000..a1edb07 Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/query-cache.bin differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/work-products.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/work-products.bin new file mode 100644 index 0000000..f0c5ea1 Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/work-products.bin differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b.lock b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b.lock new file mode 100755 index 0000000..e69de29 diff --git a/testing/target/debug/integration_test-1a358058a871a1c6 b/testing/target/debug/integration_test-1a358058a871a1c6 new file mode 100755 index 0000000..2d84f28 Binary files /dev/null and b/testing/target/debug/integration_test-1a358058a871a1c6 differ diff --git a/testing/target/debug/integration_test-1a358058a871a1c6.d b/testing/target/debug/integration_test-1a358058a871a1c6.d new file mode 100644 index 0000000..db7352c --- /dev/null +++ b/testing/target/debug/integration_test-1a358058a871a1c6.d @@ -0,0 +1 @@ +/home/carpenat/devel/learning-rust/testing/target/debug/integration_test-1a358058a871a1c6: /home/carpenat/devel/learning-rust/testing/src/lib.rs /home/carpenat/devel/learning-rust/testing/tests/integration_test.rs diff --git a/testing/target/debug/testing-e06eb924885e312d b/testing/target/debug/testing-e06eb924885e312d new file mode 100755 index 0000000..4d1a22f Binary files /dev/null and b/testing/target/debug/testing-e06eb924885e312d differ diff --git a/testing/target/debug/testing-e06eb924885e312d.d b/testing/target/debug/testing-e06eb924885e312d.d new file mode 100644 index 0000000..8d5a875 --- /dev/null +++ b/testing/target/debug/testing-e06eb924885e312d.d @@ -0,0 +1 @@ +/home/carpenat/devel/learning-rust/testing/target/debug/testing-e06eb924885e312d: /home/carpenat/devel/learning-rust/testing/src/lib.rs diff --git a/testing/tests/integration_test.rs b/testing/tests/integration_test.rs new file mode 100644 index 0000000..e0dbe08 --- /dev/null +++ b/testing/tests/integration_test.rs @@ -0,0 +1,7 @@ +use testing; + +#[test] +fn it_adds_two() { + assert_eq!(4, testing::add_two(2)); +} + -- cgit v1.2.3 From 7d5500f62c1eb316682d6c8de314d2b181c5248a Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Tue, 19 Feb 2019 17:08:00 -0500 Subject: Added minigrep. --- collections/.gitignore | 2 -- control/.gitignore | 2 -- employees/.gitignore | 2 -- enums/.gitignore | 2 -- errors/.gitignore | 2 -- fibonacci/.gitignore | 2 -- ftoctof/.gitignore | 2 -- functions/.gitignore | 2 -- generics/.gitignore | 2 -- guessing-game/.gitignore | 2 -- hello_world/hello_cargo/.gitignore | 2 -- horcrux/.gitignore | 2 -- mathsssss/.gitignore | 2 -- minigrep/Cargo.toml | 7 +++++++ minigrep/src/main.rs | 3 +++ ownership/.gitignore | 2 -- packages/my-project/.gitignore | 2 -- piglatin/.gitignore | 2 -- structs/.gitignore | 2 -- testing/target/.rustc_info.json | 2 +- ...egration-test-integration_test-1a358058a871a1c6 | Bin 26 -> 46 bytes ...egration-test-integration_test-1a358058a871a1c6 | 2 +- ...ion-test-integration_test-1a358058a871a1c6.json | 2 +- ...p-test-integration-test-common-6f29e5c582a3746b | Bin 0 -> 16 bytes .../test-integration-test-common-6f29e5c582a3746b | 1 + ...t-integration-test-common-6f29e5c582a3746b.json | 1 + .../lib-testing-813a2e3b38183b9f | 2 +- .../lib-testing-813a2e3b38183b9f.json | 2 +- .../test-lib-testing-e06eb924885e312d | 2 +- .../test-lib-testing-e06eb924885e312d.json | 2 +- testing/target/debug/common-6f29e5c582a3746b | Bin 0 -> 4325344 bytes testing/target/debug/common-6f29e5c582a3746b.d | 1 + testing/target/debug/deps/common-6f29e5c582a3746b | Bin 0 -> 4325344 bytes .../target/debug/deps/common-6f29e5c582a3746b.d | 5 +++++ .../debug/deps/integration_test-1a358058a871a1c6 | Bin 4345120 -> 4345688 bytes .../debug/deps/integration_test-1a358058a871a1c6.d | 5 +++-- .../debug/deps/libtesting-813a2e3b38183b9f.rlib | Bin 9130 -> 9126 bytes .../target/debug/deps/testing-813a2e3b38183b9f.d | 4 ++-- testing/target/debug/deps/testing-e06eb924885e312d | Bin 4347088 -> 4347136 bytes .../target/debug/deps/testing-e06eb924885e312d.d | 4 ++-- .../2e95vp1ukmju1ggz.o | Bin 0 -> 3504 bytes .../2horrs3kwkihz6vf.o | Bin 0 -> 6200 bytes .../31a05g3ojsbpqq6p.o | Bin 0 -> 4776 bytes .../3rbgd2y4kykiypkz.o | Bin 0 -> 1808 bytes .../4dhultyt95ejeuo6.o | Bin 0 -> 5720 bytes .../s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin | Bin 0 -> 224512 bytes .../query-cache.bin | Bin 0 -> 40539 bytes .../work-products.bin | Bin 0 -> 307 bytes .../common-345648p23iz32/s-f9n9qx0dam-b4boad.lock | 0 .../1t03bhc6pzw2nd6m.o | Bin 5744 -> 0 bytes .../2psuteotuu954xoj.o | Bin 7216 -> 0 bytes .../2ym1hzdvtimvhwql.o | Bin 12840 -> 0 bytes .../364l98n50kntzl3h.o | Bin 4792 -> 0 bytes .../3qmo95huem0jp0vl.o | Bin 9240 -> 0 bytes .../3u9xgzqcte93ux9p.o | Bin 14520 -> 0 bytes .../47svy69thrkymuvc.o | Bin 7592 -> 0 bytes .../4gbiclu2mkawnr5u.o | Bin 7984 -> 0 bytes .../5fkcxe5h8f2ytj7.o | Bin 3344 -> 0 bytes .../9gxf4e6vopz3q84.o | Bin 3528 -> 0 bytes .../dep-graph.bin | Bin 729498 -> 0 bytes .../query-cache.bin | Bin 116491 -> 0 bytes .../work-products.bin | Bin 573 -> 0 bytes .../s-f9n90kyodc-1q8ky3q.lock | 0 .../1t03bhc6pzw2nd6m.o | Bin 0 -> 5736 bytes .../2psuteotuu954xoj.o | Bin 0 -> 7216 bytes .../2ym1hzdvtimvhwql.o | Bin 0 -> 12832 bytes .../364l98n50kntzl3h.o | Bin 0 -> 4792 bytes .../3qmo95huem0jp0vl.o | Bin 0 -> 9240 bytes .../3u9xgzqcte93ux9p.o | Bin 0 -> 14520 bytes .../47svy69thrkymuvc.o | Bin 0 -> 7696 bytes .../4da5f6fetqzr6440.o | Bin 0 -> 2808 bytes .../4gbiclu2mkawnr5u.o | Bin 0 -> 7984 bytes .../5fkcxe5h8f2ytj7.o | Bin 0 -> 3336 bytes .../9gxf4e6vopz3q84.o | Bin 0 -> 3528 bytes .../dep-graph.bin | Bin 0 -> 732359 bytes .../query-cache.bin | Bin 0 -> 118126 bytes .../work-products.bin | Bin 0 -> 627 bytes .../s-f9na58eyej-1uikb2y.lock | 0 .../141y9ktx8wlxevn4.o | Bin 10392 -> 0 bytes .../16kthln99blc7qv3.o | Bin 5712 -> 0 bytes .../1hz7ymz8vueb3o0v.o | Bin 9208 -> 0 bytes .../1zze8extmhj1inh.o | Bin 7384 -> 0 bytes .../2h6gt9o6rvpvq7re.o | Bin 4760 -> 0 bytes .../3fqxmakmjdr4865v.o | Bin 14488 -> 0 bytes .../3jssatmi8jwq2q03.o | Bin 12808 -> 0 bytes .../3lo5qhj4pbw8ykv4.o | Bin 7960 -> 0 bytes .../4cx6zvlmoqzv3ctm.o | Bin 5416 -> 0 bytes .../4wme8wac7aw04zjw.o | Bin 3496 -> 0 bytes .../5ci3hw7n3cym6x67.o | Bin 9176 -> 0 bytes .../dep-graph.bin | Bin 770023 -> 0 bytes .../query-cache.bin | Bin 142259 -> 0 bytes .../work-products.bin | Bin 629 -> 0 bytes .../testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm.lock | 0 .../141y9ktx8wlxevn4.o | Bin 0 -> 10392 bytes .../16kthln99blc7qv3.o | Bin 0 -> 5712 bytes .../1hz7ymz8vueb3o0v.o | Bin 0 -> 9208 bytes .../1zze8extmhj1inh.o | Bin 0 -> 7384 bytes .../2h6gt9o6rvpvq7re.o | Bin 0 -> 4760 bytes .../3fqxmakmjdr4865v.o | Bin 0 -> 14488 bytes .../3jssatmi8jwq2q03.o | Bin 0 -> 12808 bytes .../3lo5qhj4pbw8ykv4.o | Bin 0 -> 7960 bytes .../4cx6zvlmoqzv3ctm.o | Bin 0 -> 5416 bytes .../4wme8wac7aw04zjw.o | Bin 0 -> 3496 bytes .../5ci3hw7n3cym6x67.o | Bin 0 -> 9176 bytes .../dep-graph.bin | Bin 0 -> 764491 bytes .../query-cache.bin | Bin 0 -> 128759 bytes .../work-products.bin | Bin 0 -> 629 bytes .../s-f9n96oov48-1xus0nk.lock | 0 .../2okzpkuw96q2j6ie.bc.z | Bin 2578 -> 0 bytes .../2okzpkuw96q2j6ie.o | Bin 4672 -> 0 bytes .../dep-graph.bin | Bin 64325 -> 0 bytes .../query-cache.bin | Bin 38617 -> 0 bytes .../work-products.bin | Bin 114 -> 0 bytes .../testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b.lock | 0 .../2okzpkuw96q2j6ie.bc.z | Bin 0 -> 2578 bytes .../2okzpkuw96q2j6ie.o | Bin 0 -> 4672 bytes .../dep-graph.bin | Bin 0 -> 63984 bytes .../query-cache.bin | Bin 0 -> 36405 bytes .../work-products.bin | Bin 0 -> 114 bytes .../testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua.lock | 0 .../target/debug/integration_test-1a358058a871a1c6 | Bin 4345120 -> 4345688 bytes .../debug/integration_test-1a358058a871a1c6.d | 2 +- testing/target/debug/testing-e06eb924885e312d | Bin 4347088 -> 4347136 bytes testing/target/debug/testing-e06eb924885e312d.d | 2 +- testing/tests/common/mod.rs | 3 +++ testing/tests/integration_test.rs | 4 +++- traits/.gitignore | 2 -- variables/.gitignore | 2 -- xmas/.gitignore | 2 -- 129 files changed, 40 insertions(+), 56 deletions(-) delete mode 100755 collections/.gitignore delete mode 100755 control/.gitignore delete mode 100644 employees/.gitignore delete mode 100755 enums/.gitignore delete mode 100644 errors/.gitignore delete mode 100644 fibonacci/.gitignore delete mode 100644 ftoctof/.gitignore delete mode 100755 functions/.gitignore delete mode 100644 generics/.gitignore delete mode 100755 guessing-game/.gitignore delete mode 100755 hello_world/hello_cargo/.gitignore delete mode 100755 horcrux/.gitignore delete mode 100644 mathsssss/.gitignore create mode 100644 minigrep/Cargo.toml create mode 100644 minigrep/src/main.rs delete mode 100755 ownership/.gitignore delete mode 100755 packages/my-project/.gitignore delete mode 100644 piglatin/.gitignore delete mode 100755 structs/.gitignore create mode 100644 testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b create mode 100644 testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b create mode 100644 testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b.json create mode 100755 testing/target/debug/common-6f29e5c582a3746b create mode 100644 testing/target/debug/common-6f29e5c582a3746b.d create mode 100755 testing/target/debug/deps/common-6f29e5c582a3746b create mode 100644 testing/target/debug/deps/common-6f29e5c582a3746b.d create mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2e95vp1ukmju1ggz.o create mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2horrs3kwkihz6vf.o create mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/31a05g3ojsbpqq6p.o create mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/3rbgd2y4kykiypkz.o create mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/4dhultyt95ejeuo6.o create mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin create mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin create mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/work-products.bin create mode 100755 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad.lock delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/1t03bhc6pzw2nd6m.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2psuteotuu954xoj.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2ym1hzdvtimvhwql.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/364l98n50kntzl3h.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3qmo95huem0jp0vl.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3u9xgzqcte93ux9p.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/47svy69thrkymuvc.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/4gbiclu2mkawnr5u.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/5fkcxe5h8f2ytj7.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/9gxf4e6vopz3q84.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/dep-graph.bin delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/query-cache.bin delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/work-products.bin delete mode 100755 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q.lock create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/1t03bhc6pzw2nd6m.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2psuteotuu954xoj.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2ym1hzdvtimvhwql.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/364l98n50kntzl3h.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3qmo95huem0jp0vl.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3u9xgzqcte93ux9p.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/47svy69thrkymuvc.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4da5f6fetqzr6440.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4gbiclu2mkawnr5u.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/5fkcxe5h8f2ytj7.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/9gxf4e6vopz3q84.o create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin create mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/work-products.bin create mode 100755 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y.lock delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/141y9ktx8wlxevn4.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/16kthln99blc7qv3.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1zze8extmhj1inh.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3fqxmakmjdr4865v.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3jssatmi8jwq2q03.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4wme8wac7aw04zjw.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/dep-graph.bin delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/query-cache.bin delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/work-products.bin delete mode 100755 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm.lock create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/141y9ktx8wlxevn4.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/16kthln99blc7qv3.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1zze8extmhj1inh.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3fqxmakmjdr4865v.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3jssatmi8jwq2q03.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4wme8wac7aw04zjw.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/query-cache.bin create mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/work-products.bin create mode 100755 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk.lock delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.o delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/dep-graph.bin delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/query-cache.bin delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/work-products.bin delete mode 100755 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b.lock create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.o create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin create mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/work-products.bin create mode 100755 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua.lock create mode 100644 testing/tests/common/mod.rs delete mode 100644 traits/.gitignore delete mode 100755 variables/.gitignore delete mode 100644 xmas/.gitignore diff --git a/collections/.gitignore b/collections/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/collections/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/control/.gitignore b/control/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/control/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/employees/.gitignore b/employees/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/employees/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/enums/.gitignore b/enums/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/enums/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/errors/.gitignore b/errors/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/errors/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/fibonacci/.gitignore b/fibonacci/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/fibonacci/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/ftoctof/.gitignore b/ftoctof/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/ftoctof/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/functions/.gitignore b/functions/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/functions/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/generics/.gitignore b/generics/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/generics/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/guessing-game/.gitignore b/guessing-game/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/guessing-game/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/hello_world/hello_cargo/.gitignore b/hello_world/hello_cargo/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/hello_world/hello_cargo/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/horcrux/.gitignore b/horcrux/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/horcrux/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/mathsssss/.gitignore b/mathsssss/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/mathsssss/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/minigrep/Cargo.toml b/minigrep/Cargo.toml new file mode 100644 index 0000000..6a8174c --- /dev/null +++ b/minigrep/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "minigrep" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/minigrep/src/main.rs b/minigrep/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/minigrep/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/ownership/.gitignore b/ownership/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/ownership/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/packages/my-project/.gitignore b/packages/my-project/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/packages/my-project/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/piglatin/.gitignore b/piglatin/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/piglatin/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/structs/.gitignore b/structs/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/structs/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/testing/target/.rustc_info.json b/testing/target/.rustc_info.json index 4d57dd8..600a2e8 100644 --- a/testing/target/.rustc_info.json +++ b/testing/target/.rustc_info.json @@ -1 +1 @@ -{"rustc_fingerprint":5868336760187092304,"outputs":{"1164083562126845933":["rustc 1.32.0 (9fda7c223 2019-01-16)\nbinary: rustc\ncommit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b\ncommit-date: 2019-01-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.32.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\"\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\"\nunix\n",""]},"successes":{}} \ No newline at end of file +{"rustc_fingerprint":9405769371271905430,"outputs":{"1617349019360157463":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/adam/.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\"\nunix\n",""],"1164083562126845933":["rustc 1.32.0 (9fda7c223 2019-01-16)\nbinary: rustc\ncommit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b\ncommit-date: 2019-01-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.32.0\nLLVM version: 8.0\n",""],"15337506775154344876":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/adam/.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\"\nunix\n",""]},"successes":{}} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 index b4f0937..af26160 100644 Binary files a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 and b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 differ diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 index 174c9ef..4cb1fbf 100644 --- a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 +++ b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 @@ -1 +1 @@ -98ba49ddce7519f3 \ No newline at end of file +4caec4840b18f750 \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json index 4a17cde..45fe102 100644 --- a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json +++ b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json @@ -1 +1 @@ -{"rustc":11779505878581416876,"features":"[]","target":3780201253000999443,"profile":549983324857518330,"path":4024921074540020615,"deps":[["testing v0.1.0 (/home/carpenat/devel/learning-rust/testing)","testing",1889444628513945398]],"local":[{"MtimeBased":[[1550611342,290622300],".fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file +{"rustc":11779505878581416876,"features":"[]","target":3780201253000999443,"profile":18223041742459859373,"path":4024921074540020615,"deps":[["testing v0.1.0 (/home/adam/devel/learning-rust/testing)","testing",4177225302602566516]],"local":[{"MtimeBased":[[1550613799,430839384],".fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b new file mode 100644 index 0000000..1a4de97 Binary files /dev/null and b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b differ diff --git a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b new file mode 100644 index 0000000..acce564 --- /dev/null +++ b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b @@ -0,0 +1 @@ +55e68627d4517020 \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b.json b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b.json new file mode 100644 index 0000000..8059742 --- /dev/null +++ b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b.json @@ -0,0 +1 @@ +{"rustc":11779505878581416876,"features":"[]","target":14558030872309024137,"profile":18223041742459859373,"path":7238438279853508500,"deps":[["testing v0.1.0 (/home/adam/devel/learning-rust/testing)","testing",4177225302602566516]],"local":[{"MtimeBased":[[1550612933,697509238],".fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f index 2589f14..bd542ea 100644 --- a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f +++ b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f @@ -1 +1 @@ -36f75701e1a7381a \ No newline at end of file +744b66e4477cf839 \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json index 05cee3f..60cc99b 100644 --- a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json +++ b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json @@ -1 +1 @@ -{"rustc":11779505878581416876,"features":"[]","target":916269982466922323,"profile":18323052400864958076,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550603915,601749100],".fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file +{"rustc":11779505878581416876,"features":"[]","target":916269982466922323,"profile":3025206789366041675,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550611710,297513131],".fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d index 5faca36..cb9313f 100644 --- a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d +++ b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d @@ -1 +1 @@ -21f7af5eedf171b5 \ No newline at end of file +418854d8d907c30b \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json index 654a00b..8afde04 100644 --- a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json +++ b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json @@ -1 +1 @@ -{"rustc":11779505878581416876,"features":"[]","target":916269982466922323,"profile":549983324857518330,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550603916,213121900],".fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file +{"rustc":11779505878581416876,"features":"[]","target":916269982466922323,"profile":18223041742459859373,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550611710,424179798],".fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/common-6f29e5c582a3746b b/testing/target/debug/common-6f29e5c582a3746b new file mode 100755 index 0000000..198ffed Binary files /dev/null and b/testing/target/debug/common-6f29e5c582a3746b differ diff --git a/testing/target/debug/common-6f29e5c582a3746b.d b/testing/target/debug/common-6f29e5c582a3746b.d new file mode 100644 index 0000000..55f5b6b --- /dev/null +++ b/testing/target/debug/common-6f29e5c582a3746b.d @@ -0,0 +1 @@ +/home/adam/devel/learning-rust/testing/target/debug/common-6f29e5c582a3746b: /home/adam/devel/learning-rust/testing/src/lib.rs /home/adam/devel/learning-rust/testing/tests/common.rs diff --git a/testing/target/debug/deps/common-6f29e5c582a3746b b/testing/target/debug/deps/common-6f29e5c582a3746b new file mode 100755 index 0000000..198ffed Binary files /dev/null and b/testing/target/debug/deps/common-6f29e5c582a3746b differ diff --git a/testing/target/debug/deps/common-6f29e5c582a3746b.d b/testing/target/debug/deps/common-6f29e5c582a3746b.d new file mode 100644 index 0000000..c6dce8e --- /dev/null +++ b/testing/target/debug/deps/common-6f29e5c582a3746b.d @@ -0,0 +1,5 @@ +/home/adam/devel/learning-rust/testing/target/debug/deps/common-6f29e5c582a3746b: tests/common.rs + +/home/adam/devel/learning-rust/testing/target/debug/deps/common-6f29e5c582a3746b.d: tests/common.rs + +tests/common.rs: diff --git a/testing/target/debug/deps/integration_test-1a358058a871a1c6 b/testing/target/debug/deps/integration_test-1a358058a871a1c6 index 2d84f28..20dfc4c 100755 Binary files a/testing/target/debug/deps/integration_test-1a358058a871a1c6 and b/testing/target/debug/deps/integration_test-1a358058a871a1c6 differ diff --git a/testing/target/debug/deps/integration_test-1a358058a871a1c6.d b/testing/target/debug/deps/integration_test-1a358058a871a1c6.d index dcc0a0e..0dbda3b 100644 --- a/testing/target/debug/deps/integration_test-1a358058a871a1c6.d +++ b/testing/target/debug/deps/integration_test-1a358058a871a1c6.d @@ -1,5 +1,6 @@ -/home/carpenat/devel/learning-rust/testing/target/debug/deps/integration_test-1a358058a871a1c6: tests/integration_test.rs +/home/adam/devel/learning-rust/testing/target/debug/deps/integration_test-1a358058a871a1c6: tests/integration_test.rs tests/common/mod.rs -/home/carpenat/devel/learning-rust/testing/target/debug/deps/integration_test-1a358058a871a1c6.d: tests/integration_test.rs +/home/adam/devel/learning-rust/testing/target/debug/deps/integration_test-1a358058a871a1c6.d: tests/integration_test.rs tests/common/mod.rs tests/integration_test.rs: +tests/common/mod.rs: diff --git a/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib b/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib index af1f402..c4c9edb 100644 Binary files a/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib and b/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib differ diff --git a/testing/target/debug/deps/testing-813a2e3b38183b9f.d b/testing/target/debug/deps/testing-813a2e3b38183b9f.d index bd050dc..9b18c75 100644 --- a/testing/target/debug/deps/testing-813a2e3b38183b9f.d +++ b/testing/target/debug/deps/testing-813a2e3b38183b9f.d @@ -1,5 +1,5 @@ -/home/carpenat/devel/learning-rust/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib: src/lib.rs +/home/adam/devel/learning-rust/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib: src/lib.rs -/home/carpenat/devel/learning-rust/testing/target/debug/deps/testing-813a2e3b38183b9f.d: src/lib.rs +/home/adam/devel/learning-rust/testing/target/debug/deps/testing-813a2e3b38183b9f.d: src/lib.rs src/lib.rs: diff --git a/testing/target/debug/deps/testing-e06eb924885e312d b/testing/target/debug/deps/testing-e06eb924885e312d index 4d1a22f..ca91ebc 100755 Binary files a/testing/target/debug/deps/testing-e06eb924885e312d and b/testing/target/debug/deps/testing-e06eb924885e312d differ diff --git a/testing/target/debug/deps/testing-e06eb924885e312d.d b/testing/target/debug/deps/testing-e06eb924885e312d.d index 143be80..869b591 100644 --- a/testing/target/debug/deps/testing-e06eb924885e312d.d +++ b/testing/target/debug/deps/testing-e06eb924885e312d.d @@ -1,5 +1,5 @@ -/home/carpenat/devel/learning-rust/testing/target/debug/deps/testing-e06eb924885e312d: src/lib.rs +/home/adam/devel/learning-rust/testing/target/debug/deps/testing-e06eb924885e312d: src/lib.rs -/home/carpenat/devel/learning-rust/testing/target/debug/deps/testing-e06eb924885e312d.d: src/lib.rs +/home/adam/devel/learning-rust/testing/target/debug/deps/testing-e06eb924885e312d.d: src/lib.rs src/lib.rs: diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2e95vp1ukmju1ggz.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2e95vp1ukmju1ggz.o new file mode 100644 index 0000000..301fbd7 Binary files /dev/null and b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2e95vp1ukmju1ggz.o differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2horrs3kwkihz6vf.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2horrs3kwkihz6vf.o new file mode 100644 index 0000000..27df598 Binary files /dev/null and b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2horrs3kwkihz6vf.o differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/31a05g3ojsbpqq6p.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/31a05g3ojsbpqq6p.o new file mode 100644 index 0000000..53234a5 Binary files /dev/null and b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/31a05g3ojsbpqq6p.o differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/3rbgd2y4kykiypkz.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/3rbgd2y4kykiypkz.o new file mode 100644 index 0000000..4ae506a Binary files /dev/null and b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/3rbgd2y4kykiypkz.o differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/4dhultyt95ejeuo6.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/4dhultyt95ejeuo6.o new file mode 100644 index 0000000..f1fd6d3 Binary files /dev/null and b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/4dhultyt95ejeuo6.o differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin new file mode 100644 index 0000000..e3e8421 Binary files /dev/null and b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin new file mode 100644 index 0000000..d4a7d8c Binary files /dev/null and b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/work-products.bin b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/work-products.bin new file mode 100644 index 0000000..a699fae Binary files /dev/null and b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/work-products.bin differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad.lock b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad.lock new file mode 100755 index 0000000..e69de29 diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/1t03bhc6pzw2nd6m.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/1t03bhc6pzw2nd6m.o deleted file mode 100644 index ede4797..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/1t03bhc6pzw2nd6m.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2psuteotuu954xoj.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2psuteotuu954xoj.o deleted file mode 100644 index a42a57b..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2psuteotuu954xoj.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2ym1hzdvtimvhwql.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2ym1hzdvtimvhwql.o deleted file mode 100644 index f7e0909..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/2ym1hzdvtimvhwql.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/364l98n50kntzl3h.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/364l98n50kntzl3h.o deleted file mode 100644 index 5089e11..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/364l98n50kntzl3h.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3qmo95huem0jp0vl.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3qmo95huem0jp0vl.o deleted file mode 100644 index 04548b6..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3qmo95huem0jp0vl.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3u9xgzqcte93ux9p.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3u9xgzqcte93ux9p.o deleted file mode 100644 index 4920e41..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/3u9xgzqcte93ux9p.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/47svy69thrkymuvc.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/47svy69thrkymuvc.o deleted file mode 100644 index fa2b0a3..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/47svy69thrkymuvc.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/4gbiclu2mkawnr5u.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/4gbiclu2mkawnr5u.o deleted file mode 100644 index a4e2c15..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/4gbiclu2mkawnr5u.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/5fkcxe5h8f2ytj7.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/5fkcxe5h8f2ytj7.o deleted file mode 100644 index 1c21374..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/5fkcxe5h8f2ytj7.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/9gxf4e6vopz3q84.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/9gxf4e6vopz3q84.o deleted file mode 100644 index 8e18549..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/9gxf4e6vopz3q84.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/dep-graph.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/dep-graph.bin deleted file mode 100644 index f1189e7..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/dep-graph.bin and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/query-cache.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/query-cache.bin deleted file mode 100644 index 4530aca..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/query-cache.bin and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/work-products.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/work-products.bin deleted file mode 100644 index 3882f5c..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q-19bzx4tekp0qp/work-products.bin and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q.lock b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9n90kyodc-1q8ky3q.lock deleted file mode 100755 index e69de29..0000000 diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/1t03bhc6pzw2nd6m.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/1t03bhc6pzw2nd6m.o new file mode 100644 index 0000000..48469e9 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/1t03bhc6pzw2nd6m.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2psuteotuu954xoj.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2psuteotuu954xoj.o new file mode 100644 index 0000000..188e2ed Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2psuteotuu954xoj.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2ym1hzdvtimvhwql.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2ym1hzdvtimvhwql.o new file mode 100644 index 0000000..5414440 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2ym1hzdvtimvhwql.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/364l98n50kntzl3h.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/364l98n50kntzl3h.o new file mode 100644 index 0000000..4ce7b9b Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/364l98n50kntzl3h.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3qmo95huem0jp0vl.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3qmo95huem0jp0vl.o new file mode 100644 index 0000000..5817de8 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3qmo95huem0jp0vl.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3u9xgzqcte93ux9p.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3u9xgzqcte93ux9p.o new file mode 100644 index 0000000..f093979 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3u9xgzqcte93ux9p.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/47svy69thrkymuvc.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/47svy69thrkymuvc.o new file mode 100644 index 0000000..9b8ecfc Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/47svy69thrkymuvc.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4da5f6fetqzr6440.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4da5f6fetqzr6440.o new file mode 100644 index 0000000..c1d4503 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4da5f6fetqzr6440.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4gbiclu2mkawnr5u.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4gbiclu2mkawnr5u.o new file mode 100644 index 0000000..0784d47 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4gbiclu2mkawnr5u.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/5fkcxe5h8f2ytj7.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/5fkcxe5h8f2ytj7.o new file mode 100644 index 0000000..11868e3 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/5fkcxe5h8f2ytj7.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/9gxf4e6vopz3q84.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/9gxf4e6vopz3q84.o new file mode 100644 index 0000000..c5de1c1 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/9gxf4e6vopz3q84.o differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin new file mode 100644 index 0000000..c51c5ef Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin new file mode 100644 index 0000000..20c7600 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/work-products.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/work-products.bin new file mode 100644 index 0000000..baa8d18 Binary files /dev/null and b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/work-products.bin differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y.lock b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y.lock new file mode 100755 index 0000000..e69de29 diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/141y9ktx8wlxevn4.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/141y9ktx8wlxevn4.o deleted file mode 100644 index 60e1def..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/141y9ktx8wlxevn4.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/16kthln99blc7qv3.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/16kthln99blc7qv3.o deleted file mode 100644 index d0f206a..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/16kthln99blc7qv3.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o deleted file mode 100644 index 0eaa339..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1zze8extmhj1inh.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1zze8extmhj1inh.o deleted file mode 100644 index c6a6704..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/1zze8extmhj1inh.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o deleted file mode 100644 index 50b8e6e..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3fqxmakmjdr4865v.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3fqxmakmjdr4865v.o deleted file mode 100644 index 325a17f..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3fqxmakmjdr4865v.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3jssatmi8jwq2q03.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3jssatmi8jwq2q03.o deleted file mode 100644 index 979d83f..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3jssatmi8jwq2q03.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o deleted file mode 100644 index 15ca0e1..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o deleted file mode 100644 index e63c90e..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4wme8wac7aw04zjw.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4wme8wac7aw04zjw.o deleted file mode 100644 index 770e5a7..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/4wme8wac7aw04zjw.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o deleted file mode 100644 index 50a1a9d..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/dep-graph.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/dep-graph.bin deleted file mode 100644 index fc8f40d..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/dep-graph.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/query-cache.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/query-cache.bin deleted file mode 100644 index b08311b..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/query-cache.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/work-products.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/work-products.bin deleted file mode 100644 index 91d3b2b..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm-3v2a4ka3vuel2/work-products.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm.lock b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n5lrve7u-x9t0qm.lock deleted file mode 100755 index e69de29..0000000 diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/141y9ktx8wlxevn4.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/141y9ktx8wlxevn4.o new file mode 100644 index 0000000..60e1def Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/141y9ktx8wlxevn4.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/16kthln99blc7qv3.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/16kthln99blc7qv3.o new file mode 100644 index 0000000..d0f206a Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/16kthln99blc7qv3.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o new file mode 100644 index 0000000..0eaa339 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1zze8extmhj1inh.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1zze8extmhj1inh.o new file mode 100644 index 0000000..c6a6704 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1zze8extmhj1inh.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o new file mode 100644 index 0000000..50b8e6e Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3fqxmakmjdr4865v.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3fqxmakmjdr4865v.o new file mode 100644 index 0000000..325a17f Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3fqxmakmjdr4865v.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3jssatmi8jwq2q03.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3jssatmi8jwq2q03.o new file mode 100644 index 0000000..979d83f Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3jssatmi8jwq2q03.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o new file mode 100644 index 0000000..15ca0e1 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o new file mode 100644 index 0000000..e63c90e Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4wme8wac7aw04zjw.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4wme8wac7aw04zjw.o new file mode 100644 index 0000000..770e5a7 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4wme8wac7aw04zjw.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o new file mode 100644 index 0000000..50a1a9d Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin new file mode 100644 index 0000000..2c801b7 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/query-cache.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/query-cache.bin new file mode 100644 index 0000000..6f41b12 Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/query-cache.bin differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/work-products.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/work-products.bin new file mode 100644 index 0000000..91d3b2b Binary files /dev/null and b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/work-products.bin differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk.lock b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk.lock new file mode 100755 index 0000000..e69de29 diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z deleted file mode 100644 index 40a464d..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.o b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.o deleted file mode 100644 index 83dc79e..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/2okzpkuw96q2j6ie.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/dep-graph.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/dep-graph.bin deleted file mode 100644 index 4f35f8e..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/dep-graph.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/query-cache.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/query-cache.bin deleted file mode 100644 index a1edb07..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/query-cache.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/work-products.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/work-products.bin deleted file mode 100644 index f0c5ea1..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b-10xvk3tbef9vt/work-products.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b.lock b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n5lrv8vq-akvm6b.lock deleted file mode 100755 index e69de29..0000000 diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z new file mode 100644 index 0000000..40a464d Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.o b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.o new file mode 100644 index 0000000..83dc79e Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.o differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin new file mode 100644 index 0000000..7c82ce5 Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin new file mode 100644 index 0000000..0ccf475 Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/work-products.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/work-products.bin new file mode 100644 index 0000000..f0c5ea1 Binary files /dev/null and b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/work-products.bin differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua.lock b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua.lock new file mode 100755 index 0000000..e69de29 diff --git a/testing/target/debug/integration_test-1a358058a871a1c6 b/testing/target/debug/integration_test-1a358058a871a1c6 index 2d84f28..20dfc4c 100755 Binary files a/testing/target/debug/integration_test-1a358058a871a1c6 and b/testing/target/debug/integration_test-1a358058a871a1c6 differ diff --git a/testing/target/debug/integration_test-1a358058a871a1c6.d b/testing/target/debug/integration_test-1a358058a871a1c6.d index db7352c..710433e 100644 --- a/testing/target/debug/integration_test-1a358058a871a1c6.d +++ b/testing/target/debug/integration_test-1a358058a871a1c6.d @@ -1 +1 @@ -/home/carpenat/devel/learning-rust/testing/target/debug/integration_test-1a358058a871a1c6: /home/carpenat/devel/learning-rust/testing/src/lib.rs /home/carpenat/devel/learning-rust/testing/tests/integration_test.rs +/home/adam/devel/learning-rust/testing/target/debug/integration_test-1a358058a871a1c6: /home/adam/devel/learning-rust/testing/src/lib.rs /home/adam/devel/learning-rust/testing/tests/common/mod.rs /home/adam/devel/learning-rust/testing/tests/integration_test.rs diff --git a/testing/target/debug/testing-e06eb924885e312d b/testing/target/debug/testing-e06eb924885e312d index 4d1a22f..ca91ebc 100755 Binary files a/testing/target/debug/testing-e06eb924885e312d and b/testing/target/debug/testing-e06eb924885e312d differ diff --git a/testing/target/debug/testing-e06eb924885e312d.d b/testing/target/debug/testing-e06eb924885e312d.d index 8d5a875..45d0750 100644 --- a/testing/target/debug/testing-e06eb924885e312d.d +++ b/testing/target/debug/testing-e06eb924885e312d.d @@ -1 +1 @@ -/home/carpenat/devel/learning-rust/testing/target/debug/testing-e06eb924885e312d: /home/carpenat/devel/learning-rust/testing/src/lib.rs +/home/adam/devel/learning-rust/testing/target/debug/testing-e06eb924885e312d: /home/adam/devel/learning-rust/testing/src/lib.rs diff --git a/testing/tests/common/mod.rs b/testing/tests/common/mod.rs new file mode 100644 index 0000000..c00b3a6 --- /dev/null +++ b/testing/tests/common/mod.rs @@ -0,0 +1,3 @@ +pub fn setup() { + // setup code +} diff --git a/testing/tests/integration_test.rs b/testing/tests/integration_test.rs index e0dbe08..ce04ce3 100644 --- a/testing/tests/integration_test.rs +++ b/testing/tests/integration_test.rs @@ -1,7 +1,9 @@ use testing; +mod common; #[test] fn it_adds_two() { - assert_eq!(4, testing::add_two(2)); + common::setup(); + assert_eq!(4, testing::add_two(2)); } diff --git a/traits/.gitignore b/traits/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/traits/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/variables/.gitignore b/variables/.gitignore deleted file mode 100755 index 53eaa21..0000000 --- a/variables/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk diff --git a/xmas/.gitignore b/xmas/.gitignore deleted file mode 100644 index 53eaa21..0000000 --- a/xmas/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -**/*.rs.bk -- cgit v1.2.3 From a0070916ef13387461a11bb26d5c798b07121165 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Mon, 25 Feb 2019 16:47:02 -0500 Subject: Updated to include Config struct. --- minigrep/.gitignore | 3 +++ minigrep/src/main.rs | 39 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 minigrep/.gitignore diff --git a/minigrep/.gitignore b/minigrep/.gitignore new file mode 100644 index 0000000..12847b6 --- /dev/null +++ b/minigrep/.gitignore @@ -0,0 +1,3 @@ +target/ +Cargo.lock +*.txt diff --git a/minigrep/src/main.rs b/minigrep/src/main.rs index e7a11a9..1e04b5e 100644 --- a/minigrep/src/main.rs +++ b/minigrep/src/main.rs @@ -1,3 +1,40 @@ +use std::process; +use std::env; +use std::fs; + fn main() { - println!("Hello, world!"); + let args: Vec = env::args().collect(); + let config = Config::new(&args).unwrap_or_else(|err| { + println!("Problem parsing arguments: {}", err); + process::exit(1); + }); + + println!("Searching for {}", config.query); + println!("In file {}", config.filename); + + let contents = fs::read_to_string(config.filename) + .expect("something went wrong."); + + dbg!(contents); +} + +struct Config { + query: String, + filename: String, +} + +impl Config { + + + fn new(args: &[String]) -> Result { + + if args.len() < 3 { + panic!("not enough args"); + } + + let query = args[1].clone(); + let filename = args[2].clone(); + Ok(Config { query, filename }) + } + } -- cgit v1.2.3 From b7dd584bca69dc729d77b11b6a8378b8be0af647 Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Mon, 25 Feb 2019 21:15:40 -0500 Subject: Added lifetimes; split code into library for minigrep. --- lifetimes/Cargo.lock | 4 ++ lifetimes/Cargo.toml | 7 ++++ lifetimes/src/main.rs | 43 +++++++++++++++++++++ lifetimes/target/.rustc_info.json | 1 + lifetimes/target/debug/.cargo-lock | 0 .../bin-lifetimes-efb5637f417930c3 | 1 + .../bin-lifetimes-efb5637f417930c3.json | 1 + .../dep-bin-lifetimes-efb5637f417930c3 | Bin 0 -> 12 bytes .../target/debug/deps/lifetimes-efb5637f417930c3 | Bin 0 -> 2529272 bytes .../target/debug/deps/lifetimes-efb5637f417930c3.d | 5 +++ .../10oafshzgt3w3xeo.o | Bin 0 -> 12192 bytes .../12ep0b6r7gf5xev8.o | Bin 0 -> 7928 bytes .../15o4oy1d5i2cot5y.o | Bin 0 -> 18560 bytes .../1dqcrqv4ajxjkaig.o | Bin 0 -> 3504 bytes .../1dswbkuzj3w28w51.o | Bin 0 -> 4120 bytes .../1gqqj20irkfzwcwh.o | Bin 0 -> 3336 bytes .../1imy25kgsjnvggrs.o | Bin 0 -> 27320 bytes .../1ji0leyxj7ek98ow.o | Bin 0 -> 6016 bytes .../1mrdfm11mjvkc3ae.o | Bin 0 -> 13080 bytes .../1nf5yxicd99au96g.o | Bin 0 -> 5392 bytes .../1s7p0acfczq7s1kq.o | Bin 0 -> 36856 bytes .../1umnfcvuqn4ilt61.o | Bin 0 -> 14552 bytes .../1wcconq124fi8jmy.o | Bin 0 -> 10152 bytes .../20cjgxwra8j8ma5.o | Bin 0 -> 5136 bytes .../2eb6dzxk4fpfgct2.o | Bin 0 -> 33968 bytes .../2kn7sctw717hdvxv.o | Bin 0 -> 3504 bytes .../36p29dusvnnao4l6.o | Bin 0 -> 3128 bytes .../37lsqijwyl9hcqdy.o | Bin 0 -> 3504 bytes .../3mtnm9o8g1d4ay08.o | Bin 0 -> 11240 bytes .../3o7odmue6rclr07q.o | Bin 0 -> 7768 bytes .../3ovm9mpazp54gvkw.o | Bin 0 -> 12816 bytes .../3vrsmjefktbf358o.o | Bin 0 -> 13472 bytes .../3x4s2wz09up1dm2n.o | Bin 0 -> 12336 bytes .../3znqya38t8dwe2at.o | Bin 0 -> 4280 bytes .../45ny6671yk2ypgvo.o | Bin 0 -> 5712 bytes .../4git0qmjrupi8t61.o | Bin 0 -> 6352 bytes .../4glxfcni5mbpugli.o | Bin 0 -> 4744 bytes .../4inaqhg23zqxyqnc.o | Bin 0 -> 8928 bytes .../4m39n3seakb54iax.o | Bin 0 -> 5816 bytes .../4z4nzjl4q0pz1f04.o | Bin 0 -> 19784 bytes .../50eev5qtb13tzx9b.o | Bin 0 -> 16592 bytes .../51gmswjzv1agzg8f.o | Bin 0 -> 12440 bytes .../5d28jwqkfvzyq5h1.o | Bin 0 -> 5944 bytes .../b9nyaare4e7lyek.o | Bin 0 -> 10944 bytes .../dep-graph.bin | Bin 0 -> 1048515 bytes .../pqtu3yin1ijq83m.o | Bin 0 -> 10880 bytes .../query-cache.bin | Bin 0 -> 245937 bytes .../tq446ynsxari1o4.o | Bin 0 -> 4760 bytes .../work-products.bin | Bin 0 -> 1973 bytes .../s-f9jk3gevx7-13gs7v8.lock | 0 lifetimes/target/debug/lifetimes | Bin 0 -> 2529272 bytes lifetimes/target/debug/lifetimes.d | 1 + minigrep/src/lib.rs | 29 ++++++++++++++ minigrep/src/main.rs | 38 +++++------------- 54 files changed, 101 insertions(+), 29 deletions(-) create mode 100644 lifetimes/Cargo.lock create mode 100644 lifetimes/Cargo.toml create mode 100644 lifetimes/src/main.rs create mode 100644 lifetimes/target/.rustc_info.json create mode 100644 lifetimes/target/debug/.cargo-lock create mode 100644 lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3 create mode 100644 lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3.json create mode 100644 lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3 create mode 100755 lifetimes/target/debug/deps/lifetimes-efb5637f417930c3 create mode 100644 lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/10oafshzgt3w3xeo.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/12ep0b6r7gf5xev8.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/15o4oy1d5i2cot5y.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dqcrqv4ajxjkaig.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dswbkuzj3w28w51.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1gqqj20irkfzwcwh.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1imy25kgsjnvggrs.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1ji0leyxj7ek98ow.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1mrdfm11mjvkc3ae.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1nf5yxicd99au96g.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1s7p0acfczq7s1kq.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1umnfcvuqn4ilt61.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1wcconq124fi8jmy.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/20cjgxwra8j8ma5.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2eb6dzxk4fpfgct2.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2kn7sctw717hdvxv.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/36p29dusvnnao4l6.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/37lsqijwyl9hcqdy.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3mtnm9o8g1d4ay08.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3o7odmue6rclr07q.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3ovm9mpazp54gvkw.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3vrsmjefktbf358o.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3x4s2wz09up1dm2n.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3znqya38t8dwe2at.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/45ny6671yk2ypgvo.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4git0qmjrupi8t61.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4glxfcni5mbpugli.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4inaqhg23zqxyqnc.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4m39n3seakb54iax.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4z4nzjl4q0pz1f04.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/50eev5qtb13tzx9b.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/51gmswjzv1agzg8f.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/5d28jwqkfvzyq5h1.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/b9nyaare4e7lyek.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/pqtu3yin1ijq83m.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/query-cache.bin create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/tq446ynsxari1o4.o create mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/work-products.bin create mode 100755 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8.lock create mode 100755 lifetimes/target/debug/lifetimes create mode 100644 lifetimes/target/debug/lifetimes.d create mode 100644 minigrep/src/lib.rs diff --git a/lifetimes/Cargo.lock b/lifetimes/Cargo.lock new file mode 100644 index 0000000..0c2507e --- /dev/null +++ b/lifetimes/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "lifetimes" +version = "0.1.0" + diff --git a/lifetimes/Cargo.toml b/lifetimes/Cargo.toml new file mode 100644 index 0000000..8003864 --- /dev/null +++ b/lifetimes/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "lifetimes" +version = "0.1.0" +authors = ["53hornet <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/lifetimes/src/main.rs b/lifetimes/src/main.rs new file mode 100644 index 0000000..87b6ce6 --- /dev/null +++ b/lifetimes/src/main.rs @@ -0,0 +1,43 @@ +fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { + // what this is doing is basically tagging x and y and the + // result with the same 'a, telling rust not to let any + // of them expire before the others; that way nothing + // will go out of scope prematurely and the result will + // always have a non-null reference + + // basically, 'a gives all three values the same lifetime. + // so long as they're all alive at the same time, there are + // no reference errors + + // note that the lifetime selected for the result is + // equal to the smaller of the lifetimes of the + // parameters + + if x.len() > y.len() { + x + } + else { + y + } +} + +struct ImportantExcerpt<'a> { + part: &'a str, +} + +fn main() { + let string1 = String::from("abcd"); + { + let string2 = "xyz"; + + let result = longest(string1.as_str(), string2); + //dbg!(result); + } + + let script = String::from("Before time began, there was the cube. We know not where it comes from."); + let first_sentence = script.split('.') + .next() + .expect("Could not find a '.'"); + let i = ImportantExcerpt { part: first_sentence }; + dbg!(i.part); +} diff --git a/lifetimes/target/.rustc_info.json b/lifetimes/target/.rustc_info.json new file mode 100644 index 0000000..63426f8 --- /dev/null +++ b/lifetimes/target/.rustc_info.json @@ -0,0 +1 @@ +{"rustc_fingerprint":13848232676847739476,"outputs":{"15337506775154344876":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/adam/.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\"\nunix\n",""],"1617349019360157463":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/adam/.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\"\nunix\n",""],"1164083562126845933":["rustc 1.32.0 (9fda7c223 2019-01-16)\nbinary: rustc\ncommit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b\ncommit-date: 2019-01-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.32.0\nLLVM version: 8.0\n",""]},"successes":{}} \ No newline at end of file diff --git a/lifetimes/target/debug/.cargo-lock b/lifetimes/target/debug/.cargo-lock new file mode 100644 index 0000000..e69de29 diff --git a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3 b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3 new file mode 100644 index 0000000..f146f56 --- /dev/null +++ b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3 @@ -0,0 +1 @@ +c7df6e6b96a818a1 \ No newline at end of file diff --git a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3.json b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3.json new file mode 100644 index 0000000..3f090d3 --- /dev/null +++ b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3.json @@ -0,0 +1 @@ +{"rustc":11779505878581416876,"features":"[]","target":17218091323931530620,"profile":1241200217276728497,"path":1036222786711178230,"deps":[],"local":[{"MtimeBased":[[1550322003,293604958],".fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3 b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3 new file mode 100644 index 0000000..e046c38 Binary files /dev/null and b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3 differ diff --git a/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3 b/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3 new file mode 100755 index 0000000..8edfb67 Binary files /dev/null and b/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3 differ diff --git a/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d b/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d new file mode 100644 index 0000000..0a866ec --- /dev/null +++ b/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d @@ -0,0 +1,5 @@ +/home/adam/devel/learning-rust/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3: src/main.rs + +/home/adam/devel/learning-rust/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d: src/main.rs + +src/main.rs: diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/10oafshzgt3w3xeo.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/10oafshzgt3w3xeo.o new file mode 100644 index 0000000..46d47f0 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/10oafshzgt3w3xeo.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/12ep0b6r7gf5xev8.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/12ep0b6r7gf5xev8.o new file mode 100644 index 0000000..a010637 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/12ep0b6r7gf5xev8.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/15o4oy1d5i2cot5y.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/15o4oy1d5i2cot5y.o new file mode 100644 index 0000000..e4908a1 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/15o4oy1d5i2cot5y.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dqcrqv4ajxjkaig.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dqcrqv4ajxjkaig.o new file mode 100644 index 0000000..4e616c8 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dqcrqv4ajxjkaig.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dswbkuzj3w28w51.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dswbkuzj3w28w51.o new file mode 100644 index 0000000..4fa58cd Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dswbkuzj3w28w51.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1gqqj20irkfzwcwh.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1gqqj20irkfzwcwh.o new file mode 100644 index 0000000..30eb5b5 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1gqqj20irkfzwcwh.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1imy25kgsjnvggrs.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1imy25kgsjnvggrs.o new file mode 100644 index 0000000..32d6655 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1imy25kgsjnvggrs.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1ji0leyxj7ek98ow.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1ji0leyxj7ek98ow.o new file mode 100644 index 0000000..9c2dda3 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1ji0leyxj7ek98ow.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1mrdfm11mjvkc3ae.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1mrdfm11mjvkc3ae.o new file mode 100644 index 0000000..e972532 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1mrdfm11mjvkc3ae.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1nf5yxicd99au96g.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1nf5yxicd99au96g.o new file mode 100644 index 0000000..1b534ed Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1nf5yxicd99au96g.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1s7p0acfczq7s1kq.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1s7p0acfczq7s1kq.o new file mode 100644 index 0000000..27a89ac Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1s7p0acfczq7s1kq.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1umnfcvuqn4ilt61.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1umnfcvuqn4ilt61.o new file mode 100644 index 0000000..b22c7fa Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1umnfcvuqn4ilt61.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1wcconq124fi8jmy.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1wcconq124fi8jmy.o new file mode 100644 index 0000000..62acf8c Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1wcconq124fi8jmy.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/20cjgxwra8j8ma5.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/20cjgxwra8j8ma5.o new file mode 100644 index 0000000..a6e8da1 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/20cjgxwra8j8ma5.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2eb6dzxk4fpfgct2.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2eb6dzxk4fpfgct2.o new file mode 100644 index 0000000..b9a374f Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2eb6dzxk4fpfgct2.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2kn7sctw717hdvxv.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2kn7sctw717hdvxv.o new file mode 100644 index 0000000..8fb1747 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2kn7sctw717hdvxv.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/36p29dusvnnao4l6.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/36p29dusvnnao4l6.o new file mode 100644 index 0000000..e32ab85 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/36p29dusvnnao4l6.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/37lsqijwyl9hcqdy.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/37lsqijwyl9hcqdy.o new file mode 100644 index 0000000..76c27d4 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/37lsqijwyl9hcqdy.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3mtnm9o8g1d4ay08.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3mtnm9o8g1d4ay08.o new file mode 100644 index 0000000..33c6a67 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3mtnm9o8g1d4ay08.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3o7odmue6rclr07q.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3o7odmue6rclr07q.o new file mode 100644 index 0000000..c96f742 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3o7odmue6rclr07q.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3ovm9mpazp54gvkw.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3ovm9mpazp54gvkw.o new file mode 100644 index 0000000..a72caa9 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3ovm9mpazp54gvkw.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3vrsmjefktbf358o.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3vrsmjefktbf358o.o new file mode 100644 index 0000000..ae25150 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3vrsmjefktbf358o.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3x4s2wz09up1dm2n.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3x4s2wz09up1dm2n.o new file mode 100644 index 0000000..e4e926b Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3x4s2wz09up1dm2n.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3znqya38t8dwe2at.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3znqya38t8dwe2at.o new file mode 100644 index 0000000..a159fc1 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3znqya38t8dwe2at.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/45ny6671yk2ypgvo.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/45ny6671yk2ypgvo.o new file mode 100644 index 0000000..668efd9 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/45ny6671yk2ypgvo.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4git0qmjrupi8t61.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4git0qmjrupi8t61.o new file mode 100644 index 0000000..585cee6 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4git0qmjrupi8t61.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4glxfcni5mbpugli.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4glxfcni5mbpugli.o new file mode 100644 index 0000000..4f591ee Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4glxfcni5mbpugli.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4inaqhg23zqxyqnc.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4inaqhg23zqxyqnc.o new file mode 100644 index 0000000..f1af3d3 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4inaqhg23zqxyqnc.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4m39n3seakb54iax.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4m39n3seakb54iax.o new file mode 100644 index 0000000..7244487 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4m39n3seakb54iax.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4z4nzjl4q0pz1f04.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4z4nzjl4q0pz1f04.o new file mode 100644 index 0000000..4171c9b Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4z4nzjl4q0pz1f04.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/50eev5qtb13tzx9b.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/50eev5qtb13tzx9b.o new file mode 100644 index 0000000..9886ab0 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/50eev5qtb13tzx9b.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/51gmswjzv1agzg8f.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/51gmswjzv1agzg8f.o new file mode 100644 index 0000000..8603195 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/51gmswjzv1agzg8f.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/5d28jwqkfvzyq5h1.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/5d28jwqkfvzyq5h1.o new file mode 100644 index 0000000..886b43c Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/5d28jwqkfvzyq5h1.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/b9nyaare4e7lyek.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/b9nyaare4e7lyek.o new file mode 100644 index 0000000..0081563 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/b9nyaare4e7lyek.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin new file mode 100644 index 0000000..7761f62 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/pqtu3yin1ijq83m.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/pqtu3yin1ijq83m.o new file mode 100644 index 0000000..1ec80cd Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/pqtu3yin1ijq83m.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/query-cache.bin b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/query-cache.bin new file mode 100644 index 0000000..4a19fa1 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/query-cache.bin differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/tq446ynsxari1o4.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/tq446ynsxari1o4.o new file mode 100644 index 0000000..3bc6782 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/tq446ynsxari1o4.o differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/work-products.bin b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/work-products.bin new file mode 100644 index 0000000..00826d6 Binary files /dev/null and b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/work-products.bin differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8.lock b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8.lock new file mode 100755 index 0000000..e69de29 diff --git a/lifetimes/target/debug/lifetimes b/lifetimes/target/debug/lifetimes new file mode 100755 index 0000000..8edfb67 Binary files /dev/null and b/lifetimes/target/debug/lifetimes differ diff --git a/lifetimes/target/debug/lifetimes.d b/lifetimes/target/debug/lifetimes.d new file mode 100644 index 0000000..deabab0 --- /dev/null +++ b/lifetimes/target/debug/lifetimes.d @@ -0,0 +1 @@ +/home/adam/devel/learning-rust/lifetimes/target/debug/lifetimes: /home/adam/devel/learning-rust/lifetimes/src/main.rs diff --git a/minigrep/src/lib.rs b/minigrep/src/lib.rs new file mode 100644 index 0000000..78610ba --- /dev/null +++ b/minigrep/src/lib.rs @@ -0,0 +1,29 @@ +use std::error::Error; +use std::fs; + +pub struct Config { + pub query: String, + pub filename: String, +} + +impl Config { + + pub fn new(args: &[String]) -> Result { + + if args.len() < 3 { + return Err("Not enough arguments."); + } + + let query = args[1].clone(); + let filename = args[2].clone(); + Ok(Config { query, filename }) + } + +} + +pub fn run(config: Config) -> Result<(), Box> { + let contents = fs::read_to_string(config.filename)?; + dbg!(contents); + Ok(()) +} + diff --git a/minigrep/src/main.rs b/minigrep/src/main.rs index 1e04b5e..fc5ae9a 100644 --- a/minigrep/src/main.rs +++ b/minigrep/src/main.rs @@ -1,6 +1,8 @@ use std::process; use std::env; -use std::fs; + +use minigrep; +use minigrep::Config; fn main() { let args: Vec = env::args().collect(); @@ -8,33 +10,11 @@ fn main() { println!("Problem parsing arguments: {}", err); process::exit(1); }); - - println!("Searching for {}", config.query); - println!("In file {}", config.filename); - - let contents = fs::read_to_string(config.filename) - .expect("something went wrong."); - - dbg!(contents); -} - -struct Config { - query: String, - filename: String, -} - -impl Config { - - - fn new(args: &[String]) -> Result { - - if args.len() < 3 { - panic!("not enough args"); - } - - let query = args[1].clone(); - let filename = args[2].clone(); - Ok(Config { query, filename }) + println!("\nSearching for {}", config.query); + println!(" in file {}", config.filename); + if let Err(e) = minigrep::run(config) { + println!("Application error: {}", e); + process::exit(1); } - } + -- cgit v1.2.3 From 3402ea2a8c91e187afdb5e8ca085d779f5877674 Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Mon, 25 Feb 2019 21:57:25 -0500 Subject: Added first test. --- minigrep/src/lib.rs | 31 ++++++++++++++++++++++++++++++- minigrep/src/main.rs | 2 -- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/minigrep/src/lib.rs b/minigrep/src/lib.rs index 78610ba..b55e924 100644 --- a/minigrep/src/lib.rs +++ b/minigrep/src/lib.rs @@ -23,7 +23,36 @@ impl Config { pub fn run(config: Config) -> Result<(), Box> { let contents = fs::read_to_string(config.filename)?; - dbg!(contents); Ok(()) } +fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { + let mut results = Vec::new(); + + for line in contents.lines() { + if line.contains(query) { + results.push(line); + } + } + + results +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn one_result() { + let query = "duct"; + let contents = "\ +Rust: +safe, fast, productive. +Pick three."; + + assert_eq!( + vec!["safe, fast, productive."], + search(query, contents) + ); + } +} diff --git a/minigrep/src/main.rs b/minigrep/src/main.rs index fc5ae9a..b1581c9 100644 --- a/minigrep/src/main.rs +++ b/minigrep/src/main.rs @@ -10,8 +10,6 @@ fn main() { println!("Problem parsing arguments: {}", err); process::exit(1); }); - println!("\nSearching for {}", config.query); - println!(" in file {}", config.filename); if let Err(e) = minigrep::run(config) { println!("Application error: {}", e); process::exit(1); -- cgit v1.2.3 From b43fca42427dbd276ca2dd1d712611b6dea4338c Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Wed, 27 Feb 2019 19:23:56 -0500 Subject: Added environment variable support for case sensitivity. --- minigrep/src/lib.rs | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/minigrep/src/lib.rs b/minigrep/src/lib.rs index b55e924..9f0adbd 100644 --- a/minigrep/src/lib.rs +++ b/minigrep/src/lib.rs @@ -1,9 +1,11 @@ +use std::env; use std::error::Error; use std::fs; pub struct Config { pub query: String, pub filename: String, + pub case_sensitive: bool, } impl Config { @@ -16,13 +18,34 @@ impl Config { let query = args[1].clone(); let filename = args[2].clone(); - Ok(Config { query, filename }) + let mut case_sensitive = env::var("CASE_INSENSITIVE").is_err(); + + if args.nth(3) == "-i" { + case_sensitive = false; + } + else if args[3] == "-s" { + case_sensitive = true; + } + + Ok(Config { query, filename, case_sensitive }) } } pub fn run(config: Config) -> Result<(), Box> { let contents = fs::read_to_string(config.filename)?; + + let results = if config.case_sensitive { + search(&config.query, &contents) + } + else { + search_case_insensitive(&config.query, &contents) + }; + + for line in results { + println!("{}", line); + } + Ok(()) } @@ -38,21 +61,50 @@ fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { results } +fn search_case_insensitive<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { + let query = query.to_lowercase(); + let mut results = Vec::new(); + + for line in contents.lines() { + if line.to_lowercase().contains(&query) { + results.push(line); + } + } + + results +} + #[cfg(test)] mod tests { use super::*; #[test] - fn one_result() { + fn case_sensitive() { let query = "duct"; let contents = "\ Rust: safe, fast, productive. -Pick three."; +Pick three. +Duct tape."; assert_eq!( vec!["safe, fast, productive."], search(query, contents) ); } + + #[test] + fn case_insensitive() { + let query = "rUsT"; + let contents = "\ +Rust: +safe, fast, productive. +Pick three. +Trust me."; + + assert_eq!( + vec!["Rust:", "Trust me."], + search_case_insensitive(query, contents) + ); + } } -- cgit v1.2.3 From 131a4e22e2fb3afa8ec0a8a35945d9511e41a4f9 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Thu, 28 Feb 2019 09:12:04 -0500 Subject: Removed build files from repo. --- .gitignore | 1 + adder/target/.rustc_info.json | 1 - adder/target/debug/.cargo-lock | 0 .../dep-lib-adder-324ef1b938ba3079 | Bin 11 -> 0 bytes .../adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 | 1 - .../lib-adder-324ef1b938ba3079.json | 1 - .../dep-test-lib-adder-50a9ec09c6e49fab | Bin 11 -> 0 bytes .../test-lib-adder-50a9ec09c6e49fab | 1 - .../test-lib-adder-50a9ec09c6e49fab.json | 1 - adder/target/debug/adder-50a9ec09c6e49fab | Bin 4548728 -> 0 bytes adder/target/debug/adder-50a9ec09c6e49fab.d | 1 - adder/target/debug/deps/adder-324ef1b938ba3079.d | 5 ----- adder/target/debug/deps/adder-50a9ec09c6e49fab | Bin 4548728 -> 0 bytes adder/target/debug/deps/adder-50a9ec09c6e49fab.d | 5 ----- .../target/debug/deps/libadder-324ef1b938ba3079.rlib | Bin 79884 -> 0 bytes .../1w0u8no8sz6bsrft.bc.z | Bin 5194 -> 0 bytes .../1w0u8no8sz6bsrft.o | Bin 9208 -> 0 bytes .../28x9lmh8lepssp7j.bc.z | Bin 4360 -> 0 bytes .../28x9lmh8lepssp7j.o | Bin 7912 -> 0 bytes .../4mwcgizr5xk7niji.bc.z | Bin 5464 -> 0 bytes .../4mwcgizr5xk7niji.o | Bin 10720 -> 0 bytes .../56vbkt1jj57sxe01.bc.z | Bin 9156 -> 0 bytes .../56vbkt1jj57sxe01.o | Bin 17920 -> 0 bytes .../s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin | Bin 335918 -> 0 bytes .../gh7bpht9njegmxo.bc.z | Bin 1936 -> 0 bytes .../gh7bpht9njegmxo.o | Bin 3096 -> 0 bytes .../s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin | Bin 100440 -> 0 bytes .../work-products.bin | Bin 419 -> 0 bytes .../adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7.lock | 0 .../150b5aw0t42bdobn.o | Bin 3128 -> 0 bytes .../1aozlodhl0o5x6tb.o | Bin 25776 -> 0 bytes .../1gi4mxyozvpwolne.o | Bin 16288 -> 0 bytes .../1ifcgxqm57fuc3ae.o | Bin 5984 -> 0 bytes .../1lja2qq10zz6djy0.o | Bin 23176 -> 0 bytes .../1np9wizkuvtyqdqn.o | Bin 5664 -> 0 bytes .../1oblomd2abrkrv6a.o | Bin 8928 -> 0 bytes .../1xrsat1tpjsiz650.o | Bin 20432 -> 0 bytes .../23q9hyff3zzgp7gu.o | Bin 13968 -> 0 bytes .../27fotnlnjou8p5zb.o | Bin 8160 -> 0 bytes .../2asi19pvy29lvv9x.o | Bin 10144 -> 0 bytes .../2cifebbl8h4b9qqx.o | Bin 4760 -> 0 bytes .../2g3a8xgh76djrxuv.o | Bin 13912 -> 0 bytes .../2j1yalcdnti3rikg.o | Bin 35336 -> 0 bytes .../2k0zmzd6dxanekgk.o | Bin 11656 -> 0 bytes .../2rtv43syzz3e116j.o | Bin 16592 -> 0 bytes .../2t9c7t8fa7q3tr7c.o | Bin 3504 -> 0 bytes .../30o1xlaufu5x2rwd.o | Bin 3456 -> 0 bytes .../32qyr78jg1rwa6g1.o | Bin 3496 -> 0 bytes .../334ckoui3ey5uo51.o | Bin 9216 -> 0 bytes .../33chierc2k6i5uqv.o | Bin 4256 -> 0 bytes .../3bkwkcth9hgggae.o | Bin 33960 -> 0 bytes .../3jz02qn5vjiw6sz5.o | Bin 12816 -> 0 bytes .../3le6xv4xf0nkg560.o | Bin 5368 -> 0 bytes .../3v21idoqg1fjf4jv.o | Bin 3496 -> 0 bytes .../3v29x4g08glpijdj.o | Bin 5944 -> 0 bytes .../3wfhavj3rclupveg.o | Bin 9688 -> 0 bytes .../40bq7tdgowhi362e.o | Bin 4280 -> 0 bytes .../439l2mktn0av9rf0.o | Bin 5752 -> 0 bytes .../44cjk84ime84q1bd.o | Bin 4160 -> 0 bytes .../456ulyipzp0nbvqn.o | Bin 4056 -> 0 bytes .../49tpqtk65j3t7nn0.o | Bin 12520 -> 0 bytes .../4anavq8ru3n8g7kr.o | Bin 11864 -> 0 bytes .../4br95dja5fsdrep5.o | Bin 10944 -> 0 bytes .../4cftgyscz698ddvp.o | Bin 20872 -> 0 bytes .../4def8tneaw96mqe3.o | Bin 4632 -> 0 bytes .../4iv8ppgg8s4czkzp.o | Bin 10096 -> 0 bytes .../4uvbhcv8kdau5auy.o | Bin 5816 -> 0 bytes .../50rs00yqneqm34w6.o | Bin 30768 -> 0 bytes .../5145k1oi6zqtq8k.o | Bin 3208 -> 0 bytes .../51p649byfqsam4b4.o | Bin 9568 -> 0 bytes .../52rwcq9si4nswo3k.o | Bin 20032 -> 0 bytes .../53j5whxbewdtnhde.o | Bin 4312 -> 0 bytes .../53up84elqm3a4ctb.o | Bin 6000 -> 0 bytes .../5600zjmpl19ldj15.o | Bin 27016 -> 0 bytes .../5asrj9nt24kbc3nu.o | Bin 7240 -> 0 bytes .../5efql6znf93nb86v.o | Bin 19360 -> 0 bytes .../5ejnf2bgz1k1pf6e.o | Bin 37144 -> 0 bytes .../s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin | Bin 1495092 -> 0 bytes .../mi440ei4r9uur0q.o | Bin 5136 -> 0 bytes .../otbge3poyau1tly.o | Bin 5712 -> 0 bytes .../pjxzx5xzd5i1pzn.o | Bin 13136 -> 0 bytes .../s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin | Bin 324578 -> 0 bytes .../work-products.bin | Bin 2781 -> 0 bytes .../adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9.lock | 0 adder/target/debug/libadder.d | 1 - adder/target/debug/libadder.rlib | Bin 3752 -> 0 bytes lifetimes/target/.rustc_info.json | 1 - lifetimes/target/debug/.cargo-lock | 0 .../bin-lifetimes-efb5637f417930c3 | 1 - .../bin-lifetimes-efb5637f417930c3.json | 1 - .../dep-bin-lifetimes-efb5637f417930c3 | Bin 12 -> 0 bytes .../target/debug/deps/lifetimes-efb5637f417930c3 | Bin 2529272 -> 0 bytes .../target/debug/deps/lifetimes-efb5637f417930c3.d | 5 ----- .../10oafshzgt3w3xeo.o | Bin 12192 -> 0 bytes .../12ep0b6r7gf5xev8.o | Bin 7928 -> 0 bytes .../15o4oy1d5i2cot5y.o | Bin 18560 -> 0 bytes .../1dqcrqv4ajxjkaig.o | Bin 3504 -> 0 bytes .../1dswbkuzj3w28w51.o | Bin 4120 -> 0 bytes .../1gqqj20irkfzwcwh.o | Bin 3336 -> 0 bytes .../1imy25kgsjnvggrs.o | Bin 27320 -> 0 bytes .../1ji0leyxj7ek98ow.o | Bin 6016 -> 0 bytes .../1mrdfm11mjvkc3ae.o | Bin 13080 -> 0 bytes .../1nf5yxicd99au96g.o | Bin 5392 -> 0 bytes .../1s7p0acfczq7s1kq.o | Bin 36856 -> 0 bytes .../1umnfcvuqn4ilt61.o | Bin 14552 -> 0 bytes .../1wcconq124fi8jmy.o | Bin 10152 -> 0 bytes .../20cjgxwra8j8ma5.o | Bin 5136 -> 0 bytes .../2eb6dzxk4fpfgct2.o | Bin 33968 -> 0 bytes .../2kn7sctw717hdvxv.o | Bin 3504 -> 0 bytes .../36p29dusvnnao4l6.o | Bin 3128 -> 0 bytes .../37lsqijwyl9hcqdy.o | Bin 3504 -> 0 bytes .../3mtnm9o8g1d4ay08.o | Bin 11240 -> 0 bytes .../3o7odmue6rclr07q.o | Bin 7768 -> 0 bytes .../3ovm9mpazp54gvkw.o | Bin 12816 -> 0 bytes .../3vrsmjefktbf358o.o | Bin 13472 -> 0 bytes .../3x4s2wz09up1dm2n.o | Bin 12336 -> 0 bytes .../3znqya38t8dwe2at.o | Bin 4280 -> 0 bytes .../45ny6671yk2ypgvo.o | Bin 5712 -> 0 bytes .../4git0qmjrupi8t61.o | Bin 6352 -> 0 bytes .../4glxfcni5mbpugli.o | Bin 4744 -> 0 bytes .../4inaqhg23zqxyqnc.o | Bin 8928 -> 0 bytes .../4m39n3seakb54iax.o | Bin 5816 -> 0 bytes .../4z4nzjl4q0pz1f04.o | Bin 19784 -> 0 bytes .../50eev5qtb13tzx9b.o | Bin 16592 -> 0 bytes .../51gmswjzv1agzg8f.o | Bin 12440 -> 0 bytes .../5d28jwqkfvzyq5h1.o | Bin 5944 -> 0 bytes .../b9nyaare4e7lyek.o | Bin 10944 -> 0 bytes .../s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin | Bin 1048515 -> 0 bytes .../pqtu3yin1ijq83m.o | Bin 10880 -> 0 bytes .../query-cache.bin | Bin 245937 -> 0 bytes .../tq446ynsxari1o4.o | Bin 4760 -> 0 bytes .../work-products.bin | Bin 1973 -> 0 bytes .../lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8.lock | 0 lifetimes/target/debug/lifetimes | Bin 2529272 -> 0 bytes lifetimes/target/debug/lifetimes.d | 1 - minigrep/src/lib.rs | 14 +++++++++----- testing/target/.rustc_info.json | 1 - testing/target/debug/.cargo-lock | 0 ...integration-test-integration_test-1a358058a871a1c6 | Bin 46 -> 0 bytes ...integration-test-integration_test-1a358058a871a1c6 | 1 - ...ration-test-integration_test-1a358058a871a1c6.json | 1 - .../dep-test-integration-test-common-6f29e5c582a3746b | Bin 16 -> 0 bytes .../test-integration-test-common-6f29e5c582a3746b | 1 - ...test-integration-test-common-6f29e5c582a3746b.json | 1 - .../dep-lib-testing-813a2e3b38183b9f | Bin 11 -> 0 bytes .../lib-testing-813a2e3b38183b9f | 1 - .../lib-testing-813a2e3b38183b9f.json | 1 - .../dep-test-lib-testing-e06eb924885e312d | Bin 11 -> 0 bytes .../test-lib-testing-e06eb924885e312d | 1 - .../test-lib-testing-e06eb924885e312d.json | 1 - testing/target/debug/common-6f29e5c582a3746b | Bin 4325344 -> 0 bytes testing/target/debug/common-6f29e5c582a3746b.d | 1 - testing/target/debug/deps/common-6f29e5c582a3746b | Bin 4325344 -> 0 bytes testing/target/debug/deps/common-6f29e5c582a3746b.d | 5 ----- .../debug/deps/integration_test-1a358058a871a1c6 | Bin 4345688 -> 0 bytes .../debug/deps/integration_test-1a358058a871a1c6.d | 6 ------ .../debug/deps/libtesting-813a2e3b38183b9f.rlib | Bin 9126 -> 0 bytes testing/target/debug/deps/testing-813a2e3b38183b9f.d | 5 ----- testing/target/debug/deps/testing-e06eb924885e312d | Bin 4347136 -> 0 bytes testing/target/debug/deps/testing-e06eb924885e312d.d | 5 ----- .../2e95vp1ukmju1ggz.o | Bin 3504 -> 0 bytes .../2horrs3kwkihz6vf.o | Bin 6200 -> 0 bytes .../31a05g3ojsbpqq6p.o | Bin 4776 -> 0 bytes .../3rbgd2y4kykiypkz.o | Bin 1808 -> 0 bytes .../4dhultyt95ejeuo6.o | Bin 5720 -> 0 bytes .../s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin | Bin 224512 -> 0 bytes .../s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin | Bin 40539 -> 0 bytes .../work-products.bin | Bin 307 -> 0 bytes .../common-345648p23iz32/s-f9n9qx0dam-b4boad.lock | 0 .../1t03bhc6pzw2nd6m.o | Bin 5736 -> 0 bytes .../2psuteotuu954xoj.o | Bin 7216 -> 0 bytes .../2ym1hzdvtimvhwql.o | Bin 12832 -> 0 bytes .../364l98n50kntzl3h.o | Bin 4792 -> 0 bytes .../3qmo95huem0jp0vl.o | Bin 9240 -> 0 bytes .../3u9xgzqcte93ux9p.o | Bin 14520 -> 0 bytes .../47svy69thrkymuvc.o | Bin 7696 -> 0 bytes .../4da5f6fetqzr6440.o | Bin 2808 -> 0 bytes .../4gbiclu2mkawnr5u.o | Bin 7984 -> 0 bytes .../5fkcxe5h8f2ytj7.o | Bin 3336 -> 0 bytes .../9gxf4e6vopz3q84.o | Bin 3528 -> 0 bytes .../s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin | Bin 732359 -> 0 bytes .../s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin | Bin 118126 -> 0 bytes .../work-products.bin | Bin 627 -> 0 bytes .../s-f9na58eyej-1uikb2y.lock | 0 .../141y9ktx8wlxevn4.o | Bin 10392 -> 0 bytes .../16kthln99blc7qv3.o | Bin 5712 -> 0 bytes .../1hz7ymz8vueb3o0v.o | Bin 9208 -> 0 bytes .../1zze8extmhj1inh.o | Bin 7384 -> 0 bytes .../2h6gt9o6rvpvq7re.o | Bin 4760 -> 0 bytes .../3fqxmakmjdr4865v.o | Bin 14488 -> 0 bytes .../3jssatmi8jwq2q03.o | Bin 12808 -> 0 bytes .../3lo5qhj4pbw8ykv4.o | Bin 7960 -> 0 bytes .../4cx6zvlmoqzv3ctm.o | Bin 5416 -> 0 bytes .../4wme8wac7aw04zjw.o | Bin 3496 -> 0 bytes .../5ci3hw7n3cym6x67.o | Bin 9176 -> 0 bytes .../s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin | Bin 764491 -> 0 bytes .../query-cache.bin | Bin 128759 -> 0 bytes .../work-products.bin | Bin 629 -> 0 bytes .../testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk.lock | 0 .../2okzpkuw96q2j6ie.bc.z | Bin 2578 -> 0 bytes .../2okzpkuw96q2j6ie.o | Bin 4672 -> 0 bytes .../s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin | Bin 63984 -> 0 bytes .../s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin | Bin 36405 -> 0 bytes .../work-products.bin | Bin 114 -> 0 bytes .../testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua.lock | 0 .../target/debug/integration_test-1a358058a871a1c6 | Bin 4345688 -> 0 bytes .../target/debug/integration_test-1a358058a871a1c6.d | 1 - testing/target/debug/testing-e06eb924885e312d | Bin 4347136 -> 0 bytes testing/target/debug/testing-e06eb924885e312d.d | 1 - 209 files changed, 10 insertions(+), 64 deletions(-) create mode 100644 .gitignore delete mode 100644 adder/target/.rustc_info.json delete mode 100644 adder/target/debug/.cargo-lock delete mode 100644 adder/target/debug/.fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079 delete mode 100644 adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 delete mode 100644 adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079.json delete mode 100644 adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab delete mode 100644 adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab delete mode 100644 adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab.json delete mode 100755 adder/target/debug/adder-50a9ec09c6e49fab delete mode 100644 adder/target/debug/adder-50a9ec09c6e49fab.d delete mode 100644 adder/target/debug/deps/adder-324ef1b938ba3079.d delete mode 100755 adder/target/debug/deps/adder-50a9ec09c6e49fab delete mode 100644 adder/target/debug/deps/adder-50a9ec09c6e49fab.d delete mode 100644 adder/target/debug/deps/libadder-324ef1b938ba3079.rlib delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.bc.z delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.o delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.bc.z delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.o delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.bc.z delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.o delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.bc.z delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.o delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.bc.z delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.o delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin delete mode 100644 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/work-products.bin delete mode 100755 adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7.lock delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/150b5aw0t42bdobn.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1aozlodhl0o5x6tb.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1gi4mxyozvpwolne.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1ifcgxqm57fuc3ae.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1lja2qq10zz6djy0.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1np9wizkuvtyqdqn.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1oblomd2abrkrv6a.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1xrsat1tpjsiz650.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/23q9hyff3zzgp7gu.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/27fotnlnjou8p5zb.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2asi19pvy29lvv9x.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2cifebbl8h4b9qqx.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2g3a8xgh76djrxuv.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2j1yalcdnti3rikg.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2k0zmzd6dxanekgk.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2rtv43syzz3e116j.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2t9c7t8fa7q3tr7c.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/30o1xlaufu5x2rwd.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/32qyr78jg1rwa6g1.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/334ckoui3ey5uo51.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/33chierc2k6i5uqv.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3bkwkcth9hgggae.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3jz02qn5vjiw6sz5.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3le6xv4xf0nkg560.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v21idoqg1fjf4jv.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v29x4g08glpijdj.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3wfhavj3rclupveg.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/40bq7tdgowhi362e.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/439l2mktn0av9rf0.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/44cjk84ime84q1bd.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/456ulyipzp0nbvqn.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/49tpqtk65j3t7nn0.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4anavq8ru3n8g7kr.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4br95dja5fsdrep5.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4cftgyscz698ddvp.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4def8tneaw96mqe3.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4iv8ppgg8s4czkzp.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4uvbhcv8kdau5auy.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/50rs00yqneqm34w6.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5145k1oi6zqtq8k.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/51p649byfqsam4b4.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/52rwcq9si4nswo3k.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53j5whxbewdtnhde.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53up84elqm3a4ctb.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5600zjmpl19ldj15.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5asrj9nt24kbc3nu.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5efql6znf93nb86v.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5ejnf2bgz1k1pf6e.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/mi440ei4r9uur0q.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/otbge3poyau1tly.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/pjxzx5xzd5i1pzn.o delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin delete mode 100644 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/work-products.bin delete mode 100755 adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9.lock delete mode 100644 adder/target/debug/libadder.d delete mode 100644 adder/target/debug/libadder.rlib delete mode 100644 lifetimes/target/.rustc_info.json delete mode 100644 lifetimes/target/debug/.cargo-lock delete mode 100644 lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3 delete mode 100644 lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3.json delete mode 100644 lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3 delete mode 100755 lifetimes/target/debug/deps/lifetimes-efb5637f417930c3 delete mode 100644 lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/10oafshzgt3w3xeo.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/12ep0b6r7gf5xev8.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/15o4oy1d5i2cot5y.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dqcrqv4ajxjkaig.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dswbkuzj3w28w51.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1gqqj20irkfzwcwh.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1imy25kgsjnvggrs.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1ji0leyxj7ek98ow.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1mrdfm11mjvkc3ae.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1nf5yxicd99au96g.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1s7p0acfczq7s1kq.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1umnfcvuqn4ilt61.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1wcconq124fi8jmy.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/20cjgxwra8j8ma5.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2eb6dzxk4fpfgct2.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2kn7sctw717hdvxv.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/36p29dusvnnao4l6.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/37lsqijwyl9hcqdy.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3mtnm9o8g1d4ay08.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3o7odmue6rclr07q.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3ovm9mpazp54gvkw.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3vrsmjefktbf358o.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3x4s2wz09up1dm2n.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3znqya38t8dwe2at.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/45ny6671yk2ypgvo.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4git0qmjrupi8t61.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4glxfcni5mbpugli.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4inaqhg23zqxyqnc.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4m39n3seakb54iax.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4z4nzjl4q0pz1f04.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/50eev5qtb13tzx9b.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/51gmswjzv1agzg8f.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/5d28jwqkfvzyq5h1.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/b9nyaare4e7lyek.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/pqtu3yin1ijq83m.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/query-cache.bin delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/tq446ynsxari1o4.o delete mode 100644 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/work-products.bin delete mode 100755 lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8.lock delete mode 100755 lifetimes/target/debug/lifetimes delete mode 100644 lifetimes/target/debug/lifetimes.d delete mode 100644 testing/target/.rustc_info.json delete mode 100644 testing/target/debug/.cargo-lock delete mode 100644 testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 delete mode 100644 testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 delete mode 100644 testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json delete mode 100644 testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b delete mode 100644 testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b delete mode 100644 testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b.json delete mode 100644 testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f delete mode 100644 testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f delete mode 100644 testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json delete mode 100644 testing/target/debug/.fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d delete mode 100644 testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d delete mode 100644 testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json delete mode 100755 testing/target/debug/common-6f29e5c582a3746b delete mode 100644 testing/target/debug/common-6f29e5c582a3746b.d delete mode 100755 testing/target/debug/deps/common-6f29e5c582a3746b delete mode 100644 testing/target/debug/deps/common-6f29e5c582a3746b.d delete mode 100755 testing/target/debug/deps/integration_test-1a358058a871a1c6 delete mode 100644 testing/target/debug/deps/integration_test-1a358058a871a1c6.d delete mode 100644 testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib delete mode 100644 testing/target/debug/deps/testing-813a2e3b38183b9f.d delete mode 100755 testing/target/debug/deps/testing-e06eb924885e312d delete mode 100644 testing/target/debug/deps/testing-e06eb924885e312d.d delete mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2e95vp1ukmju1ggz.o delete mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2horrs3kwkihz6vf.o delete mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/31a05g3ojsbpqq6p.o delete mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/3rbgd2y4kykiypkz.o delete mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/4dhultyt95ejeuo6.o delete mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin delete mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin delete mode 100644 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/work-products.bin delete mode 100755 testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad.lock delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/1t03bhc6pzw2nd6m.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2psuteotuu954xoj.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2ym1hzdvtimvhwql.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/364l98n50kntzl3h.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3qmo95huem0jp0vl.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3u9xgzqcte93ux9p.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/47svy69thrkymuvc.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4da5f6fetqzr6440.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4gbiclu2mkawnr5u.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/5fkcxe5h8f2ytj7.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/9gxf4e6vopz3q84.o delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin delete mode 100644 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/work-products.bin delete mode 100755 testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y.lock delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/141y9ktx8wlxevn4.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/16kthln99blc7qv3.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1zze8extmhj1inh.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3fqxmakmjdr4865v.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3jssatmi8jwq2q03.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4wme8wac7aw04zjw.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/query-cache.bin delete mode 100644 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/work-products.bin delete mode 100755 testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk.lock delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.o delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin delete mode 100644 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/work-products.bin delete mode 100755 testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua.lock delete mode 100755 testing/target/debug/integration_test-1a358058a871a1c6 delete mode 100644 testing/target/debug/integration_test-1a358058a871a1c6.d delete mode 100755 testing/target/debug/testing-e06eb924885e312d delete mode 100644 testing/target/debug/testing-e06eb924885e312d.d diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bd292a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*/target/* diff --git a/adder/target/.rustc_info.json b/adder/target/.rustc_info.json deleted file mode 100644 index d00f8d7..0000000 --- a/adder/target/.rustc_info.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc_fingerprint":5868336760187092304,"outputs":{"1164083562126845933":["rustc 1.32.0 (9fda7c223 2019-01-16)\nbinary: rustc\ncommit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b\ncommit-date: 2019-01-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.32.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\"\nunix\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\"\nunix\n",""]},"successes":{}} \ No newline at end of file diff --git a/adder/target/debug/.cargo-lock b/adder/target/debug/.cargo-lock deleted file mode 100644 index e69de29..0000000 diff --git a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079 b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079 deleted file mode 100644 index b8e6181..0000000 Binary files a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079 and /dev/null differ diff --git a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 deleted file mode 100644 index 3dde506..0000000 --- a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079 +++ /dev/null @@ -1 +0,0 @@ -eb5988d04d1ce784 \ No newline at end of file diff --git a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079.json b/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079.json deleted file mode 100644 index 90b506d..0000000 --- a/adder/target/debug/.fingerprint/adder-324ef1b938ba3079/lib-adder-324ef1b938ba3079.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc":11779505878581416876,"features":"[]","target":17956472603111243260,"profile":739652522282439549,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550602275,721045800],".fingerprint/adder-324ef1b938ba3079/dep-lib-adder-324ef1b938ba3079"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab deleted file mode 100644 index b8e6181..0000000 Binary files a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab and /dev/null differ diff --git a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab deleted file mode 100644 index cb674bd..0000000 --- a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab +++ /dev/null @@ -1 +0,0 @@ -e44760269ed9958c \ No newline at end of file diff --git a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab.json b/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab.json deleted file mode 100644 index 1c41849..0000000 --- a/adder/target/debug/.fingerprint/adder-50a9ec09c6e49fab/test-lib-adder-50a9ec09c6e49fab.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc":11779505878581416876,"features":"[]","target":17956472603111243260,"profile":14175392328352671011,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550602276,744765700],".fingerprint/adder-50a9ec09c6e49fab/dep-test-lib-adder-50a9ec09c6e49fab"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/adder/target/debug/adder-50a9ec09c6e49fab b/adder/target/debug/adder-50a9ec09c6e49fab deleted file mode 100755 index 26fac6f..0000000 Binary files a/adder/target/debug/adder-50a9ec09c6e49fab and /dev/null differ diff --git a/adder/target/debug/adder-50a9ec09c6e49fab.d b/adder/target/debug/adder-50a9ec09c6e49fab.d deleted file mode 100644 index 9ba50e9..0000000 --- a/adder/target/debug/adder-50a9ec09c6e49fab.d +++ /dev/null @@ -1 +0,0 @@ -/home/carpenat/devel/learning-rust/adder/target/debug/adder-50a9ec09c6e49fab: /home/carpenat/devel/learning-rust/adder/src/lib.rs diff --git a/adder/target/debug/deps/adder-324ef1b938ba3079.d b/adder/target/debug/deps/adder-324ef1b938ba3079.d deleted file mode 100644 index ae8ab4b..0000000 --- a/adder/target/debug/deps/adder-324ef1b938ba3079.d +++ /dev/null @@ -1,5 +0,0 @@ -/home/carpenat/devel/learning-rust/adder/target/debug/deps/libadder-324ef1b938ba3079.rlib: src/lib.rs - -/home/carpenat/devel/learning-rust/adder/target/debug/deps/adder-324ef1b938ba3079.d: src/lib.rs - -src/lib.rs: diff --git a/adder/target/debug/deps/adder-50a9ec09c6e49fab b/adder/target/debug/deps/adder-50a9ec09c6e49fab deleted file mode 100755 index 26fac6f..0000000 Binary files a/adder/target/debug/deps/adder-50a9ec09c6e49fab and /dev/null differ diff --git a/adder/target/debug/deps/adder-50a9ec09c6e49fab.d b/adder/target/debug/deps/adder-50a9ec09c6e49fab.d deleted file mode 100644 index 6ee6a57..0000000 --- a/adder/target/debug/deps/adder-50a9ec09c6e49fab.d +++ /dev/null @@ -1,5 +0,0 @@ -/home/carpenat/devel/learning-rust/adder/target/debug/deps/adder-50a9ec09c6e49fab: src/lib.rs - -/home/carpenat/devel/learning-rust/adder/target/debug/deps/adder-50a9ec09c6e49fab.d: src/lib.rs - -src/lib.rs: diff --git a/adder/target/debug/deps/libadder-324ef1b938ba3079.rlib b/adder/target/debug/deps/libadder-324ef1b938ba3079.rlib deleted file mode 100644 index 5ca4536..0000000 Binary files a/adder/target/debug/deps/libadder-324ef1b938ba3079.rlib and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.bc.z deleted file mode 100644 index 8df4f48..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.bc.z and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.o deleted file mode 100644 index a83e201..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/1w0u8no8sz6bsrft.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.bc.z deleted file mode 100644 index 2c2ea6c..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.bc.z and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.o deleted file mode 100644 index d98ecc1..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/28x9lmh8lepssp7j.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.bc.z deleted file mode 100644 index 83617db..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.bc.z and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.o deleted file mode 100644 index 11812ba..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/4mwcgizr5xk7niji.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.bc.z deleted file mode 100644 index 10f1f81..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.bc.z and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.o deleted file mode 100644 index 09b8e0a..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/56vbkt1jj57sxe01.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin deleted file mode 100644 index a32cc6c..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/dep-graph.bin and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.bc.z b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.bc.z deleted file mode 100644 index 50510aa..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.bc.z and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.o b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.o deleted file mode 100644 index 84918da..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/gh7bpht9njegmxo.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin deleted file mode 100644 index 265e389..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/query-cache.bin and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/work-products.bin b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/work-products.bin deleted file mode 100644 index bb0d29c..0000000 Binary files a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7-3nu3lj4gc3u12/work-products.bin and /dev/null differ diff --git a/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7.lock b/adder/target/debug/incremental/adder-29huu51whu1ec/s-f9n4ung6pi-chlsa7.lock deleted file mode 100755 index e69de29..0000000 diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/150b5aw0t42bdobn.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/150b5aw0t42bdobn.o deleted file mode 100644 index d58da3e..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/150b5aw0t42bdobn.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1aozlodhl0o5x6tb.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1aozlodhl0o5x6tb.o deleted file mode 100644 index 83ccf8c..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1aozlodhl0o5x6tb.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1gi4mxyozvpwolne.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1gi4mxyozvpwolne.o deleted file mode 100644 index fbd9817..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1gi4mxyozvpwolne.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1ifcgxqm57fuc3ae.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1ifcgxqm57fuc3ae.o deleted file mode 100644 index 039f7cb..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1ifcgxqm57fuc3ae.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1lja2qq10zz6djy0.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1lja2qq10zz6djy0.o deleted file mode 100644 index fc4af79..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1lja2qq10zz6djy0.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1np9wizkuvtyqdqn.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1np9wizkuvtyqdqn.o deleted file mode 100644 index 88c43d6..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1np9wizkuvtyqdqn.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1oblomd2abrkrv6a.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1oblomd2abrkrv6a.o deleted file mode 100644 index 3b9ae8a..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1oblomd2abrkrv6a.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1xrsat1tpjsiz650.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1xrsat1tpjsiz650.o deleted file mode 100644 index 0877991..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/1xrsat1tpjsiz650.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/23q9hyff3zzgp7gu.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/23q9hyff3zzgp7gu.o deleted file mode 100644 index 9f78045..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/23q9hyff3zzgp7gu.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/27fotnlnjou8p5zb.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/27fotnlnjou8p5zb.o deleted file mode 100644 index c822531..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/27fotnlnjou8p5zb.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2asi19pvy29lvv9x.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2asi19pvy29lvv9x.o deleted file mode 100644 index 5e5372a..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2asi19pvy29lvv9x.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2cifebbl8h4b9qqx.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2cifebbl8h4b9qqx.o deleted file mode 100644 index 6c6550f..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2cifebbl8h4b9qqx.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2g3a8xgh76djrxuv.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2g3a8xgh76djrxuv.o deleted file mode 100644 index fc6b9da..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2g3a8xgh76djrxuv.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2j1yalcdnti3rikg.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2j1yalcdnti3rikg.o deleted file mode 100644 index f15880e..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2j1yalcdnti3rikg.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2k0zmzd6dxanekgk.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2k0zmzd6dxanekgk.o deleted file mode 100644 index 03bab18..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2k0zmzd6dxanekgk.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2rtv43syzz3e116j.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2rtv43syzz3e116j.o deleted file mode 100644 index ef502c9..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2rtv43syzz3e116j.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2t9c7t8fa7q3tr7c.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2t9c7t8fa7q3tr7c.o deleted file mode 100644 index 24be3a2..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/2t9c7t8fa7q3tr7c.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/30o1xlaufu5x2rwd.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/30o1xlaufu5x2rwd.o deleted file mode 100644 index 23b7783..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/30o1xlaufu5x2rwd.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/32qyr78jg1rwa6g1.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/32qyr78jg1rwa6g1.o deleted file mode 100644 index 0cd6f81..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/32qyr78jg1rwa6g1.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/334ckoui3ey5uo51.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/334ckoui3ey5uo51.o deleted file mode 100644 index cda18c9..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/334ckoui3ey5uo51.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/33chierc2k6i5uqv.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/33chierc2k6i5uqv.o deleted file mode 100644 index 3a33cc8..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/33chierc2k6i5uqv.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3bkwkcth9hgggae.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3bkwkcth9hgggae.o deleted file mode 100644 index 172a853..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3bkwkcth9hgggae.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3jz02qn5vjiw6sz5.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3jz02qn5vjiw6sz5.o deleted file mode 100644 index 30c3d1f..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3jz02qn5vjiw6sz5.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3le6xv4xf0nkg560.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3le6xv4xf0nkg560.o deleted file mode 100644 index 9868791..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3le6xv4xf0nkg560.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v21idoqg1fjf4jv.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v21idoqg1fjf4jv.o deleted file mode 100644 index 6c0e736..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v21idoqg1fjf4jv.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v29x4g08glpijdj.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v29x4g08glpijdj.o deleted file mode 100644 index f81a436..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3v29x4g08glpijdj.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3wfhavj3rclupveg.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3wfhavj3rclupveg.o deleted file mode 100644 index 8fd4eb0..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/3wfhavj3rclupveg.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/40bq7tdgowhi362e.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/40bq7tdgowhi362e.o deleted file mode 100644 index 2f3a83d..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/40bq7tdgowhi362e.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/439l2mktn0av9rf0.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/439l2mktn0av9rf0.o deleted file mode 100644 index aa50b26..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/439l2mktn0av9rf0.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/44cjk84ime84q1bd.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/44cjk84ime84q1bd.o deleted file mode 100644 index 18f3e27..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/44cjk84ime84q1bd.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/456ulyipzp0nbvqn.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/456ulyipzp0nbvqn.o deleted file mode 100644 index 515c2b2..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/456ulyipzp0nbvqn.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/49tpqtk65j3t7nn0.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/49tpqtk65j3t7nn0.o deleted file mode 100644 index e535f24..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/49tpqtk65j3t7nn0.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4anavq8ru3n8g7kr.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4anavq8ru3n8g7kr.o deleted file mode 100644 index 00a43cc..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4anavq8ru3n8g7kr.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4br95dja5fsdrep5.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4br95dja5fsdrep5.o deleted file mode 100644 index f54f043..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4br95dja5fsdrep5.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4cftgyscz698ddvp.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4cftgyscz698ddvp.o deleted file mode 100644 index d89739b..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4cftgyscz698ddvp.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4def8tneaw96mqe3.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4def8tneaw96mqe3.o deleted file mode 100644 index b266565..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4def8tneaw96mqe3.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4iv8ppgg8s4czkzp.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4iv8ppgg8s4czkzp.o deleted file mode 100644 index 828f068..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4iv8ppgg8s4czkzp.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4uvbhcv8kdau5auy.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4uvbhcv8kdau5auy.o deleted file mode 100644 index ce0470b..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/4uvbhcv8kdau5auy.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/50rs00yqneqm34w6.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/50rs00yqneqm34w6.o deleted file mode 100644 index 17cb53f..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/50rs00yqneqm34w6.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5145k1oi6zqtq8k.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5145k1oi6zqtq8k.o deleted file mode 100644 index 55bf0f6..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5145k1oi6zqtq8k.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/51p649byfqsam4b4.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/51p649byfqsam4b4.o deleted file mode 100644 index 165ea1d..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/51p649byfqsam4b4.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/52rwcq9si4nswo3k.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/52rwcq9si4nswo3k.o deleted file mode 100644 index 3410e86..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/52rwcq9si4nswo3k.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53j5whxbewdtnhde.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53j5whxbewdtnhde.o deleted file mode 100644 index 15784d2..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53j5whxbewdtnhde.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53up84elqm3a4ctb.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53up84elqm3a4ctb.o deleted file mode 100644 index bff00e4..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/53up84elqm3a4ctb.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5600zjmpl19ldj15.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5600zjmpl19ldj15.o deleted file mode 100644 index cb8c4bb..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5600zjmpl19ldj15.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5asrj9nt24kbc3nu.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5asrj9nt24kbc3nu.o deleted file mode 100644 index d626ea2..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5asrj9nt24kbc3nu.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5efql6znf93nb86v.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5efql6znf93nb86v.o deleted file mode 100644 index 8d7467f..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5efql6znf93nb86v.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5ejnf2bgz1k1pf6e.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5ejnf2bgz1k1pf6e.o deleted file mode 100644 index dc2ad80..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/5ejnf2bgz1k1pf6e.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin deleted file mode 100644 index 8e5c7d4..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/dep-graph.bin and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/mi440ei4r9uur0q.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/mi440ei4r9uur0q.o deleted file mode 100644 index 884fd19..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/mi440ei4r9uur0q.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/otbge3poyau1tly.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/otbge3poyau1tly.o deleted file mode 100644 index 156cbb8..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/otbge3poyau1tly.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/pjxzx5xzd5i1pzn.o b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/pjxzx5xzd5i1pzn.o deleted file mode 100644 index 3f25552..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/pjxzx5xzd5i1pzn.o and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin deleted file mode 100644 index 624e484..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/query-cache.bin and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/work-products.bin b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/work-products.bin deleted file mode 100644 index b5b8a72..0000000 Binary files a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9-oayapwfgcekz/work-products.bin and /dev/null differ diff --git a/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9.lock b/adder/target/debug/incremental/adder-2zxkj9ftamcme/s-f9n4ung6gv-1l60rj9.lock deleted file mode 100755 index e69de29..0000000 diff --git a/adder/target/debug/libadder.d b/adder/target/debug/libadder.d deleted file mode 100644 index 9ea1be4..0000000 --- a/adder/target/debug/libadder.d +++ /dev/null @@ -1 +0,0 @@ -/home/carpenat/devel/learning-rust/adder/target/debug/libadder.rlib: /home/carpenat/devel/learning-rust/adder/src/lib.rs diff --git a/adder/target/debug/libadder.rlib b/adder/target/debug/libadder.rlib deleted file mode 100644 index 78df287..0000000 Binary files a/adder/target/debug/libadder.rlib and /dev/null differ diff --git a/lifetimes/target/.rustc_info.json b/lifetimes/target/.rustc_info.json deleted file mode 100644 index 63426f8..0000000 --- a/lifetimes/target/.rustc_info.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc_fingerprint":13848232676847739476,"outputs":{"15337506775154344876":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/adam/.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\"\nunix\n",""],"1617349019360157463":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/adam/.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\"\nunix\n",""],"1164083562126845933":["rustc 1.32.0 (9fda7c223 2019-01-16)\nbinary: rustc\ncommit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b\ncommit-date: 2019-01-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.32.0\nLLVM version: 8.0\n",""]},"successes":{}} \ No newline at end of file diff --git a/lifetimes/target/debug/.cargo-lock b/lifetimes/target/debug/.cargo-lock deleted file mode 100644 index e69de29..0000000 diff --git a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3 b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3 deleted file mode 100644 index f146f56..0000000 --- a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3 +++ /dev/null @@ -1 +0,0 @@ -c7df6e6b96a818a1 \ No newline at end of file diff --git a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3.json b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3.json deleted file mode 100644 index 3f090d3..0000000 --- a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/bin-lifetimes-efb5637f417930c3.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc":11779505878581416876,"features":"[]","target":17218091323931530620,"profile":1241200217276728497,"path":1036222786711178230,"deps":[],"local":[{"MtimeBased":[[1550322003,293604958],".fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3 b/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3 deleted file mode 100644 index e046c38..0000000 Binary files a/lifetimes/target/debug/.fingerprint/lifetimes-efb5637f417930c3/dep-bin-lifetimes-efb5637f417930c3 and /dev/null differ diff --git a/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3 b/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3 deleted file mode 100755 index 8edfb67..0000000 Binary files a/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3 and /dev/null differ diff --git a/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d b/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d deleted file mode 100644 index 0a866ec..0000000 --- a/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d +++ /dev/null @@ -1,5 +0,0 @@ -/home/adam/devel/learning-rust/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3: src/main.rs - -/home/adam/devel/learning-rust/lifetimes/target/debug/deps/lifetimes-efb5637f417930c3.d: src/main.rs - -src/main.rs: diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/10oafshzgt3w3xeo.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/10oafshzgt3w3xeo.o deleted file mode 100644 index 46d47f0..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/10oafshzgt3w3xeo.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/12ep0b6r7gf5xev8.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/12ep0b6r7gf5xev8.o deleted file mode 100644 index a010637..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/12ep0b6r7gf5xev8.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/15o4oy1d5i2cot5y.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/15o4oy1d5i2cot5y.o deleted file mode 100644 index e4908a1..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/15o4oy1d5i2cot5y.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dqcrqv4ajxjkaig.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dqcrqv4ajxjkaig.o deleted file mode 100644 index 4e616c8..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dqcrqv4ajxjkaig.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dswbkuzj3w28w51.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dswbkuzj3w28w51.o deleted file mode 100644 index 4fa58cd..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1dswbkuzj3w28w51.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1gqqj20irkfzwcwh.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1gqqj20irkfzwcwh.o deleted file mode 100644 index 30eb5b5..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1gqqj20irkfzwcwh.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1imy25kgsjnvggrs.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1imy25kgsjnvggrs.o deleted file mode 100644 index 32d6655..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1imy25kgsjnvggrs.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1ji0leyxj7ek98ow.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1ji0leyxj7ek98ow.o deleted file mode 100644 index 9c2dda3..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1ji0leyxj7ek98ow.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1mrdfm11mjvkc3ae.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1mrdfm11mjvkc3ae.o deleted file mode 100644 index e972532..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1mrdfm11mjvkc3ae.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1nf5yxicd99au96g.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1nf5yxicd99au96g.o deleted file mode 100644 index 1b534ed..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1nf5yxicd99au96g.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1s7p0acfczq7s1kq.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1s7p0acfczq7s1kq.o deleted file mode 100644 index 27a89ac..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1s7p0acfczq7s1kq.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1umnfcvuqn4ilt61.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1umnfcvuqn4ilt61.o deleted file mode 100644 index b22c7fa..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1umnfcvuqn4ilt61.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1wcconq124fi8jmy.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1wcconq124fi8jmy.o deleted file mode 100644 index 62acf8c..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/1wcconq124fi8jmy.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/20cjgxwra8j8ma5.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/20cjgxwra8j8ma5.o deleted file mode 100644 index a6e8da1..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/20cjgxwra8j8ma5.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2eb6dzxk4fpfgct2.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2eb6dzxk4fpfgct2.o deleted file mode 100644 index b9a374f..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2eb6dzxk4fpfgct2.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2kn7sctw717hdvxv.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2kn7sctw717hdvxv.o deleted file mode 100644 index 8fb1747..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/2kn7sctw717hdvxv.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/36p29dusvnnao4l6.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/36p29dusvnnao4l6.o deleted file mode 100644 index e32ab85..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/36p29dusvnnao4l6.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/37lsqijwyl9hcqdy.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/37lsqijwyl9hcqdy.o deleted file mode 100644 index 76c27d4..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/37lsqijwyl9hcqdy.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3mtnm9o8g1d4ay08.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3mtnm9o8g1d4ay08.o deleted file mode 100644 index 33c6a67..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3mtnm9o8g1d4ay08.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3o7odmue6rclr07q.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3o7odmue6rclr07q.o deleted file mode 100644 index c96f742..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3o7odmue6rclr07q.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3ovm9mpazp54gvkw.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3ovm9mpazp54gvkw.o deleted file mode 100644 index a72caa9..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3ovm9mpazp54gvkw.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3vrsmjefktbf358o.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3vrsmjefktbf358o.o deleted file mode 100644 index ae25150..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3vrsmjefktbf358o.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3x4s2wz09up1dm2n.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3x4s2wz09up1dm2n.o deleted file mode 100644 index e4e926b..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3x4s2wz09up1dm2n.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3znqya38t8dwe2at.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3znqya38t8dwe2at.o deleted file mode 100644 index a159fc1..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/3znqya38t8dwe2at.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/45ny6671yk2ypgvo.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/45ny6671yk2ypgvo.o deleted file mode 100644 index 668efd9..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/45ny6671yk2ypgvo.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4git0qmjrupi8t61.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4git0qmjrupi8t61.o deleted file mode 100644 index 585cee6..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4git0qmjrupi8t61.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4glxfcni5mbpugli.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4glxfcni5mbpugli.o deleted file mode 100644 index 4f591ee..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4glxfcni5mbpugli.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4inaqhg23zqxyqnc.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4inaqhg23zqxyqnc.o deleted file mode 100644 index f1af3d3..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4inaqhg23zqxyqnc.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4m39n3seakb54iax.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4m39n3seakb54iax.o deleted file mode 100644 index 7244487..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4m39n3seakb54iax.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4z4nzjl4q0pz1f04.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4z4nzjl4q0pz1f04.o deleted file mode 100644 index 4171c9b..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/4z4nzjl4q0pz1f04.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/50eev5qtb13tzx9b.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/50eev5qtb13tzx9b.o deleted file mode 100644 index 9886ab0..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/50eev5qtb13tzx9b.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/51gmswjzv1agzg8f.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/51gmswjzv1agzg8f.o deleted file mode 100644 index 8603195..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/51gmswjzv1agzg8f.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/5d28jwqkfvzyq5h1.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/5d28jwqkfvzyq5h1.o deleted file mode 100644 index 886b43c..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/5d28jwqkfvzyq5h1.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/b9nyaare4e7lyek.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/b9nyaare4e7lyek.o deleted file mode 100644 index 0081563..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/b9nyaare4e7lyek.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin deleted file mode 100644 index 7761f62..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/dep-graph.bin and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/pqtu3yin1ijq83m.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/pqtu3yin1ijq83m.o deleted file mode 100644 index 1ec80cd..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/pqtu3yin1ijq83m.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/query-cache.bin b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/query-cache.bin deleted file mode 100644 index 4a19fa1..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/query-cache.bin and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/tq446ynsxari1o4.o b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/tq446ynsxari1o4.o deleted file mode 100644 index 3bc6782..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/tq446ynsxari1o4.o and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/work-products.bin b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/work-products.bin deleted file mode 100644 index 00826d6..0000000 Binary files a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8-20lj7ul63d9hr/work-products.bin and /dev/null differ diff --git a/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8.lock b/lifetimes/target/debug/incremental/lifetimes-2xzusyx2j7lm/s-f9jk3gevx7-13gs7v8.lock deleted file mode 100755 index e69de29..0000000 diff --git a/lifetimes/target/debug/lifetimes b/lifetimes/target/debug/lifetimes deleted file mode 100755 index 8edfb67..0000000 Binary files a/lifetimes/target/debug/lifetimes and /dev/null differ diff --git a/lifetimes/target/debug/lifetimes.d b/lifetimes/target/debug/lifetimes.d deleted file mode 100644 index deabab0..0000000 --- a/lifetimes/target/debug/lifetimes.d +++ /dev/null @@ -1 +0,0 @@ -/home/adam/devel/learning-rust/lifetimes/target/debug/lifetimes: /home/adam/devel/learning-rust/lifetimes/src/main.rs diff --git a/minigrep/src/lib.rs b/minigrep/src/lib.rs index 9f0adbd..bf7118f 100644 --- a/minigrep/src/lib.rs +++ b/minigrep/src/lib.rs @@ -20,13 +20,17 @@ impl Config { let filename = args[2].clone(); let mut case_sensitive = env::var("CASE_INSENSITIVE").is_err(); - if args.nth(3) == "-i" { - case_sensitive = false; - } - else if args[3] == "-s" { - case_sensitive = true; + // override environment variable if cli arg is present + if args.len() > 3 { + if args[3] == "-s" { + case_sensitive = true; + } + else if args[3] == "-i" { + case_sensitive = false; + } } + Ok(Config { query, filename, case_sensitive }) } diff --git a/testing/target/.rustc_info.json b/testing/target/.rustc_info.json deleted file mode 100644 index 600a2e8..0000000 --- a/testing/target/.rustc_info.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc_fingerprint":9405769371271905430,"outputs":{"1617349019360157463":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/adam/.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\"\nunix\n",""],"1164083562126845933":["rustc 1.32.0 (9fda7c223 2019-01-16)\nbinary: rustc\ncommit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b\ncommit-date: 2019-01-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.32.0\nLLVM version: 8.0\n",""],"15337506775154344876":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/adam/.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\"\nunix\n",""]},"successes":{}} \ No newline at end of file diff --git a/testing/target/debug/.cargo-lock b/testing/target/debug/.cargo-lock deleted file mode 100644 index e69de29..0000000 diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 deleted file mode 100644 index af26160..0000000 Binary files a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6 and /dev/null differ diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 deleted file mode 100644 index 4cb1fbf..0000000 --- a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6 +++ /dev/null @@ -1 +0,0 @@ -4caec4840b18f750 \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json b/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json deleted file mode 100644 index 45fe102..0000000 --- a/testing/target/debug/.fingerprint/testing-1a358058a871a1c6/test-integration-test-integration_test-1a358058a871a1c6.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc":11779505878581416876,"features":"[]","target":3780201253000999443,"profile":18223041742459859373,"path":4024921074540020615,"deps":[["testing v0.1.0 (/home/adam/devel/learning-rust/testing)","testing",4177225302602566516]],"local":[{"MtimeBased":[[1550613799,430839384],".fingerprint/testing-1a358058a871a1c6/dep-test-integration-test-integration_test-1a358058a871a1c6"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b deleted file mode 100644 index 1a4de97..0000000 Binary files a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b and /dev/null differ diff --git a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b deleted file mode 100644 index acce564..0000000 --- a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b +++ /dev/null @@ -1 +0,0 @@ -55e68627d4517020 \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b.json b/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b.json deleted file mode 100644 index 8059742..0000000 --- a/testing/target/debug/.fingerprint/testing-6f29e5c582a3746b/test-integration-test-common-6f29e5c582a3746b.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc":11779505878581416876,"features":"[]","target":14558030872309024137,"profile":18223041742459859373,"path":7238438279853508500,"deps":[["testing v0.1.0 (/home/adam/devel/learning-rust/testing)","testing",4177225302602566516]],"local":[{"MtimeBased":[[1550612933,697509238],".fingerprint/testing-6f29e5c582a3746b/dep-test-integration-test-common-6f29e5c582a3746b"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f deleted file mode 100644 index b8e6181..0000000 Binary files a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f and /dev/null differ diff --git a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f deleted file mode 100644 index bd542ea..0000000 --- a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f +++ /dev/null @@ -1 +0,0 @@ -744b66e4477cf839 \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json b/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json deleted file mode 100644 index 60cc99b..0000000 --- a/testing/target/debug/.fingerprint/testing-813a2e3b38183b9f/lib-testing-813a2e3b38183b9f.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc":11779505878581416876,"features":"[]","target":916269982466922323,"profile":3025206789366041675,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550611710,297513131],".fingerprint/testing-813a2e3b38183b9f/dep-lib-testing-813a2e3b38183b9f"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d deleted file mode 100644 index b8e6181..0000000 Binary files a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d and /dev/null differ diff --git a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d deleted file mode 100644 index cb9313f..0000000 --- a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d +++ /dev/null @@ -1 +0,0 @@ -418854d8d907c30b \ No newline at end of file diff --git a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json b/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json deleted file mode 100644 index 8afde04..0000000 --- a/testing/target/debug/.fingerprint/testing-e06eb924885e312d/test-lib-testing-e06eb924885e312d.json +++ /dev/null @@ -1 +0,0 @@ -{"rustc":11779505878581416876,"features":"[]","target":916269982466922323,"profile":18223041742459859373,"path":10872709659218687626,"deps":[],"local":[{"MtimeBased":[[1550611710,424179798],".fingerprint/testing-e06eb924885e312d/dep-test-lib-testing-e06eb924885e312d"]}],"rustflags":[],"edition":"Edition2018"} \ No newline at end of file diff --git a/testing/target/debug/common-6f29e5c582a3746b b/testing/target/debug/common-6f29e5c582a3746b deleted file mode 100755 index 198ffed..0000000 Binary files a/testing/target/debug/common-6f29e5c582a3746b and /dev/null differ diff --git a/testing/target/debug/common-6f29e5c582a3746b.d b/testing/target/debug/common-6f29e5c582a3746b.d deleted file mode 100644 index 55f5b6b..0000000 --- a/testing/target/debug/common-6f29e5c582a3746b.d +++ /dev/null @@ -1 +0,0 @@ -/home/adam/devel/learning-rust/testing/target/debug/common-6f29e5c582a3746b: /home/adam/devel/learning-rust/testing/src/lib.rs /home/adam/devel/learning-rust/testing/tests/common.rs diff --git a/testing/target/debug/deps/common-6f29e5c582a3746b b/testing/target/debug/deps/common-6f29e5c582a3746b deleted file mode 100755 index 198ffed..0000000 Binary files a/testing/target/debug/deps/common-6f29e5c582a3746b and /dev/null differ diff --git a/testing/target/debug/deps/common-6f29e5c582a3746b.d b/testing/target/debug/deps/common-6f29e5c582a3746b.d deleted file mode 100644 index c6dce8e..0000000 --- a/testing/target/debug/deps/common-6f29e5c582a3746b.d +++ /dev/null @@ -1,5 +0,0 @@ -/home/adam/devel/learning-rust/testing/target/debug/deps/common-6f29e5c582a3746b: tests/common.rs - -/home/adam/devel/learning-rust/testing/target/debug/deps/common-6f29e5c582a3746b.d: tests/common.rs - -tests/common.rs: diff --git a/testing/target/debug/deps/integration_test-1a358058a871a1c6 b/testing/target/debug/deps/integration_test-1a358058a871a1c6 deleted file mode 100755 index 20dfc4c..0000000 Binary files a/testing/target/debug/deps/integration_test-1a358058a871a1c6 and /dev/null differ diff --git a/testing/target/debug/deps/integration_test-1a358058a871a1c6.d b/testing/target/debug/deps/integration_test-1a358058a871a1c6.d deleted file mode 100644 index 0dbda3b..0000000 --- a/testing/target/debug/deps/integration_test-1a358058a871a1c6.d +++ /dev/null @@ -1,6 +0,0 @@ -/home/adam/devel/learning-rust/testing/target/debug/deps/integration_test-1a358058a871a1c6: tests/integration_test.rs tests/common/mod.rs - -/home/adam/devel/learning-rust/testing/target/debug/deps/integration_test-1a358058a871a1c6.d: tests/integration_test.rs tests/common/mod.rs - -tests/integration_test.rs: -tests/common/mod.rs: diff --git a/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib b/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib deleted file mode 100644 index c4c9edb..0000000 Binary files a/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib and /dev/null differ diff --git a/testing/target/debug/deps/testing-813a2e3b38183b9f.d b/testing/target/debug/deps/testing-813a2e3b38183b9f.d deleted file mode 100644 index 9b18c75..0000000 --- a/testing/target/debug/deps/testing-813a2e3b38183b9f.d +++ /dev/null @@ -1,5 +0,0 @@ -/home/adam/devel/learning-rust/testing/target/debug/deps/libtesting-813a2e3b38183b9f.rlib: src/lib.rs - -/home/adam/devel/learning-rust/testing/target/debug/deps/testing-813a2e3b38183b9f.d: src/lib.rs - -src/lib.rs: diff --git a/testing/target/debug/deps/testing-e06eb924885e312d b/testing/target/debug/deps/testing-e06eb924885e312d deleted file mode 100755 index ca91ebc..0000000 Binary files a/testing/target/debug/deps/testing-e06eb924885e312d and /dev/null differ diff --git a/testing/target/debug/deps/testing-e06eb924885e312d.d b/testing/target/debug/deps/testing-e06eb924885e312d.d deleted file mode 100644 index 869b591..0000000 --- a/testing/target/debug/deps/testing-e06eb924885e312d.d +++ /dev/null @@ -1,5 +0,0 @@ -/home/adam/devel/learning-rust/testing/target/debug/deps/testing-e06eb924885e312d: src/lib.rs - -/home/adam/devel/learning-rust/testing/target/debug/deps/testing-e06eb924885e312d.d: src/lib.rs - -src/lib.rs: diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2e95vp1ukmju1ggz.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2e95vp1ukmju1ggz.o deleted file mode 100644 index 301fbd7..0000000 Binary files a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2e95vp1ukmju1ggz.o and /dev/null differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2horrs3kwkihz6vf.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2horrs3kwkihz6vf.o deleted file mode 100644 index 27df598..0000000 Binary files a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/2horrs3kwkihz6vf.o and /dev/null differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/31a05g3ojsbpqq6p.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/31a05g3ojsbpqq6p.o deleted file mode 100644 index 53234a5..0000000 Binary files a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/31a05g3ojsbpqq6p.o and /dev/null differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/3rbgd2y4kykiypkz.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/3rbgd2y4kykiypkz.o deleted file mode 100644 index 4ae506a..0000000 Binary files a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/3rbgd2y4kykiypkz.o and /dev/null differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/4dhultyt95ejeuo6.o b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/4dhultyt95ejeuo6.o deleted file mode 100644 index f1fd6d3..0000000 Binary files a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/4dhultyt95ejeuo6.o and /dev/null differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin deleted file mode 100644 index e3e8421..0000000 Binary files a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/dep-graph.bin and /dev/null differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin deleted file mode 100644 index d4a7d8c..0000000 Binary files a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/query-cache.bin and /dev/null differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/work-products.bin b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/work-products.bin deleted file mode 100644 index a699fae..0000000 Binary files a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad-wsb87b2ga02s/work-products.bin and /dev/null differ diff --git a/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad.lock b/testing/target/debug/incremental/common-345648p23iz32/s-f9n9qx0dam-b4boad.lock deleted file mode 100755 index e69de29..0000000 diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/1t03bhc6pzw2nd6m.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/1t03bhc6pzw2nd6m.o deleted file mode 100644 index 48469e9..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/1t03bhc6pzw2nd6m.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2psuteotuu954xoj.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2psuteotuu954xoj.o deleted file mode 100644 index 188e2ed..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2psuteotuu954xoj.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2ym1hzdvtimvhwql.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2ym1hzdvtimvhwql.o deleted file mode 100644 index 5414440..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/2ym1hzdvtimvhwql.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/364l98n50kntzl3h.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/364l98n50kntzl3h.o deleted file mode 100644 index 4ce7b9b..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/364l98n50kntzl3h.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3qmo95huem0jp0vl.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3qmo95huem0jp0vl.o deleted file mode 100644 index 5817de8..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3qmo95huem0jp0vl.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3u9xgzqcte93ux9p.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3u9xgzqcte93ux9p.o deleted file mode 100644 index f093979..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/3u9xgzqcte93ux9p.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/47svy69thrkymuvc.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/47svy69thrkymuvc.o deleted file mode 100644 index 9b8ecfc..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/47svy69thrkymuvc.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4da5f6fetqzr6440.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4da5f6fetqzr6440.o deleted file mode 100644 index c1d4503..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4da5f6fetqzr6440.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4gbiclu2mkawnr5u.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4gbiclu2mkawnr5u.o deleted file mode 100644 index 0784d47..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/4gbiclu2mkawnr5u.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/5fkcxe5h8f2ytj7.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/5fkcxe5h8f2ytj7.o deleted file mode 100644 index 11868e3..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/5fkcxe5h8f2ytj7.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/9gxf4e6vopz3q84.o b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/9gxf4e6vopz3q84.o deleted file mode 100644 index c5de1c1..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/9gxf4e6vopz3q84.o and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin deleted file mode 100644 index c51c5ef..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/dep-graph.bin and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin deleted file mode 100644 index 20c7600..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/query-cache.bin and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/work-products.bin b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/work-products.bin deleted file mode 100644 index baa8d18..0000000 Binary files a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y-u8lcxmz3c229/work-products.bin and /dev/null differ diff --git a/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y.lock b/testing/target/debug/incremental/integration_test-1apmhs7pz2ad4/s-f9na58eyej-1uikb2y.lock deleted file mode 100755 index e69de29..0000000 diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/141y9ktx8wlxevn4.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/141y9ktx8wlxevn4.o deleted file mode 100644 index 60e1def..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/141y9ktx8wlxevn4.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/16kthln99blc7qv3.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/16kthln99blc7qv3.o deleted file mode 100644 index d0f206a..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/16kthln99blc7qv3.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o deleted file mode 100644 index 0eaa339..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1hz7ymz8vueb3o0v.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1zze8extmhj1inh.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1zze8extmhj1inh.o deleted file mode 100644 index c6a6704..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/1zze8extmhj1inh.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o deleted file mode 100644 index 50b8e6e..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/2h6gt9o6rvpvq7re.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3fqxmakmjdr4865v.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3fqxmakmjdr4865v.o deleted file mode 100644 index 325a17f..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3fqxmakmjdr4865v.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3jssatmi8jwq2q03.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3jssatmi8jwq2q03.o deleted file mode 100644 index 979d83f..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3jssatmi8jwq2q03.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o deleted file mode 100644 index 15ca0e1..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/3lo5qhj4pbw8ykv4.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o deleted file mode 100644 index e63c90e..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4cx6zvlmoqzv3ctm.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4wme8wac7aw04zjw.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4wme8wac7aw04zjw.o deleted file mode 100644 index 770e5a7..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/4wme8wac7aw04zjw.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o deleted file mode 100644 index 50a1a9d..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/5ci3hw7n3cym6x67.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin deleted file mode 100644 index 2c801b7..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/dep-graph.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/query-cache.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/query-cache.bin deleted file mode 100644 index 6f41b12..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/query-cache.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/work-products.bin b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/work-products.bin deleted file mode 100644 index 91d3b2b..0000000 Binary files a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk-3v2a4ka3vuel2/work-products.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk.lock b/testing/target/debug/incremental/testing-1jgbjmmapp86u/s-f9n96oov48-1xus0nk.lock deleted file mode 100755 index e69de29..0000000 diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z deleted file mode 100644 index 40a464d..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.bc.z and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.o b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.o deleted file mode 100644 index 83dc79e..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/2okzpkuw96q2j6ie.o and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin deleted file mode 100644 index 7c82ce5..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/dep-graph.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin deleted file mode 100644 index 0ccf475..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/query-cache.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/work-products.bin b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/work-products.bin deleted file mode 100644 index f0c5ea1..0000000 Binary files a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua-10xvk3tbef9vt/work-products.bin and /dev/null differ diff --git a/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua.lock b/testing/target/debug/incremental/testing-3ijebx5l3ufv3/s-f9n96ooyac-8y1xua.lock deleted file mode 100755 index e69de29..0000000 diff --git a/testing/target/debug/integration_test-1a358058a871a1c6 b/testing/target/debug/integration_test-1a358058a871a1c6 deleted file mode 100755 index 20dfc4c..0000000 Binary files a/testing/target/debug/integration_test-1a358058a871a1c6 and /dev/null differ diff --git a/testing/target/debug/integration_test-1a358058a871a1c6.d b/testing/target/debug/integration_test-1a358058a871a1c6.d deleted file mode 100644 index 710433e..0000000 --- a/testing/target/debug/integration_test-1a358058a871a1c6.d +++ /dev/null @@ -1 +0,0 @@ -/home/adam/devel/learning-rust/testing/target/debug/integration_test-1a358058a871a1c6: /home/adam/devel/learning-rust/testing/src/lib.rs /home/adam/devel/learning-rust/testing/tests/common/mod.rs /home/adam/devel/learning-rust/testing/tests/integration_test.rs diff --git a/testing/target/debug/testing-e06eb924885e312d b/testing/target/debug/testing-e06eb924885e312d deleted file mode 100755 index ca91ebc..0000000 Binary files a/testing/target/debug/testing-e06eb924885e312d and /dev/null differ diff --git a/testing/target/debug/testing-e06eb924885e312d.d b/testing/target/debug/testing-e06eb924885e312d.d deleted file mode 100644 index 45d0750..0000000 --- a/testing/target/debug/testing-e06eb924885e312d.d +++ /dev/null @@ -1 +0,0 @@ -/home/adam/devel/learning-rust/testing/target/debug/testing-e06eb924885e312d: /home/adam/devel/learning-rust/testing/src/lib.rs -- cgit v1.2.3 From 3cee41f4686cf7cfe4e12c29fd222be89f811f14 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Thu, 28 Feb 2019 09:21:32 -0500 Subject: Added STDERR printing to minigrep. --- .gitignore | 3 +++ minigrep/.gitignore | 3 --- minigrep/src/main.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 minigrep/.gitignore diff --git a/.gitignore b/.gitignore index bd292a4..c91fa05 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ */target/* +*.txt +Cargo.lock + diff --git a/minigrep/.gitignore b/minigrep/.gitignore deleted file mode 100644 index 12847b6..0000000 --- a/minigrep/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -target/ -Cargo.lock -*.txt diff --git a/minigrep/src/main.rs b/minigrep/src/main.rs index b1581c9..3cec101 100644 --- a/minigrep/src/main.rs +++ b/minigrep/src/main.rs @@ -7,11 +7,11 @@ use minigrep::Config; fn main() { let args: Vec = env::args().collect(); let config = Config::new(&args).unwrap_or_else(|err| { - println!("Problem parsing arguments: {}", err); + eprintln!("Problem parsing arguments: {}", err); process::exit(1); }); if let Err(e) = minigrep::run(config) { - println!("Application error: {}", e); + eprintln!("Application error: {}", e); process::exit(1); } } -- cgit v1.2.3 From db0289b1813b73a93c22f12379ba501dbadc7552 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Thu, 28 Feb 2019 16:01:38 -0500 Subject: Updated functional. --- functional/Cargo.toml | 7 +++++++ functional/src/main.rs | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 functional/Cargo.toml create mode 100644 functional/src/main.rs diff --git a/functional/Cargo.toml b/functional/Cargo.toml new file mode 100644 index 0000000..960ba85 --- /dev/null +++ b/functional/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "functional" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/functional/src/main.rs b/functional/src/main.rs new file mode 100644 index 0000000..4fbc447 --- /dev/null +++ b/functional/src/main.rs @@ -0,0 +1,50 @@ +use std::thread; +use std::time::Duration; + +struct Cacher + where T: Fn(u32) -> u32 +{ + calculation: T, + value: Option, +} + +fn main() { + let simulated_user_specified_value = 10; + let simulated_random_number = 7; + + generate_workout( + simulated_user_specified_value, + simulated_random_number + ); +} + +fn generate_workout(intensity: u32, random_number: u32) { + let expensive_closure = |num| { + println!("calculating slowly..."); + thread::sleep(Duration::from_secs(2)); + num + }; + + if intensity < 25 { + println!( + "Today, do {} pushups!", + expensive_closure(intensity) + ); + println!( + "Next, do {} situps!", + expensive_closure(intensity) + ); + } + else { + if random_number == 3 { + println!("Take a break today! Remember to stay hydrated!"); + } + else { + println!( + "Today, run for {} minutes!", + expensive_closure(intensity) + ); + } + } +} + -- cgit v1.2.3 From b71e253b697bae079a0cf2526209334f4b81f9a5 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Fri, 1 Mar 2019 14:01:17 -0500 Subject: Added functional and implemented iterators in minigrep. --- functional/src/main.rs | 210 ++++++++++++++++++++++++++++++++++++++++--------- minigrep/Cargo.toml | 1 + minigrep/src/lib.rs | 54 +++++-------- minigrep/src/main.rs | 3 +- 4 files changed, 194 insertions(+), 74 deletions(-) diff --git a/functional/src/main.rs b/functional/src/main.rs index 4fbc447..7749e58 100644 --- a/functional/src/main.rs +++ b/functional/src/main.rs @@ -1,50 +1,188 @@ -use std::thread; -use std::time::Duration; +//use std::thread; +//use std::time::Duration; +// +//struct Cacher +// where T: Fn(u32) -> u32 +//{ +// calculation: T, +// value: Option, +//} +// +//impl Cacher +// where T: Fn(u32) -> u32 +//{ +// fn new (calculation: T) -> Cacher { +// Cacher { +// calculation, +// value: None, +// } +// } +// +// fn value(&mut self, arg: u32) -> u32 { +// match self.value { +// Some(v) => v, +// None => { +// let v = (self.calculation)(arg); +// self.value = Some(v); +// v +// }, +// } +// } +//} +// +//fn main() { +// let simulated_user_specified_value = 26; +// let simulated_random_number = 3; +// +// generate_workout( +// simulated_user_specified_value, +// simulated_random_number +// ); +//} +// +//fn generate_workout(intensity: u32, random_number: u32) { +// let mut expensive_result = Cacher::new(|num| { +// println!("calculating slowly..."); +// thread::sleep(Duration::from_secs(2)); +// num +// }); +// +// if intensity < 25 { +// println!( +// "Today, do {} pushups!", +// expensive_result.value(intensity) +// ); +// println!( +// "Next, do {} situps!", +// expensive_result.value(intensity) +// ); +// } +// else { +// if random_number == 3 { +// println!("Take a break today! Remember to stay hydrated!"); +// } +// else { +// println!( +// "Today, run for {} minutes!", +// expensive_result.value(intensity) +// ); +// } +// } +//} +// + + -struct Cacher - where T: Fn(u32) -> u32 -{ - calculation: T, - value: Option, -} fn main() { - let simulated_user_specified_value = 10; - let simulated_random_number = 7; + let v1 = vec![1, 2, 3]; + let v1_iter = v1.iter(); + + for val in v1_iter { + dbg!(val); + } +} + +#[test] +fn iterator_demonstration() { + let v1 = vec![1, 2, 3]; + let mut v1_iter = v1.iter(); + + assert_eq!(v1_iter.next(), Some(&1)); + assert_eq!(v1_iter.next(), Some(&2)); + assert_eq!(v1_iter.next(), Some(&3)); + assert_eq!(v1_iter.next(), None); +} + +#[test] +fn iterator_sum() { + let v1 = vec![1, 2, 3]; + let v1_iter = v1.iter(); + let total: i32 = v1_iter.sum(); + assert_eq!(total, 6); +} + +#[test] +fn iterator_map() { + let v1: Vec = vec![1, 2, 3]; + let v2: Vec<_> = v1.iter().map(|x| x + 1).collect(); + assert_eq!(v2, vec![2, 3, 4]); +} + + - generate_workout( - simulated_user_specified_value, - simulated_random_number +#[derive(PartialEq, Debug)] +struct Shoe { + size: i32, + style: String, +} + +fn shoes_in_my_size(shoes: Vec, shoe_size: i32) -> Vec { + shoes.into_iter() + .filter(|s| s.size == shoe_size) + .collect() +} + +#[test] +fn filters_by_size() { + let shoes = vec![ + Shoe { size: 10, style: String::from("sneaker") }, + Shoe { size: 10, style: String::from("boot") }, + Shoe { size: 13, style: String::from("sandal") }, + ]; + + let in_my_size = shoes_in_my_size(shoes, 10); + + assert_eq!( + in_my_size, + vec![ + Shoe { size: 10, style: String::from("sneaker") }, + Shoe { size: 10, style: String::from("boot") }, + ] ); } -fn generate_workout(intensity: u32, random_number: u32) { - let expensive_closure = |num| { - println!("calculating slowly..."); - thread::sleep(Duration::from_secs(2)); - num - }; - - if intensity < 25 { - println!( - "Today, do {} pushups!", - expensive_closure(intensity) - ); - println!( - "Next, do {} situps!", - expensive_closure(intensity) - ); +struct Counter { + count: u32, +} + +impl Counter { + fn new() -> Counter { + Counter { count: 0 } } - else { - if random_number == 3 { - println!("Take a break today! Remember to stay hydrated!"); +} + +impl Iterator for Counter { + type Item = u32; + + fn next(&mut self) -> Option { + self.count += 1; + + if self.count < 6 { + Some(self.count) } else { - println!( - "Today, run for {} minutes!", - expensive_closure(intensity) - ); + None } } } +#[test] +fn calling_next_directly() { + let mut counter = Counter::new(); + assert_eq!(counter.next(), Some(1)); + assert_eq!(counter.next(), Some(2)); + assert_eq!(counter.next(), Some(3)); + assert_eq!(counter.next(), Some(4)); + assert_eq!(counter.next(), Some(5)); + assert_eq!(counter.next(), None); +} + +#[test] +fn using_other_iterator_trait_methods() { + let sum: u32 = Counter::new().zip(Counter::new().skip(1)) + .map(|(a, b)| a * b) + .filter(|x| x % 3 == 0) + .sum(); + assert_eq!(18, sum); +} diff --git a/minigrep/Cargo.toml b/minigrep/Cargo.toml index 6a8174c..09021c1 100644 --- a/minigrep/Cargo.toml +++ b/minigrep/Cargo.toml @@ -5,3 +5,4 @@ authors = ["Adam Carpenter <53hornet@gmail.com>"] edition = "2018" [dependencies] + diff --git a/minigrep/src/lib.rs b/minigrep/src/lib.rs index bf7118f..bb8b4d7 100644 --- a/minigrep/src/lib.rs +++ b/minigrep/src/lib.rs @@ -10,26 +10,20 @@ pub struct Config { impl Config { - pub fn new(args: &[String]) -> Result { + pub fn new(mut args: std::env::Args) -> Result { + args.next(); - if args.len() < 3 { - return Err("Not enough arguments."); - } + let query = match args.next() { + Some(arg) => arg, + None => return Err("Didn't get a query string"), + }; - let query = args[1].clone(); - let filename = args[2].clone(); - let mut case_sensitive = env::var("CASE_INSENSITIVE").is_err(); - - // override environment variable if cli arg is present - if args.len() > 3 { - if args[3] == "-s" { - case_sensitive = true; - } - else if args[3] == "-i" { - case_sensitive = false; - } - } + let filename = match args.next() { + Some(arg) => arg, + None => return Err("Didn't get a filename"), + }; + let case_sensitive = env::var("CASE_INSENSITIVE").is_err(); Ok(Config { query, filename, case_sensitive }) } @@ -54,28 +48,16 @@ pub fn run(config: Config) -> Result<(), Box> { } fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { - let mut results = Vec::new(); - - for line in contents.lines() { - if line.contains(query) { - results.push(line); - } - } - - results + contents.lines() + .filter(|line| line.contains(query)) + .collect() } fn search_case_insensitive<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { - let query = query.to_lowercase(); - let mut results = Vec::new(); - - for line in contents.lines() { - if line.to_lowercase().contains(&query) { - results.push(line); - } - } - - results + contents.lines() + .filter(|line| line.to_lowercase() + .contains(&query.to_lowercase())) + .collect() } #[cfg(test)] diff --git a/minigrep/src/main.rs b/minigrep/src/main.rs index 3cec101..c752da1 100644 --- a/minigrep/src/main.rs +++ b/minigrep/src/main.rs @@ -5,8 +5,7 @@ use minigrep; use minigrep::Config; fn main() { - let args: Vec = env::args().collect(); - let config = Config::new(&args).unwrap_or_else(|err| { + let config = Config::new(env::args()).unwrap_or_else(|err| { eprintln!("Problem parsing arguments: {}", err); process::exit(1); }); -- cgit v1.2.3 From 8a4d2fb922c2c5a9e900b4b836d7787a09a1fe90 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Wed, 13 Mar 2019 10:02:15 -0400 Subject: Added concurrency, pointers, oop --- add/Cargo.toml | 7 ++ add/add-one/Cargo.toml | 8 ++ add/add-one/src/lib.rs | 11 +++ add/adder/Cargo.toml | 9 ++ add/adder/src/main.rs | 6 ++ blog/Cargo.toml | 7 ++ blog/src/lib.rs | 127 ++++++++++++++++++++++++ blog/src/main.rs | 36 +++++++ concurrency/Cargo.toml | 7 ++ concurrency/src/main.rs | 137 ++++++++++++++++++++++++++ guessing-game/Cargo.toml | 4 +- oop/Cargo.toml | 7 ++ oop/src/lib.rs | 41 ++++++++ oop/src/main.rs | 56 +++++++++++ smart-pointers/Cargo.toml | 7 ++ smart-pointers/src/main.rs | 234 +++++++++++++++++++++++++++++++++++++++++++++ 16 files changed, 703 insertions(+), 1 deletion(-) create mode 100644 add/Cargo.toml create mode 100644 add/add-one/Cargo.toml create mode 100644 add/add-one/src/lib.rs create mode 100644 add/adder/Cargo.toml create mode 100644 add/adder/src/main.rs create mode 100644 blog/Cargo.toml create mode 100644 blog/src/lib.rs create mode 100644 blog/src/main.rs create mode 100644 concurrency/Cargo.toml create mode 100644 concurrency/src/main.rs create mode 100644 oop/Cargo.toml create mode 100644 oop/src/lib.rs create mode 100644 oop/src/main.rs create mode 100644 smart-pointers/Cargo.toml create mode 100644 smart-pointers/src/main.rs diff --git a/add/Cargo.toml b/add/Cargo.toml new file mode 100644 index 0000000..37b9688 --- /dev/null +++ b/add/Cargo.toml @@ -0,0 +1,7 @@ +[workspace] + +members = [ + "adder", + "add-one", +] + diff --git a/add/add-one/Cargo.toml b/add/add-one/Cargo.toml new file mode 100644 index 0000000..88d65d1 --- /dev/null +++ b/add/add-one/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "add-one" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] +rand = "0.3.14" diff --git a/add/add-one/src/lib.rs b/add/add-one/src/lib.rs new file mode 100644 index 0000000..fe3583e --- /dev/null +++ b/add/add-one/src/lib.rs @@ -0,0 +1,11 @@ +pub fn add_one(x: i32) -> i32 { + x + 1 +} + +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +} diff --git a/add/adder/Cargo.toml b/add/adder/Cargo.toml new file mode 100644 index 0000000..1fefcc2 --- /dev/null +++ b/add/adder/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "adder" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] +add-one = { path = "../add-one" } + diff --git a/add/adder/src/main.rs b/add/adder/src/main.rs new file mode 100644 index 0000000..7099fb8 --- /dev/null +++ b/add/adder/src/main.rs @@ -0,0 +1,6 @@ +use add_one; + +fn main() { + let num = 10; + println!("{}", add_one::add_one(num)); +} diff --git a/blog/Cargo.toml b/blog/Cargo.toml new file mode 100644 index 0000000..0f971d3 --- /dev/null +++ b/blog/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "blog" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/blog/src/lib.rs b/blog/src/lib.rs new file mode 100644 index 0000000..8436a36 --- /dev/null +++ b/blog/src/lib.rs @@ -0,0 +1,127 @@ +//pub struct Post { +// state: Option>, +// content: String, +//} +// +//impl Post { +// pub fn new() -> Post { +// Post { +// state: Some(Box::new(Draft {})), +// content: String::new(), +// } +// } +// +// pub fn add_text(&mut self, text: &str) { +// self.content.push_str(text); +// } +// +// pub fn content(&self) -> &str { +// self.state.as_ref().unwrap().content(&self) +// } +// +// pub fn request_review(&mut self) { +// if let Some(s) = self.state.take() { +// self.state = Some(s.request_review()) +// } +// } +// +// pub fn approve(&mut self) { +// if let Some(s) = self.state.take() { +// self.state = Some(s.approve()) +// } +// } +//} +// +//trait State { +// fn request_review(self: Box) -> Box; +// fn approve(self: Box) -> Box; +// fn content<'a>(&self, post: &'a Post) -> &'a str { +// "" +// } +//} +// +//struct Draft {} +// +//impl State for Draft { +// fn request_review(self: Box) -> Box { +// Box::new(PendingReview {}) +// } +// +// fn approve(self: Box) -> Box { +// self +// } +//} +// +//struct PendingReview {} +// +//impl State for PendingReview { +// fn request_review(self: Box) -> Box { +// self +// } +// +// fn approve(self: Box) -> Box { +// Box::new(Published {}) +// } +//} +// +//struct Published {} +// +//impl State for Published { +// fn request_review(self: Box) -> Box { +// self +// } +// +// fn approve(self: Box) -> Box { +// self +// } +// +// fn content<'a>(&self, post: &'a Post) -> &'a str { +// &post.content +// } +//} + + + +pub struct Post { + content: String, +} + +pub struct DraftPost { + content: String, +} + +pub struct PendingReviewPost { + content: String, +} + +impl Post { + pub fn new() -> DraftPost { + DraftPost { + content: String::new(), + } + } + + pub fn content(&self) -> &str { + &self.content + } +} + +impl DraftPost { + pub fn add_text(&mut self, text: &str) { + self.content.push_str(text); + } + + pub fn request_review(self) -> PendingReviewPost { + PendingReviewPost { + content: self.content, + } + } +} + +impl PendingReviewPost { + pub fn approve(self) -> Post { + Post { + content: self.content, + } + } +} diff --git a/blog/src/main.rs b/blog/src/main.rs new file mode 100644 index 0000000..c976cd9 --- /dev/null +++ b/blog/src/main.rs @@ -0,0 +1,36 @@ +use blog::Post; + +fn main() { +// let mut post = Post::new(); +// +// post.add_text("salad"); +// assert_eq!("", post.content()); +// +// post.request_review(); +// assert_eq!("", post.content()); +// +// post.approve(); +// assert_eq!("salad", post.content()); + + + +// let mut post = Post::new(); +// post.add_text("salad"); +// assert_eq!("", post.content()); + + + + let mut post = Post::new(); + + post.add_text("salad"); + let post = post.request_review(); + let post = post.approve(); + + assert_eq!("salad", post.content()); + + + + + + println!("Done."); +} diff --git a/concurrency/Cargo.toml b/concurrency/Cargo.toml new file mode 100644 index 0000000..0bfe465 --- /dev/null +++ b/concurrency/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "concurrency" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/concurrency/src/main.rs b/concurrency/src/main.rs new file mode 100644 index 0000000..53417eb --- /dev/null +++ b/concurrency/src/main.rs @@ -0,0 +1,137 @@ +use std::sync::Arc; +use std::rc::Rc; +use std::sync::Mutex; +use std::thread; +use std::sync::mpsc; +use std::time::Duration; + +fn main() { +// let handle = thread::spawn(|| { +// for i in 1..10 { +// println!("spawned: {}", i); +// thread::sleep(Duration::from_millis(1)); +// } +// }); +// +// for i in 1..5 { +// println!("main: {}", i); +// thread::sleep(Duration::from_millis(1)); +// } +// +// handle.join().unwrap(); + + + +// let v = vec![1, 2, 3]; +// +// let handle = thread::spawn(move || { +// println!("Here's a vector: {:?}", v); +// }); +// +// drop(v); +// handle.join().unwrap(); + + + +// let (tx, rx) = mpsc::channel(); +// +// thread::spawn(move || { +// let val = String::from("hi"); +// tx.send(val).unwrap(); +// dbg!(val); +// }); +// +// let received = rx.recv().unwrap(); +// dbg!(received); + + + +// let (tx, rx) = mpsc::channel(); +// +// thread::spawn(move || { +// let vals = vec![ +// String::from("the"), +// String::from("walking"), +// String::from("thread"), +// ]; +// +// for val in vals { +// tx.send(val).unwrap(); +// thread::sleep(Duration::from_secs(1)); +// } +// }); +// +// for received in rx { +// println!("got {}", received); +// } + + + +// let (tx, rx) = mpsc::channel(); +// +// let tx1 = mpsc::Sender::clone(&tx); +// thread::spawn(move || { +// let vals = vec![ +// String::from("the"), +// String::from("walking"), +// String::from("thread"), +// ]; +// +// for val in vals { +// tx1.send(val).unwrap(); +// thread::sleep(Duration::from_secs(1)); +// } +// }); +// +// thread::spawn(move || { +// let vals = vec![ +// String::from("welcome"), +// String::from("to"), +// String::from("woodberry"), +// String::from("!"), +// ]; +// +// for val in vals { +// tx.send(val).unwrap(); +// thread::sleep(Duration::from_secs(1)); +// } +// }); +// +// for received in rx { +// dbg!(received); +// } + + + +// let m = Mutex::new(5); +// +// { +// let mut num = m.lock().unwrap(); +// *num = 6; +// } +// +// println!("m = {:?}", m); + + + + let counter = Arc::new(Mutex::new(0)); + let mut handles = vec![]; + + for _ in 0..10 { + let counter = Arc::clone(&counter); + let handle = thread::spawn(move || { + let mut num = counter.lock().unwrap(); + + *num += 1; + }); + handles.push(handle); + } + + for handle in handles { + handle.join().unwrap(); + } + + dbg!(*counter.lock().unwrap()); + + println!("Done."); +} diff --git a/guessing-game/Cargo.toml b/guessing-game/Cargo.toml index 8238fc5..08e8e30 100755 --- a/guessing-game/Cargo.toml +++ b/guessing-game/Cargo.toml @@ -1,8 +1,10 @@ [package] name = "guessing-game" version = "0.1.0" -authors = ["Adam Carpenter "] +authors = ["Adam Carpenter <53hornet@gmail.com>"] edition = "2018" +description = "A fun game where you guess what number the computer has chosen." +license = "MIT OR Apache-2.0" [dependencies] rand = "0.3.14" diff --git a/oop/Cargo.toml b/oop/Cargo.toml new file mode 100644 index 0000000..28311ff --- /dev/null +++ b/oop/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "oop" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/oop/src/lib.rs b/oop/src/lib.rs new file mode 100644 index 0000000..91ef2e8 --- /dev/null +++ b/oop/src/lib.rs @@ -0,0 +1,41 @@ +pub trait Draw { + fn draw(&self); +} + +pub struct Screen { + pub components: Vec>, +} + +impl Screen { + pub fn run(&self) { + for component in self.components.iter() { + component.draw(); + } + } +} + +pub struct Button { + pub width: u32, + pub height: u32, + pub label: String, +} + +impl Draw for Button { + fn draw(&self) { + dbg!("drew button"); + } +} + +pub struct SelectBox { + pub width: u32, + pub height: u32, + pub options: Vec, +} + +impl Draw for SelectBox { + fn draw(&self) { + dbg!("drew select box"); + } +} + + diff --git a/oop/src/main.rs b/oop/src/main.rs new file mode 100644 index 0000000..e92c07c --- /dev/null +++ b/oop/src/main.rs @@ -0,0 +1,56 @@ +use oop::{Screen, Button, SelectBox}; + +pub struct AveragedCollection { + list: Vec, + average: f64, +} + +impl AveragedCollection { + pub fn add(&mut self, value: i32) { + self.list.push(value); + self.update_average(); + } + + pub fn remove(&mut self) -> Option { + let result = self.list.pop(); + match result { + Some(value) => { + self.update_average(); + Some(value) + }, + None => None, + } + } + + pub fn average(&self) -> f64 { + self.average + } + + fn update_average(&mut self) { + let total: i32 = self.list.iter().sum(); + self.average = total as f64 / self.list.len() as f64; + } +} + +fn main() { + let screen = Screen { + components: vec![ + Box::new(SelectBox { + width: 75, + height: 10, + options: vec![ + String::from("Yes"), + String::from("Maybe"), + String::from("No") + ], + }), + Box::new(Button { + width: 50, + height: 10, + label: String::from("OK"), + }), + ], + }; + + screen.run(); +} diff --git a/smart-pointers/Cargo.toml b/smart-pointers/Cargo.toml new file mode 100644 index 0000000..0dcde9f --- /dev/null +++ b/smart-pointers/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "smart-pointers" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/smart-pointers/src/main.rs b/smart-pointers/src/main.rs new file mode 100644 index 0000000..5a59f52 --- /dev/null +++ b/smart-pointers/src/main.rs @@ -0,0 +1,234 @@ +use List::{Cons, Nil}; +use std::cell::RefCell; +use std::ops::Deref; +use std::rc::{Rc, Weak}; + +//enum List { +// Cons(i32, Rc), +// Nil, +//} + +//#[derive(Debug)] +//enum List { +// Cons(Rc>, Rc), +// Nil, +//} + +#[derive(Debug)] +enum List { + Cons(i32, RefCell>), + Nil, +} + +impl List { + fn tail(&self) -> Option<&RefCell>> { + match self { + Cons(_, item) => Some(item), + Nil => None, + } + } +} + +//enum List { +// Cons(i32, Box), +// Nil, +//} + +struct MyBox(T); + +impl MyBox { + fn new(x: T) -> MyBox { + MyBox(x) + } +} + +impl Deref for MyBox { + type Target = T; + fn deref(&self) -> &T { + &self.0 + } +} + +struct CustomSmartPointer { + data: String, +} + +impl Drop for CustomSmartPointer { + fn drop(&mut self) { + println!("Dropped `{}`", self.data); + } +} + +#[derive(Debug)] +struct Node { + value: i32, + parent: RefCell>, + children: RefCell>>, +} + +fn main() { +// let x = 5; +// let y = MyBox::new(x); +// +// assert_eq!(5, x); +// assert_eq!(5, *y); + +// let m = MyBox::new(String::from("world")); +// hello(&m); + +// let c = CustomSmartPointer { data: String::from("my stuff") }; +// drop(c); +// let d = CustomSmartPointer { data: String::from("other stuff") }; +// println!("created."); + +// let a = Rc::new(Cons(5, Rc::new(Cons(10, Rc::new(Nil))))); +// dbg!(Rc::strong_count(&a)); +// let b = Cons(3, Rc::clone(&a)); +// dbg!(Rc::strong_count(&a)); +// { +// let c = Cons(4, Rc::clone(&a)); +// dbg!(Rc::strong_count(&a)); +// } +// dbg!(Rc::strong_count(&a)); + +// let value = Rc::new(RefCell::new(5)); +// +// let a = Rc::new(Cons(Rc::clone(&value), Rc::new(Nil))); +// +// let b = Cons(Rc::new(RefCell::new(6)), Rc::clone(&a)); +// let c = Cons(Rc::new(RefCell::new(10)), Rc::clone(&a)); +// +// *value.borrow_mut() += 10; +// +// dbg!(a); +// dbg!(b); +// dbg!(c); + +// let a = Rc::new(Cons(5, RefCell::new(Rc::new(Nil)))); +// dbg!(Rc::strong_count(&a)); +// dbg!(a.tail()); +// let b = Rc::new(Cons(10, RefCell::new(Rc::clone(&a)))); +// dbg!(Rc::strong_count(&a)); +// dbg!(Rc::strong_count(&b)); +// dbg!(b.tail()); +// +// if let Some(link) = a.tail() { +// *link.borrow_mut() = Rc::clone(&b); +// } +// +// dbg!(Rc::strong_count(&b)); +// dbg!(Rc::strong_count(&a)); + + //dbg!(a.tail()); // stack overflow + + let leaf = Rc::new(Node { + value: 3, + parent: RefCell::new(Weak::new()), + children: RefCell::new(vec![]), + }); + + println!("leaf strong = {}, weak = {}", + Rc::strong_count(&leaf), + Rc::weak_count(&leaf),); + + { + let branch = Rc::new(Node { + value: 5, + parent: RefCell::new(Weak::new()), + children: RefCell::new(vec![Rc::clone(&leaf)]), + }); + + *leaf.parent.borrow_mut() = Rc::downgrade(&branch); + + println!( + "branch strong = {}, weak = {}", + Rc::strong_count(&branch), + Rc::weak_count(&branch), + ); + + println!( + "leaf strong = {}, weak = {}", + Rc::strong_count(&leaf), + Rc::weak_count(&leaf), + ); + } + + println!("leaf parent = {:?}", leaf.parent.borrow().upgrade()); + println!( + "leaf strong = {}, weak = {}", + Rc::strong_count(&leaf), + Rc::weak_count(&leaf), + ); +} + +fn hello(name: &str) { + println!("hiya {}", name); +} + +pub trait Messenger { + fn send(&self, msg: &str); +} + +pub struct LimitTracker<'a, T: 'a + Messenger> { + messenger: &'a T, + value: usize, + max: usize, +} + +impl<'a, T> LimitTracker<'a, T> where T: Messenger { + pub fn new(messenger: &T, max: usize) -> LimitTracker { + LimitTracker { + messenger, + value: 0, + max, + } + } + + pub fn set_value(&mut self, value: usize) { + self.value = value; + + let percentage_of_max = self.value as f64 / self.max as f64; + + if percentage_of_max >= 1.0 { + self.messenger.send("over quota"); + } + else if percentage_of_max >= 0.9 { + self.messenger.send("90% of quota"); + } + else if percentage_of_max >= 0.75 { + self.messenger.send("75% of quota"); + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + use std::cell::RefCell; + + struct MockMessenger { + sent_messages: RefCell>, + } + + impl MockMessenger { + fn new() -> MockMessenger { + MockMessenger { sent_messages: RefCell::new(vec![]) } + } + } + + impl Messenger for MockMessenger { + fn send(&self, message: &str) { + self.sent_messages.borrow_mut().push(String::from(message)); + } + } + + #[test] + fn sends_75() { + let mock_messenger = MockMessenger::new(); + let mut limit_tracker = LimitTracker::new(&mock_messenger, 100); + + limit_tracker.set_value(80); + + assert_eq!(mock_messenger.sent_messages.borrow().len(), 1); + } +} -- cgit v1.2.3 From fb82d9778bd3537988bd02dd944a2ae03a4855f3 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Fri, 15 Mar 2019 15:19:05 -0400 Subject: Added patterns. --- patterns/Cargo.toml | 7 +++++++ patterns/src/main.rs | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 patterns/Cargo.toml create mode 100644 patterns/src/main.rs diff --git a/patterns/Cargo.toml b/patterns/Cargo.toml new file mode 100644 index 0000000..784a66d --- /dev/null +++ b/patterns/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "patterns" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/patterns/src/main.rs b/patterns/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/patterns/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} -- cgit v1.2.3 From 7daad878e8c34997d981a7afc37f59f373fccf29 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Fri, 15 Mar 2019 15:40:00 -0400 Subject: Started first patterns exercise. --- patterns/src/main.rs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/patterns/src/main.rs b/patterns/src/main.rs index e7a11a9..c4d9d65 100644 --- a/patterns/src/main.rs +++ b/patterns/src/main.rs @@ -1,3 +1,23 @@ fn main() { - println!("Hello, world!"); + let favorite_color: Option<&str> = None; + let is_tuesday = false; + let age: Result = "34".parse(); + + if let Some(color) = favorite_color { + dbg!(color); + } + else if is_tuesday { + dbg!("green"); + } + else if let Ok(age) = age { + if age > 30 { + dbg!("purple"); + } + else { + dbg!("orange"); + } + } + else { + dbg!("blue"); + } } -- cgit v1.2.3 From 2fadb006603139c335ed8df8fa9c25402986c4fd Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Thu, 21 Mar 2019 13:20:03 -0400 Subject: Finished patterns. --- patterns/src/main.rs | 329 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 311 insertions(+), 18 deletions(-) diff --git a/patterns/src/main.rs b/patterns/src/main.rs index c4d9d65..4ee101d 100644 --- a/patterns/src/main.rs +++ b/patterns/src/main.rs @@ -1,23 +1,316 @@ fn main() { - let favorite_color: Option<&str> = None; - let is_tuesday = false; - let age: Result = "34".parse(); +// let favorite_color: Option<&str> = None; +// let is_tuesday = false; +// let age: Result = "34".parse(); +// +// if let Some(color) = favorite_color { +// dbg!(color); +// } +// else if is_tuesday { +// dbg!("green"); +// } +// else if let Ok(age) = age { +// if age > 30 { +// dbg!("purple"); +// } +// else { +// dbg!("orange"); +// } +// } +// else { +// dbg!("blue"); +// } - if let Some(color) = favorite_color { - dbg!(color); - } - else if is_tuesday { - dbg!("green"); - } - else if let Ok(age) = age { - if age > 30 { - dbg!("purple"); - } - else { - dbg!("orange"); - } + +// let mut stack = Vec::new(); +// +// stack.push(1); +// stack.push(2); +// stack.push(3); +// +// while let Some(top) = stack.pop() { +// dbg!(top); +// } + + +// let v = vec!['a', 'b', 'c']; +// +// for (_, value) in v.iter().enumerate() { +// //println!("{} is at index {}", value, index); +// dbg!(value); +// } + + +// let (..) = (1, 2, 3); + + +// let point = (3, 5); +// print_coords(&point); + + +// let Some(x) = Some(5); +// if let Some(x) = Some(5) { +// dbg!(x); +// } +// if let x = 5 { +// dbg!(x); +// }; + + +// let x = 1; +// +// match x { +// 1 => dbg!("one"), +// 2 => dbg!("two"), +// 3 => dbg!("three"), +// _ => dbg!("else"), +// }; + + + +// let x = Some(5); +// let y = 10; +// +// match x { +// Some(50) => println!("got 50"), +// Some(y) => println!("matched, y == {:?}", y), +// _ => println!("default: x == {:?}", x), +// } +// +// println!("end: x == {:?}, y == {:?}", x, y); + + +// let x = 5; +// +// match x { +// 1 ... 5 => println!("one through five"), +// _ => println!("else"), +// } + + +// let x = 'w'; +// +// match x { +// 'a' ... 'j' => println!("early ascii char"), +// 'k' ... 'z' => println!("late ascii char"), +// _ => println!("else"), +// } + + + +// let p = Point { x: 0, y: 7 }; +// //let Point { x: a, y: b } = p; +// let Point { x, y } = p; +// assert_eq!(0, x); +// assert_eq!(7, y); + + +// let p = Point { x: 1, y: 0 }; +// +// match p { +// Point { x, y: 0 } => dbg!("x-axis"), +// Point { x: 0, y } => dbg!("y-axis"), +// Point { x, y } => dbg!("neither"), +// }; + + +// //let msg = Message::ChangeColor(0, 160, 255); +// //let msg = Message::Write(String::from("hi there")); +// //let msg = Message::Move { +// // x: 1, +// // y: 2, +// //}; +// let msg = Message::ChangeColor(Color::Hsv(0, 160, 255)); +// +// match msg { +// Message::Quit => { +// println!("the quit variant has no data to destructure.") +// }, +// Message::Move { x, y } => { +// println!( +// "Move in the direction {}, {}", +// x, +// y +// ); +// } +// Message::Write(text) => println!("text message: {}", text), +// Message::ChangeColor(Color::Rgb(r, g, b)) => { +// println!( +// "Change the color to RGB {}{}{}", +// r, +// g, +// b +// ) +// } +// Message::ChangeColor(Color::Hsv(h, s, v)) => { +// println!( +// "Change the color to HSV {}{}{}", +// h, +// s, +// v +// ) +// } +// } + + +// let points = vec![ +// Point { x: 0, y: 0 }, +// Point { x: 1, y: 5 }, +// Point { x: 10, y: -3 }, +// ]; +// +// let sum_of_squares: i32 = points +// .iter() +// .map(|&Point { x, y } | x * x + y * y) +// .sum(); +// dbg!(sum_of_squares); +// +// +// let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); + + +// foo(3, 4); + + +// let mut setting_value = Some(5); +// //let new_setting_value = Some(10); +// let new_setting_value = None; +// +// match (setting_value, new_setting_value) { +// (Some(_), Some(_)) => { +// println!("can't overwrite existing customized value."); +// } +// _ => { +// setting_value = new_setting_value; +// } +// } +// +// println!("setting is {:?}", setting_value); +// +// +// let numbers = (2, 4, 8, 16, 32); +// +// match numbers { +// (first, _, third, _, fifth) => { +// println!("numbers: {}, {}, {}", first, third, fifth) +// }, +// } +// +// +// let _x = 5; +// let _y = 10; +// +// +// let s = Some(String::from("hello")); +// +// if let Some(_) = s { +// println!("found a string"); +// } +// +// println!("{:?}", s); + + +// let origin = Point { x: 1, y: 2, z: 3 }; +// +// match origin { +// Point {x, .. } => dbg!(x), +// }; +// +// let numbers = (2, 4, 8, 16, 32); +// +// match numbers { +// (first, .., last) => { +// dbg!(first); +// dbg!(last); +// }, +// } + + +// let num = Some(4); +// +// let test = match num { +// Some(x) if x < 5 => println!("{}", x), +// Some(x) => println!("{}", x), +// None => (), +// }; + + +// let x = Some(10); +// let y = 10; +// +// match x { +// Some(50) => println!("got 50"), +// Some(n) if n == y => println!("{:?}", n), +// _ => println!("{:?}", x), +// } +// +// println!("{:?} {:?}", x, y); + + +// let x = 4; +// let y = false; +// +// match x { +// 4 | 5 | 6 if y => println!("yes"), +// _ => println!("no"), +// } + + + enum Message { + Hello { id: i32 }, } - else { - dbg!("blue"); + + let msg = Message::Hello { id: 13 }; + + match msg { + Message::Hello { id: id_variable @ 3...7 } => { + println!("{}", id_variable) + }, + Message::Hello { id: 10...12 } => { + println!("another range") + }, + Message::Hello { id } => { + println!("else") + }, } + + + println!("Done."); } + + +//struct Point { +// x: i32, +// y: i32, +// z: i32, +//} + + +//fn foo(_: i32, y: i32) { +// println!("this code only uses y: {}", y); +//} + + +//fn print_coords(&(x, y): &(i32, i32)) { +// println!("{}, {}", x, y); +//} + + +//struct Point { +// x: i32, +// y: i32, +//} + + +//enum Message { +// Quit, +// Move { x: i32, y: i32 }, +// Write(String), +// ChangeColor(Color), +//} +// +// +//enum Color { +// Rgb(i32, i32, i32), +// Hsv(i32, i32, i32) +//} -- cgit v1.2.3 From 333965318a5d000140d54be2a2a9e0832372f271 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Thu, 21 Mar 2019 17:10:15 -0400 Subject: Added advanced features. --- advanced/adv-lifetimes/Cargo.toml | 7 +++ advanced/adv-lifetimes/src/main.rs | 36 ++++++++++++ advanced/adv-lifetimes/target/.rustc_info.json | 1 + advanced/adv-lifetimes/target/debug/.cargo-lock | 0 .../bin-adv_lifetimes-b828770eb5a3e1ce | 1 + .../bin-adv_lifetimes-b828770eb5a3e1ce.json | 1 + .../dep-bin-adv_lifetimes-b828770eb5a3e1ce | Bin 0 -> 12 bytes .../invoked.timestamp | 1 + advanced/adv-lifetimes/target/debug/adv-lifetimes | Bin 0 -> 2423032 bytes .../adv-lifetimes/target/debug/adv-lifetimes.d | 1 + .../debug/deps/adv_lifetimes-b828770eb5a3e1ce | Bin 0 -> 2423032 bytes .../debug/deps/adv_lifetimes-b828770eb5a3e1ce.d | 5 ++ .../s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.o | Bin 0 -> 5728 bytes .../s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.o | Bin 0 -> 5080 bytes .../s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.o | Bin 0 -> 3520 bytes .../s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.o | Bin 0 -> 5376 bytes .../s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.o | Bin 0 -> 5296 bytes .../s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.o | Bin 0 -> 4776 bytes .../s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.o | Bin 0 -> 5848 bytes .../s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.o | Bin 0 -> 9584 bytes .../s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.o | Bin 0 -> 6688 bytes .../s-fak9e8skp9-pon3ct-working/dep-graph.bin | Bin 0 -> 256608 bytes .../s-fak9e8skp9-pon3ct-working/query-cache.bin | Bin 0 -> 47127 bytes .../s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.o | Bin 0 -> 3976 bytes .../s-fak9e8skp9-pon3ct-working/work-products.bin | Bin 0 -> 571 bytes .../s-fak9e8skp9-pon3ct.lock | 0 .../1d3j5bthhcuoz0k9.o | Bin 0 -> 5728 bytes .../1km18hbh24de81co.o | Bin 0 -> 5080 bytes .../2v6gyxz0l04kvq2h.o | Bin 0 -> 3520 bytes .../2x7jzlfoigpi8n19.o | Bin 0 -> 5376 bytes .../2ydsyc2m0zj6gcc.o | Bin 0 -> 5296 bytes .../30vxab50z8tyxoor.o | Bin 0 -> 4776 bytes .../3ayyqouszix7bt86.o | Bin 0 -> 5848 bytes .../3roysfyfmk8bsw0.o | Bin 0 -> 9584 bytes .../4v0h7catp0lfgaza.o | Bin 0 -> 6688 bytes .../dep-graph.bin | Bin 0 -> 260822 bytes .../query-cache.bin | Bin 0 -> 47739 bytes .../sjopcb0dfmz1icu.o | Bin 0 -> 3976 bytes .../work-products.bin | Bin 0 -> 571 bytes .../s-fak9eb00ip-evja7t.lock | 0 advanced/adv-traits/Cargo.toml | 7 +++ advanced/adv-traits/src/main.rs | 34 +++++++++++ advanced/adv-traits/target/.rustc_info.json | 1 + advanced/adv-traits/target/debug/.cargo-lock | 0 .../bin-adv_traits-7a3f023f72f2e99b | 1 + .../bin-adv_traits-7a3f023f72f2e99b.json | 1 + .../dep-bin-adv_traits-7a3f023f72f2e99b | Bin 0 -> 12 bytes .../adv-traits-7a3f023f72f2e99b/invoked.timestamp | 1 + advanced/adv-traits/target/debug/adv-traits | Bin 0 -> 2443048 bytes advanced/adv-traits/target/debug/adv-traits.d | 1 + .../target/debug/deps/adv_traits-7a3f023f72f2e99b | Bin 0 -> 2443048 bytes .../debug/deps/adv_traits-7a3f023f72f2e99b.d | 5 ++ .../1817p87j5sskdd2d.o | Bin 0 -> 8920 bytes .../18dwqulmfpgc4a76.o | Bin 0 -> 7568 bytes .../1uwm6llvq8hpxxe4.o | Bin 0 -> 10160 bytes .../22vo1hhgz7nrqprk.o | Bin 0 -> 5720 bytes .../39s13eb25j8u8cmp.o | Bin 0 -> 6904 bytes .../3scspgmrophbznf2.o | Bin 0 -> 7968 bytes .../3syc801cqhizh1el.o | Bin 0 -> 4776 bytes .../4iuush58y7c4c0jb.o | Bin 0 -> 17496 bytes .../5baiae7vuud9a1ml.o | Bin 0 -> 3520 bytes .../dep-graph.bin | Bin 0 -> 530769 bytes .../query-cache.bin | Bin 0 -> 152127 bytes .../work-products.bin | Bin 0 -> 523 bytes .../s-faka7dwbdr-1ec8yia.lock | 0 advanced/unsafe-rust/Cargo.toml | 7 +++ advanced/unsafe-rust/src/main.rs | 62 +++++++++++++++++++++ advanced/unsafe-rust/target/.rustc_info.json | 1 + advanced/unsafe-rust/target/debug/.cargo-lock | 0 .../bin-unsafe_rust-c28e180aed6b1879 | 1 + .../bin-unsafe_rust-c28e180aed6b1879.json | 1 + .../dep-bin-unsafe_rust-c28e180aed6b1879 | Bin 0 -> 12 bytes .../unsafe-rust-c28e180aed6b1879/invoked.timestamp | 1 + .../target/debug/deps/unsafe_rust-c28e180aed6b1879 | Bin 0 -> 2437264 bytes .../debug/deps/unsafe_rust-c28e180aed6b1879.d | 5 ++ .../1gfyn0tm39r747ad.o | Bin 0 -> 3520 bytes .../23eb85ricvscbd12.o | Bin 0 -> 10688 bytes .../2sdrl1lm2yvj0gxu.o | Bin 0 -> 13072 bytes .../30gce4cd2hq0uwsp.o | Bin 0 -> 9224 bytes .../3iheyheinuvmg6ds.o | Bin 0 -> 5728 bytes .../4hodvrxy8ugbncf7.o | Bin 0 -> 6200 bytes .../5oo0hnz9c2qo9ox.o | Bin 0 -> 4776 bytes .../dep-graph.bin | Bin 0 -> 296578 bytes .../query-cache.bin | Bin 0 -> 82486 bytes .../work-products.bin | Bin 0 -> 413 bytes .../s-fak878gvcu-15iobpi.lock | 0 advanced/unsafe-rust/target/debug/unsafe-rust | Bin 0 -> 2437264 bytes advanced/unsafe-rust/target/debug/unsafe-rust.d | 1 + 88 files changed, 183 insertions(+) create mode 100644 advanced/adv-lifetimes/Cargo.toml create mode 100644 advanced/adv-lifetimes/src/main.rs create mode 100644 advanced/adv-lifetimes/target/.rustc_info.json create mode 100644 advanced/adv-lifetimes/target/debug/.cargo-lock create mode 100644 advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce create mode 100644 advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce.json create mode 100644 advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/dep-bin-adv_lifetimes-b828770eb5a3e1ce create mode 100644 advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/invoked.timestamp create mode 100755 advanced/adv-lifetimes/target/debug/adv-lifetimes create mode 100644 advanced/adv-lifetimes/target/debug/adv-lifetimes.d create mode 100755 advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce create mode 100644 advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/dep-graph.bin create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/query-cache.bin create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/work-products.bin create mode 100755 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct.lock create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1d3j5bthhcuoz0k9.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1km18hbh24de81co.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2v6gyxz0l04kvq2h.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2x7jzlfoigpi8n19.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2ydsyc2m0zj6gcc.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/30vxab50z8tyxoor.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3ayyqouszix7bt86.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3roysfyfmk8bsw0.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/4v0h7catp0lfgaza.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/dep-graph.bin create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/query-cache.bin create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/sjopcb0dfmz1icu.o create mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/work-products.bin create mode 100755 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t.lock create mode 100644 advanced/adv-traits/Cargo.toml create mode 100644 advanced/adv-traits/src/main.rs create mode 100644 advanced/adv-traits/target/.rustc_info.json create mode 100644 advanced/adv-traits/target/debug/.cargo-lock create mode 100644 advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b create mode 100644 advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b.json create mode 100644 advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/dep-bin-adv_traits-7a3f023f72f2e99b create mode 100644 advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/invoked.timestamp create mode 100755 advanced/adv-traits/target/debug/adv-traits create mode 100644 advanced/adv-traits/target/debug/adv-traits.d create mode 100755 advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b create mode 100644 advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1817p87j5sskdd2d.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/18dwqulmfpgc4a76.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1uwm6llvq8hpxxe4.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/22vo1hhgz7nrqprk.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/39s13eb25j8u8cmp.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3scspgmrophbznf2.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3syc801cqhizh1el.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/4iuush58y7c4c0jb.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/5baiae7vuud9a1ml.o create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/dep-graph.bin create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/query-cache.bin create mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/work-products.bin create mode 100755 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia.lock create mode 100644 advanced/unsafe-rust/Cargo.toml create mode 100644 advanced/unsafe-rust/src/main.rs create mode 100644 advanced/unsafe-rust/target/.rustc_info.json create mode 100644 advanced/unsafe-rust/target/debug/.cargo-lock create mode 100644 advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879 create mode 100644 advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879.json create mode 100644 advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/dep-bin-unsafe_rust-c28e180aed6b1879 create mode 100644 advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/invoked.timestamp create mode 100755 advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879 create mode 100644 advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/1gfyn0tm39r747ad.o create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/23eb85ricvscbd12.o create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/2sdrl1lm2yvj0gxu.o create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/30gce4cd2hq0uwsp.o create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/3iheyheinuvmg6ds.o create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/4hodvrxy8ugbncf7.o create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/5oo0hnz9c2qo9ox.o create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/dep-graph.bin create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/query-cache.bin create mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/work-products.bin create mode 100755 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi.lock create mode 100755 advanced/unsafe-rust/target/debug/unsafe-rust create mode 100644 advanced/unsafe-rust/target/debug/unsafe-rust.d 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; +} + +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 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-b828770eb5a3e1ce new file mode 100644 index 0000000..e046c38 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/dep-bin-adv_lifetimes-b828770eb5a3e1ce differ 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-lifetimes new file mode 100755 index 0000000..2b7d451 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/adv-lifetimes differ 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-b828770eb5a3e1ce new file mode 100755 index 0000000..2b7d451 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce differ 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.o new file mode 100644 index 0000000..1016763 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.o differ 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.o new file mode 100644 index 0000000..18f625a Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.o differ 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.o new file mode 100644 index 0000000..291b794 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.o differ 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.o new file mode 100644 index 0000000..d807aaf Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.o differ 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.o new file mode 100644 index 0000000..75e4ba5 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.o differ 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.o new file mode 100644 index 0000000..330d677 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.o differ 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.o new file mode 100644 index 0000000..e9f690f Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.o differ 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.o new file mode 100644 index 0000000..86f98dc Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.o differ 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.o new file mode 100644 index 0000000..27da0fb Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.o differ 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.bin new file mode 100644 index 0000000..c90662a Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/dep-graph.bin differ 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.bin new file mode 100644 index 0000000..d4c7d71 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/query-cache.bin differ 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.o new file mode 100644 index 0000000..7925212 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.o differ 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.bin new file mode 100644 index 0000000..2194036 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/work-products.bin differ 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 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.o new file mode 100644 index 0000000..1016763 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1d3j5bthhcuoz0k9.o differ 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.o new file mode 100644 index 0000000..18f625a Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1km18hbh24de81co.o differ 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.o new file mode 100644 index 0000000..291b794 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2v6gyxz0l04kvq2h.o differ 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.o new file mode 100644 index 0000000..d807aaf Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2x7jzlfoigpi8n19.o differ 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.o new file mode 100644 index 0000000..75e4ba5 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2ydsyc2m0zj6gcc.o differ 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.o new file mode 100644 index 0000000..330d677 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/30vxab50z8tyxoor.o differ 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.o new file mode 100644 index 0000000..e9f690f Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3ayyqouszix7bt86.o differ 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.o new file mode 100644 index 0000000..86f98dc Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3roysfyfmk8bsw0.o differ 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.o new file mode 100644 index 0000000..27da0fb Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/4v0h7catp0lfgaza.o differ 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.bin new file mode 100644 index 0000000..21438a4 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/dep-graph.bin differ 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.bin new file mode 100644 index 0000000..502a8b4 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/query-cache.bin differ 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.o new file mode 100644 index 0000000..7925212 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/sjopcb0dfmz1icu.o differ 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.bin new file mode 100644 index 0000000..2194036 Binary files /dev/null and b/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/work-products.bin differ 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 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; +//} +// +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 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-7a3f023f72f2e99b new file mode 100644 index 0000000..e046c38 Binary files /dev/null and b/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/dep-bin-adv_traits-7a3f023f72f2e99b differ 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-traits new file mode 100755 index 0000000..11e80f1 Binary files /dev/null and b/advanced/adv-traits/target/debug/adv-traits differ 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-7a3f023f72f2e99b new file mode 100755 index 0000000..11e80f1 Binary files /dev/null and b/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b differ 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.o new file mode 100644 index 0000000..e6e5dbd Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1817p87j5sskdd2d.o differ 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.o new file mode 100644 index 0000000..7217217 Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/18dwqulmfpgc4a76.o differ 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.o new file mode 100644 index 0000000..a50fb0f Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1uwm6llvq8hpxxe4.o differ 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.o new file mode 100644 index 0000000..2d0b66a Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/22vo1hhgz7nrqprk.o differ 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.o new file mode 100644 index 0000000..f3d3ce6 Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/39s13eb25j8u8cmp.o differ 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.o new file mode 100644 index 0000000..9d2899c Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3scspgmrophbznf2.o differ 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.o new file mode 100644 index 0000000..f364532 Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3syc801cqhizh1el.o differ 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.o new file mode 100644 index 0000000..ae9ba65 Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/4iuush58y7c4c0jb.o differ 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.o new file mode 100644 index 0000000..73eeb93 Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/5baiae7vuud9a1ml.o differ 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.bin new file mode 100644 index 0000000..37818e6 Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/dep-graph.bin differ 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.bin new file mode 100644 index 0000000..017fbfc Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/query-cache.bin differ 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.bin new file mode 100644 index 0000000..669496c Binary files /dev/null and b/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/work-products.bin differ 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 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 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-c28e180aed6b1879 new file mode 100644 index 0000000..e046c38 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/dep-bin-unsafe_rust-c28e180aed6b1879 differ 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-c28e180aed6b1879 new file mode 100755 index 0000000..4e2ac17 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879 differ 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.o new file mode 100644 index 0000000..f32ee36 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/1gfyn0tm39r747ad.o differ 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.o new file mode 100644 index 0000000..af6cc3b Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/23eb85ricvscbd12.o differ 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.o new file mode 100644 index 0000000..41b97d1 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/2sdrl1lm2yvj0gxu.o differ 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.o new file mode 100644 index 0000000..710891c Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/30gce4cd2hq0uwsp.o differ 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.o new file mode 100644 index 0000000..12ea699 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/3iheyheinuvmg6ds.o differ 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.o new file mode 100644 index 0000000..bb0d9b2 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/4hodvrxy8ugbncf7.o differ 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.o new file mode 100644 index 0000000..70db773 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/5oo0hnz9c2qo9ox.o differ 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.bin new file mode 100644 index 0000000..8e2b895 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/dep-graph.bin differ 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.bin new file mode 100644 index 0000000..ef70a51 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/query-cache.bin differ 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.bin new file mode 100644 index 0000000..fd9cb86 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/work-products.bin differ 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 diff --git a/advanced/unsafe-rust/target/debug/unsafe-rust b/advanced/unsafe-rust/target/debug/unsafe-rust new file mode 100755 index 0000000..4e2ac17 Binary files /dev/null and b/advanced/unsafe-rust/target/debug/unsafe-rust differ 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 -- cgit v1.2.3 From 2d3f9d00a7495ebfd14d720b7d0c32f6af912665 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Thu, 21 Mar 2019 17:11:25 -0400 Subject: Removed builds. --- advanced/adv-lifetimes/target/.rustc_info.json | 1 - advanced/adv-lifetimes/target/debug/.cargo-lock | 0 .../bin-adv_lifetimes-b828770eb5a3e1ce | 1 - .../bin-adv_lifetimes-b828770eb5a3e1ce.json | 1 - .../dep-bin-adv_lifetimes-b828770eb5a3e1ce | Bin 12 -> 0 bytes .../adv-lifetimes-b828770eb5a3e1ce/invoked.timestamp | 1 - advanced/adv-lifetimes/target/debug/adv-lifetimes | Bin 2423032 -> 0 bytes advanced/adv-lifetimes/target/debug/adv-lifetimes.d | 1 - .../target/debug/deps/adv_lifetimes-b828770eb5a3e1ce | Bin 2423032 -> 0 bytes .../debug/deps/adv_lifetimes-b828770eb5a3e1ce.d | 5 ----- .../s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.o | Bin 5728 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.o | Bin 5080 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.o | Bin 3520 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.o | Bin 5376 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.o | Bin 5296 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.o | Bin 4776 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.o | Bin 5848 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.o | Bin 9584 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.o | Bin 6688 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/dep-graph.bin | Bin 256608 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/query-cache.bin | Bin 47127 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.o | Bin 3976 -> 0 bytes .../s-fak9e8skp9-pon3ct-working/work-products.bin | Bin 571 -> 0 bytes .../s-fak9e8skp9-pon3ct.lock | 0 .../1d3j5bthhcuoz0k9.o | Bin 5728 -> 0 bytes .../1km18hbh24de81co.o | Bin 5080 -> 0 bytes .../2v6gyxz0l04kvq2h.o | Bin 3520 -> 0 bytes .../2x7jzlfoigpi8n19.o | Bin 5376 -> 0 bytes .../2ydsyc2m0zj6gcc.o | Bin 5296 -> 0 bytes .../30vxab50z8tyxoor.o | Bin 4776 -> 0 bytes .../3ayyqouszix7bt86.o | Bin 5848 -> 0 bytes .../3roysfyfmk8bsw0.o | Bin 9584 -> 0 bytes .../4v0h7catp0lfgaza.o | Bin 6688 -> 0 bytes .../s-fak9eb00ip-evja7t-1khe7qbw1uxvq/dep-graph.bin | Bin 260822 -> 0 bytes .../s-fak9eb00ip-evja7t-1khe7qbw1uxvq/query-cache.bin | Bin 47739 -> 0 bytes .../sjopcb0dfmz1icu.o | Bin 3976 -> 0 bytes .../work-products.bin | Bin 571 -> 0 bytes .../s-fak9eb00ip-evja7t.lock | 0 advanced/adv-traits/target/.rustc_info.json | 1 - advanced/adv-traits/target/debug/.cargo-lock | 0 .../bin-adv_traits-7a3f023f72f2e99b | 1 - .../bin-adv_traits-7a3f023f72f2e99b.json | 1 - .../dep-bin-adv_traits-7a3f023f72f2e99b | Bin 12 -> 0 bytes .../adv-traits-7a3f023f72f2e99b/invoked.timestamp | 1 - advanced/adv-traits/target/debug/adv-traits | Bin 2443048 -> 0 bytes advanced/adv-traits/target/debug/adv-traits.d | 1 - .../target/debug/deps/adv_traits-7a3f023f72f2e99b | Bin 2443048 -> 0 bytes .../target/debug/deps/adv_traits-7a3f023f72f2e99b.d | 5 ----- .../1817p87j5sskdd2d.o | Bin 8920 -> 0 bytes .../18dwqulmfpgc4a76.o | Bin 7568 -> 0 bytes .../1uwm6llvq8hpxxe4.o | Bin 10160 -> 0 bytes .../22vo1hhgz7nrqprk.o | Bin 5720 -> 0 bytes .../39s13eb25j8u8cmp.o | Bin 6904 -> 0 bytes .../3scspgmrophbznf2.o | Bin 7968 -> 0 bytes .../3syc801cqhizh1el.o | Bin 4776 -> 0 bytes .../4iuush58y7c4c0jb.o | Bin 17496 -> 0 bytes .../5baiae7vuud9a1ml.o | Bin 3520 -> 0 bytes .../s-faka7dwbdr-1ec8yia-2bomoy8swd05u/dep-graph.bin | Bin 530769 -> 0 bytes .../query-cache.bin | Bin 152127 -> 0 bytes .../work-products.bin | Bin 523 -> 0 bytes .../s-faka7dwbdr-1ec8yia.lock | 0 advanced/unsafe-rust/target/.rustc_info.json | 1 - advanced/unsafe-rust/target/debug/.cargo-lock | 0 .../bin-unsafe_rust-c28e180aed6b1879 | 1 - .../bin-unsafe_rust-c28e180aed6b1879.json | 1 - .../dep-bin-unsafe_rust-c28e180aed6b1879 | Bin 12 -> 0 bytes .../unsafe-rust-c28e180aed6b1879/invoked.timestamp | 1 - .../target/debug/deps/unsafe_rust-c28e180aed6b1879 | Bin 2437264 -> 0 bytes .../target/debug/deps/unsafe_rust-c28e180aed6b1879.d | 5 ----- .../1gfyn0tm39r747ad.o | Bin 3520 -> 0 bytes .../23eb85ricvscbd12.o | Bin 10688 -> 0 bytes .../2sdrl1lm2yvj0gxu.o | Bin 13072 -> 0 bytes .../30gce4cd2hq0uwsp.o | Bin 9224 -> 0 bytes .../3iheyheinuvmg6ds.o | Bin 5728 -> 0 bytes .../4hodvrxy8ugbncf7.o | Bin 6200 -> 0 bytes .../5oo0hnz9c2qo9ox.o | Bin 4776 -> 0 bytes .../s-fak878gvcu-15iobpi-2a6ycufm2z9xi/dep-graph.bin | Bin 296578 -> 0 bytes .../query-cache.bin | Bin 82486 -> 0 bytes .../work-products.bin | Bin 413 -> 0 bytes .../s-fak878gvcu-15iobpi.lock | 0 advanced/unsafe-rust/target/debug/unsafe-rust | Bin 2437264 -> 0 bytes advanced/unsafe-rust/target/debug/unsafe-rust.d | 1 - 82 files changed, 30 deletions(-) delete mode 100644 advanced/adv-lifetimes/target/.rustc_info.json delete mode 100644 advanced/adv-lifetimes/target/debug/.cargo-lock delete mode 100644 advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce delete mode 100644 advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce.json delete mode 100644 advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/dep-bin-adv_lifetimes-b828770eb5a3e1ce delete mode 100644 advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/invoked.timestamp delete mode 100755 advanced/adv-lifetimes/target/debug/adv-lifetimes delete mode 100644 advanced/adv-lifetimes/target/debug/adv-lifetimes.d delete mode 100755 advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce delete mode 100644 advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/dep-graph.bin delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/query-cache.bin delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/work-products.bin delete mode 100755 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct.lock delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1d3j5bthhcuoz0k9.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1km18hbh24de81co.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2v6gyxz0l04kvq2h.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2x7jzlfoigpi8n19.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2ydsyc2m0zj6gcc.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/30vxab50z8tyxoor.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3ayyqouszix7bt86.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3roysfyfmk8bsw0.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/4v0h7catp0lfgaza.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/dep-graph.bin delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/query-cache.bin delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/sjopcb0dfmz1icu.o delete mode 100644 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/work-products.bin delete mode 100755 advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t.lock delete mode 100644 advanced/adv-traits/target/.rustc_info.json delete mode 100644 advanced/adv-traits/target/debug/.cargo-lock delete mode 100644 advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b delete mode 100644 advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b.json delete mode 100644 advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/dep-bin-adv_traits-7a3f023f72f2e99b delete mode 100644 advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/invoked.timestamp delete mode 100755 advanced/adv-traits/target/debug/adv-traits delete mode 100644 advanced/adv-traits/target/debug/adv-traits.d delete mode 100755 advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b delete mode 100644 advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1817p87j5sskdd2d.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/18dwqulmfpgc4a76.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1uwm6llvq8hpxxe4.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/22vo1hhgz7nrqprk.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/39s13eb25j8u8cmp.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3scspgmrophbznf2.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3syc801cqhizh1el.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/4iuush58y7c4c0jb.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/5baiae7vuud9a1ml.o delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/dep-graph.bin delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/query-cache.bin delete mode 100644 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/work-products.bin delete mode 100755 advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia.lock delete mode 100644 advanced/unsafe-rust/target/.rustc_info.json delete mode 100644 advanced/unsafe-rust/target/debug/.cargo-lock delete mode 100644 advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879 delete mode 100644 advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879.json delete mode 100644 advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/dep-bin-unsafe_rust-c28e180aed6b1879 delete mode 100644 advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/invoked.timestamp delete mode 100755 advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879 delete mode 100644 advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/1gfyn0tm39r747ad.o delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/23eb85ricvscbd12.o delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/2sdrl1lm2yvj0gxu.o delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/30gce4cd2hq0uwsp.o delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/3iheyheinuvmg6ds.o delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/4hodvrxy8ugbncf7.o delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/5oo0hnz9c2qo9ox.o delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/dep-graph.bin delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/query-cache.bin delete mode 100644 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/work-products.bin delete mode 100755 advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi.lock delete mode 100755 advanced/unsafe-rust/target/debug/unsafe-rust delete mode 100644 advanced/unsafe-rust/target/debug/unsafe-rust.d diff --git a/advanced/adv-lifetimes/target/.rustc_info.json b/advanced/adv-lifetimes/target/.rustc_info.json deleted file mode 100644 index 1ebffa8..0000000 --- a/advanced/adv-lifetimes/target/.rustc_info.json +++ /dev/null @@ -1 +0,0 @@ -{"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 deleted file mode 100644 index e69de29..0000000 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 deleted file mode 100644 index 343281c..0000000 --- a/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 5c49bc9..0000000 --- a/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/bin-adv_lifetimes-b828770eb5a3e1ce.json +++ /dev/null @@ -1 +0,0 @@ -{"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-b828770eb5a3e1ce deleted file mode 100644 index e046c38..0000000 Binary files a/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/dep-bin-adv_lifetimes-b828770eb5a3e1ce and /dev/null differ 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 deleted file mode 100644 index e00328d..0000000 --- a/advanced/adv-lifetimes/target/debug/.fingerprint/adv-lifetimes-b828770eb5a3e1ce/invoked.timestamp +++ /dev/null @@ -1 +0,0 @@ -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-lifetimes deleted file mode 100755 index 2b7d451..0000000 Binary files a/advanced/adv-lifetimes/target/debug/adv-lifetimes and /dev/null differ diff --git a/advanced/adv-lifetimes/target/debug/adv-lifetimes.d b/advanced/adv-lifetimes/target/debug/adv-lifetimes.d deleted file mode 100644 index 5b70c2f..0000000 --- a/advanced/adv-lifetimes/target/debug/adv-lifetimes.d +++ /dev/null @@ -1 +0,0 @@ -/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-b828770eb5a3e1ce deleted file mode 100755 index 2b7d451..0000000 Binary files a/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce and /dev/null differ diff --git a/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d b/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d deleted file mode 100644 index 46f625d..0000000 --- a/advanced/adv-lifetimes/target/debug/deps/adv_lifetimes-b828770eb5a3e1ce.d +++ /dev/null @@ -1,5 +0,0 @@ -/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.o deleted file mode 100644 index 1016763..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1d3j5bthhcuoz0k9.o and /dev/null differ 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.o deleted file mode 100644 index 18f625a..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/1km18hbh24de81co.o and /dev/null differ 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.o deleted file mode 100644 index 291b794..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2v6gyxz0l04kvq2h.o and /dev/null differ 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.o deleted file mode 100644 index d807aaf..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2x7jzlfoigpi8n19.o and /dev/null differ 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.o deleted file mode 100644 index 75e4ba5..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/2ydsyc2m0zj6gcc.o and /dev/null differ 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.o deleted file mode 100644 index 330d677..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/30vxab50z8tyxoor.o and /dev/null differ 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.o deleted file mode 100644 index e9f690f..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3ayyqouszix7bt86.o and /dev/null differ 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.o deleted file mode 100644 index 86f98dc..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/3roysfyfmk8bsw0.o and /dev/null differ 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.o deleted file mode 100644 index 27da0fb..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/4v0h7catp0lfgaza.o and /dev/null differ 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.bin deleted file mode 100644 index c90662a..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/dep-graph.bin and /dev/null differ 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.bin deleted file mode 100644 index d4c7d71..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/query-cache.bin and /dev/null differ 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.o deleted file mode 100644 index 7925212..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/sjopcb0dfmz1icu.o and /dev/null differ 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.bin deleted file mode 100644 index 2194036..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9e8skp9-pon3ct-working/work-products.bin and /dev/null differ 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 deleted file mode 100755 index e69de29..0000000 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.o deleted file mode 100644 index 1016763..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1d3j5bthhcuoz0k9.o and /dev/null differ 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.o deleted file mode 100644 index 18f625a..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/1km18hbh24de81co.o and /dev/null differ 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.o deleted file mode 100644 index 291b794..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2v6gyxz0l04kvq2h.o and /dev/null differ 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.o deleted file mode 100644 index d807aaf..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2x7jzlfoigpi8n19.o and /dev/null differ 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.o deleted file mode 100644 index 75e4ba5..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/2ydsyc2m0zj6gcc.o and /dev/null differ 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.o deleted file mode 100644 index 330d677..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/30vxab50z8tyxoor.o and /dev/null differ 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.o deleted file mode 100644 index e9f690f..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3ayyqouszix7bt86.o and /dev/null differ 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.o deleted file mode 100644 index 86f98dc..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/3roysfyfmk8bsw0.o and /dev/null differ 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.o deleted file mode 100644 index 27da0fb..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/4v0h7catp0lfgaza.o and /dev/null differ 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.bin deleted file mode 100644 index 21438a4..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/dep-graph.bin and /dev/null differ 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.bin deleted file mode 100644 index 502a8b4..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/query-cache.bin and /dev/null differ 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.o deleted file mode 100644 index 7925212..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/sjopcb0dfmz1icu.o and /dev/null differ 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.bin deleted file mode 100644 index 2194036..0000000 Binary files a/advanced/adv-lifetimes/target/debug/incremental/adv_lifetimes-34ntmydx9mq3p/s-fak9eb00ip-evja7t-1khe7qbw1uxvq/work-products.bin and /dev/null differ 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 deleted file mode 100755 index e69de29..0000000 diff --git a/advanced/adv-traits/target/.rustc_info.json b/advanced/adv-traits/target/.rustc_info.json deleted file mode 100644 index 7928d45..0000000 --- a/advanced/adv-traits/target/.rustc_info.json +++ /dev/null @@ -1 +0,0 @@ -{"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 deleted file mode 100644 index e69de29..0000000 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 deleted file mode 100644 index e613bbc..0000000 --- a/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 8b613d0..0000000 --- a/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/bin-adv_traits-7a3f023f72f2e99b.json +++ /dev/null @@ -1 +0,0 @@ -{"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-7a3f023f72f2e99b deleted file mode 100644 index e046c38..0000000 Binary files a/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/dep-bin-adv_traits-7a3f023f72f2e99b and /dev/null differ 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 deleted file mode 100644 index e00328d..0000000 --- a/advanced/adv-traits/target/debug/.fingerprint/adv-traits-7a3f023f72f2e99b/invoked.timestamp +++ /dev/null @@ -1 +0,0 @@ -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-traits deleted file mode 100755 index 11e80f1..0000000 Binary files a/advanced/adv-traits/target/debug/adv-traits and /dev/null differ diff --git a/advanced/adv-traits/target/debug/adv-traits.d b/advanced/adv-traits/target/debug/adv-traits.d deleted file mode 100644 index 8564f19..0000000 --- a/advanced/adv-traits/target/debug/adv-traits.d +++ /dev/null @@ -1 +0,0 @@ -/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-7a3f023f72f2e99b deleted file mode 100755 index 11e80f1..0000000 Binary files a/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b and /dev/null differ diff --git a/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d b/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d deleted file mode 100644 index ea0dbeb..0000000 --- a/advanced/adv-traits/target/debug/deps/adv_traits-7a3f023f72f2e99b.d +++ /dev/null @@ -1,5 +0,0 @@ -/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.o deleted file mode 100644 index e6e5dbd..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1817p87j5sskdd2d.o and /dev/null differ 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.o deleted file mode 100644 index 7217217..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/18dwqulmfpgc4a76.o and /dev/null differ 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.o deleted file mode 100644 index a50fb0f..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/1uwm6llvq8hpxxe4.o and /dev/null differ 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.o deleted file mode 100644 index 2d0b66a..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/22vo1hhgz7nrqprk.o and /dev/null differ 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.o deleted file mode 100644 index f3d3ce6..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/39s13eb25j8u8cmp.o and /dev/null differ 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.o deleted file mode 100644 index 9d2899c..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3scspgmrophbznf2.o and /dev/null differ 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.o deleted file mode 100644 index f364532..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/3syc801cqhizh1el.o and /dev/null differ 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.o deleted file mode 100644 index ae9ba65..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/4iuush58y7c4c0jb.o and /dev/null differ 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.o deleted file mode 100644 index 73eeb93..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/5baiae7vuud9a1ml.o and /dev/null differ 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.bin deleted file mode 100644 index 37818e6..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/dep-graph.bin and /dev/null differ 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.bin deleted file mode 100644 index 017fbfc..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/query-cache.bin and /dev/null differ 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.bin deleted file mode 100644 index 669496c..0000000 Binary files a/advanced/adv-traits/target/debug/incremental/adv_traits-2ru2bytkxlvmk/s-faka7dwbdr-1ec8yia-2bomoy8swd05u/work-products.bin and /dev/null differ 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 deleted file mode 100755 index e69de29..0000000 diff --git a/advanced/unsafe-rust/target/.rustc_info.json b/advanced/unsafe-rust/target/.rustc_info.json deleted file mode 100644 index 9d7b53d..0000000 --- a/advanced/unsafe-rust/target/.rustc_info.json +++ /dev/null @@ -1 +0,0 @@ -{"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 deleted file mode 100644 index e69de29..0000000 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 deleted file mode 100644 index 482713d..0000000 --- a/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879 +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 57b65ce..0000000 --- a/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/bin-unsafe_rust-c28e180aed6b1879.json +++ /dev/null @@ -1 +0,0 @@ -{"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-c28e180aed6b1879 deleted file mode 100644 index e046c38..0000000 Binary files a/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/dep-bin-unsafe_rust-c28e180aed6b1879 and /dev/null differ 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 deleted file mode 100644 index e00328d..0000000 --- a/advanced/unsafe-rust/target/debug/.fingerprint/unsafe-rust-c28e180aed6b1879/invoked.timestamp +++ /dev/null @@ -1 +0,0 @@ -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-c28e180aed6b1879 deleted file mode 100755 index 4e2ac17..0000000 Binary files a/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879 and /dev/null differ diff --git a/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d b/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d deleted file mode 100644 index f91b92f..0000000 --- a/advanced/unsafe-rust/target/debug/deps/unsafe_rust-c28e180aed6b1879.d +++ /dev/null @@ -1,5 +0,0 @@ -/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.o deleted file mode 100644 index f32ee36..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/1gfyn0tm39r747ad.o and /dev/null differ 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.o deleted file mode 100644 index af6cc3b..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/23eb85ricvscbd12.o and /dev/null differ 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.o deleted file mode 100644 index 41b97d1..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/2sdrl1lm2yvj0gxu.o and /dev/null differ 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.o deleted file mode 100644 index 710891c..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/30gce4cd2hq0uwsp.o and /dev/null differ 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.o deleted file mode 100644 index 12ea699..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/3iheyheinuvmg6ds.o and /dev/null differ 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.o deleted file mode 100644 index bb0d9b2..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/4hodvrxy8ugbncf7.o and /dev/null differ 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.o deleted file mode 100644 index 70db773..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/5oo0hnz9c2qo9ox.o and /dev/null differ 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.bin deleted file mode 100644 index 8e2b895..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/dep-graph.bin and /dev/null differ 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.bin deleted file mode 100644 index ef70a51..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/query-cache.bin and /dev/null differ 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.bin deleted file mode 100644 index fd9cb86..0000000 Binary files a/advanced/unsafe-rust/target/debug/incremental/unsafe_rust-1at6ysk050g0v/s-fak878gvcu-15iobpi-2a6ycufm2z9xi/work-products.bin and /dev/null differ 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 deleted file mode 100755 index e69de29..0000000 diff --git a/advanced/unsafe-rust/target/debug/unsafe-rust b/advanced/unsafe-rust/target/debug/unsafe-rust deleted file mode 100755 index 4e2ac17..0000000 Binary files a/advanced/unsafe-rust/target/debug/unsafe-rust and /dev/null differ diff --git a/advanced/unsafe-rust/target/debug/unsafe-rust.d b/advanced/unsafe-rust/target/debug/unsafe-rust.d deleted file mode 100644 index 4a06b79..0000000 --- a/advanced/unsafe-rust/target/debug/unsafe-rust.d +++ /dev/null @@ -1 +0,0 @@ -/home/carpenat/devel/learning-rust/advanced/unsafe-rust/target/debug/unsafe-rust: /home/carpenat/devel/learning-rust/advanced/unsafe-rust/src/main.rs -- cgit v1.2.3 From b1ea85616e4367713afbeabb6cfb6ae553c17a60 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Thu, 21 Mar 2019 17:12:26 -0400 Subject: Updated .gitignore. --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c91fa05..4152e65 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ */target/* *.txt -Cargo.lock +*Cargo.lock -- cgit v1.2.3 From cbfe2f1de7f0e24525e641228fec4c659badde93 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Fri, 22 Mar 2019 16:48:03 -0400 Subject: Added advanced traits, types, functions. --- advanced/adv-fn-closure/Cargo.toml | 7 ++ advanced/adv-fn-closure/src/main.rs | 13 +++ advanced/adv-traits/src/main.rs | 161 ++++++++++++++++++++++++++++++++---- advanced/adv-types/Cargo.toml | 7 ++ advanced/adv-types/src/main.rs | 41 +++++++++ 5 files changed, 213 insertions(+), 16 deletions(-) create mode 100644 advanced/adv-fn-closure/Cargo.toml create mode 100644 advanced/adv-fn-closure/src/main.rs create mode 100644 advanced/adv-types/Cargo.toml create mode 100644 advanced/adv-types/src/main.rs diff --git a/advanced/adv-fn-closure/Cargo.toml b/advanced/adv-fn-closure/Cargo.toml new file mode 100644 index 0000000..259562e --- /dev/null +++ b/advanced/adv-fn-closure/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "adv-fn-closure" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/advanced/adv-fn-closure/src/main.rs b/advanced/adv-fn-closure/src/main.rs new file mode 100644 index 0000000..d31bd90 --- /dev/null +++ b/advanced/adv-fn-closure/src/main.rs @@ -0,0 +1,13 @@ +fn add_one(x: i32) -> i32 { + x + 1 +} + +fn do_twice(f: fn(i32) -> i32, arg: i32) -> i32 { + f(arg) + f(arg) +} + +fn main() { + let answer = do_twice(add_one, 5); + + println!("{}", answer); +} diff --git a/advanced/adv-traits/src/main.rs b/advanced/adv-traits/src/main.rs index 6ec0aac..659883c 100644 --- a/advanced/adv-traits/src/main.rs +++ b/advanced/adv-traits/src/main.rs @@ -8,27 +8,156 @@ // fn next(&mut self) -> Option; //} // -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, +// } +// } +//} -#[derive(Debug, PartialEq)] -struct Point { - x: i32, - y: i32, -} +//fn main() { +// assert_eq!(Point { x: 1, y: 0 } + Point { x: 2, y: 3 }, +// Point { x: 3, y: 3 }); +// println!("Done."); +//} + +//trait Add { +// type Output; +// +// fn add(self, rhs: RHS) -> Self::Output; +//} + +//use std::ops::Add; +// +//struct Millimeters(u32); +//struct Meters(u32); +// +//impl Add for Millimeters { +// type Output = Millimeters; +// +// fn add(self, other: Meters) -> Millimeters { +// Millimeters(self.0 + (other.0 * 1000)) +// } +//} + + +//trait Pilot { +// fn fly(&self); +//} +// +//trait Wizard { +// fn fly(&self); +//} +// +//struct Human; +// +//impl Pilot for Human { +// fn fly(&self) { +// println!("Because I was inverted."); +// } +//} +// +//impl Wizard for Human { +// fn fly(&self) { +// println!("Fly, you fools."); +// } +//} +// +//impl Human { +// fn fly(&self) { +// println!("*feels real loose like a long-neck goose*"); +// } +//} +// +// +//trait Animal { +// fn baby_name() -> String; +//} +// +//struct Dog; +// +//impl Dog { +// fn baby_name() -> String { +// String::from("Spot") +// } +//} +// +//impl Animal for Dog { +// fn baby_name() -> String { +// String::from("puppy") +// } +//} + + +//fn main() { +// let person = Human; +// person.fly(); +// Pilot::fly(&person); +// Wizard::fly(&person); +// +// +// println!("A baby dog is called a {}", ::baby_name()); +// +// +// println!("Done."); +//} +// + + +//use std::fmt; +// +//trait OutlinePrint: fmt::Display { +// fn outline_print(&self) { +// let output = self.to_string(); +// let len = output.len(); +// println!("{}", "*".repeat(len + 4)); +// println!("*{}*", " ".repeat(len + 2)); +// println!("* {} *", output); +// println!("*{}*", " ".repeat(len + 2)); +// println!("{}", "*".repeat(len + 4)); +// } +//} +// +//struct Point { +// x: i32, +// y: i32, +//} +// +//impl OutlinePrint for Point {} +// +//impl fmt::Display for Point { +// fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { +// write!(f, "({}, {})", self.x, self.y) +// } +//} +// +//fn main() { +// let point = Point { x: 5, y: 6 }; +// point.outline_print(); +//} + +use std::fmt; -impl Add for Point { - type Output = Point; +struct Wrapper(Vec); - fn add(self, other: Point) -> Point { - Point { - x: self.x + other.x, - y: self.y + other.y, - } +impl fmt::Display for Wrapper { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "[{}]", self.0.join(", ")) } } fn main() { - assert_eq!(Point { x: 1, y: 0 } + Point { x: 2, y: 3 }, - Point { x: 3, y: 3 }); - println!("Done."); + let w = Wrapper(vec![String::from("hello"), String::from("world")]); + println!("w = {}", w); } diff --git a/advanced/adv-types/Cargo.toml b/advanced/adv-types/Cargo.toml new file mode 100644 index 0000000..a3ca211 --- /dev/null +++ b/advanced/adv-types/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "adv-types" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/advanced/adv-types/src/main.rs b/advanced/adv-types/src/main.rs new file mode 100644 index 0000000..60d42b2 --- /dev/null +++ b/advanced/adv-types/src/main.rs @@ -0,0 +1,41 @@ +//use std::io::Error; +//use std::fmt; + +//pub trait Write { +// +// fn write(&mut self, buf: &[u8]) -> Result; +// fn flush(&mut self) -> Result<(), Error>; +// +// fn write_all(&mut self, buf: &[u8]) -> Result<()>; +// fn write_fmt(&mut self, fmt: fmt::Arguments) -> Result<()>; +//} + +//fn main() { +// type Miles = i32; +// +// let x: i32 = 5; +// let y: Miles = 5; +// +// println!("x + y = {}", x + y); + + +//} + +//type Thunk = Box; +// +//let f: Thunk = Box::new(|| println!("hi")); +// +//fn takes_long_type(f: Thunk) { +//} +// +//fn returns_long_type() -> Thunk { +//} + +fn main() { + print!("forever"); + + loop { + print!("and ever "); + } +} + -- cgit v1.2.3 From fca68dfe8b49914d13f29706522cb0d3ad80a390 Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Fri, 22 Mar 2019 21:47:54 -0400 Subject: Added crates module (?) --- crates/Cargo.toml | 7 +++++++ crates/src/lib.rs | 33 +++++++++++++++++++++++++++++++++ crates/src/main.rs | 8 ++++++++ 3 files changed, 48 insertions(+) create mode 100644 crates/Cargo.toml create mode 100644 crates/src/lib.rs create mode 100644 crates/src/main.rs diff --git a/crates/Cargo.toml b/crates/Cargo.toml new file mode 100644 index 0000000..202ff1d --- /dev/null +++ b/crates/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "crates" +version = "0.1.0" +authors = ["53hornet <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/crates/src/lib.rs b/crates/src/lib.rs new file mode 100644 index 0000000..5cf1d97 --- /dev/null +++ b/crates/src/lib.rs @@ -0,0 +1,33 @@ +//! # Art +//! +//! A library for modeling artistic concepts. + +pub use kinds::PrimaryColor; +pub use kinds::SecondaryColor; +pub use utils::mix; + +pub mod kinds { + /// The primary colors according to the RYB color model. + pub enum PrimaryColor { + Red, + Yellow, + Blue, + } + + /// The secondary colors according to the RYB color model. + pub enum SecondaryColor { + Orange, + Green, + Purple, + } +} + +pub mod utils { + use crate::kinds::*; + + /// Combines two primary color in equal amounts to create + /// a secondary color. + pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { + SecondaryColor::Green + } +} diff --git a/crates/src/main.rs b/crates/src/main.rs new file mode 100644 index 0000000..80668f2 --- /dev/null +++ b/crates/src/main.rs @@ -0,0 +1,8 @@ +use art::PrimaryColor; +use art::mix; + +fn main() { + let red = PrimaryColor::Red, + let yellow = PrimaryColor::Yellow; + mix(red, yellow); +} -- cgit v1.2.3 From 0dac5e02a0da650e20a6385c27a385d05823f80c Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Fri, 22 Mar 2019 21:48:40 -0400 Subject: Re-added Cargo.lock. --- .gitignore | 2 -- crates/Cargo.lock | 4 ++++ minigrep/Cargo.lock | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 crates/Cargo.lock create mode 100644 minigrep/Cargo.lock diff --git a/.gitignore b/.gitignore index 4152e65..45b6de8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ */target/* *.txt -*Cargo.lock - diff --git a/crates/Cargo.lock b/crates/Cargo.lock new file mode 100644 index 0000000..3e95fa1 --- /dev/null +++ b/crates/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "crates" +version = "0.1.0" + diff --git a/minigrep/Cargo.lock b/minigrep/Cargo.lock new file mode 100644 index 0000000..5b5afdd --- /dev/null +++ b/minigrep/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "minigrep" +version = "0.1.0" + -- cgit v1.2.3 From 29db8e4c4182877e5e723e26e2c5ae11e9383520 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Mon, 25 Mar 2019 07:44:43 -0400 Subject: Re-added Cargo.lock files; gitignoring target directories. --- .gitignore | 4 +--- add/Cargo.lock | 11 +++++++++++ advanced/adv-fn-closure/Cargo.lock | 4 ++++ advanced/adv-lifetimes/Cargo.lock | 4 ++++ advanced/adv-traits/Cargo.lock | 4 ++++ advanced/adv-types/Cargo.lock | 4 ++++ advanced/unsafe-rust/Cargo.lock | 4 ++++ blog/Cargo.lock | 4 ++++ concurrency/Cargo.lock | 4 ++++ functional/Cargo.lock | 4 ++++ minigrep/Cargo.lock | 4 ++++ oop/Cargo.lock | 4 ++++ patterns/Cargo.lock | 4 ++++ smart-pointers/Cargo.lock | 4 ++++ 14 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 add/Cargo.lock create mode 100644 advanced/adv-fn-closure/Cargo.lock create mode 100644 advanced/adv-lifetimes/Cargo.lock create mode 100644 advanced/adv-traits/Cargo.lock create mode 100644 advanced/adv-types/Cargo.lock create mode 100644 advanced/unsafe-rust/Cargo.lock create mode 100644 blog/Cargo.lock create mode 100644 concurrency/Cargo.lock create mode 100644 functional/Cargo.lock create mode 100644 minigrep/Cargo.lock create mode 100644 oop/Cargo.lock create mode 100644 patterns/Cargo.lock create mode 100644 smart-pointers/Cargo.lock diff --git a/.gitignore b/.gitignore index 4152e65..871d5ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ -*/target/* +target/ *.txt -*Cargo.lock - diff --git a/add/Cargo.lock b/add/Cargo.lock new file mode 100644 index 0000000..64cb0d1 --- /dev/null +++ b/add/Cargo.lock @@ -0,0 +1,11 @@ +[[package]] +name = "add-one" +version = "0.1.0" + +[[package]] +name = "adder" +version = "0.1.0" +dependencies = [ + "add-one 0.1.0", +] + diff --git a/advanced/adv-fn-closure/Cargo.lock b/advanced/adv-fn-closure/Cargo.lock new file mode 100644 index 0000000..cfa8ec5 --- /dev/null +++ b/advanced/adv-fn-closure/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "adv-fn-closure" +version = "0.1.0" + diff --git a/advanced/adv-lifetimes/Cargo.lock b/advanced/adv-lifetimes/Cargo.lock new file mode 100644 index 0000000..591810c --- /dev/null +++ b/advanced/adv-lifetimes/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "adv-lifetimes" +version = "0.1.0" + diff --git a/advanced/adv-traits/Cargo.lock b/advanced/adv-traits/Cargo.lock new file mode 100644 index 0000000..4fb1ae5 --- /dev/null +++ b/advanced/adv-traits/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "adv-traits" +version = "0.1.0" + diff --git a/advanced/adv-types/Cargo.lock b/advanced/adv-types/Cargo.lock new file mode 100644 index 0000000..a7ad78b --- /dev/null +++ b/advanced/adv-types/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "adv-types" +version = "0.1.0" + diff --git a/advanced/unsafe-rust/Cargo.lock b/advanced/unsafe-rust/Cargo.lock new file mode 100644 index 0000000..fbd902c --- /dev/null +++ b/advanced/unsafe-rust/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "unsafe-rust" +version = "0.1.0" + diff --git a/blog/Cargo.lock b/blog/Cargo.lock new file mode 100644 index 0000000..8e79386 --- /dev/null +++ b/blog/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "blog" +version = "0.1.0" + diff --git a/concurrency/Cargo.lock b/concurrency/Cargo.lock new file mode 100644 index 0000000..74a4d7a --- /dev/null +++ b/concurrency/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "concurrency" +version = "0.1.0" + diff --git a/functional/Cargo.lock b/functional/Cargo.lock new file mode 100644 index 0000000..ba41a73 --- /dev/null +++ b/functional/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "functional" +version = "0.1.0" + diff --git a/minigrep/Cargo.lock b/minigrep/Cargo.lock new file mode 100644 index 0000000..5b5afdd --- /dev/null +++ b/minigrep/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "minigrep" +version = "0.1.0" + diff --git a/oop/Cargo.lock b/oop/Cargo.lock new file mode 100644 index 0000000..fd3ef4a --- /dev/null +++ b/oop/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "oop" +version = "0.1.0" + diff --git a/patterns/Cargo.lock b/patterns/Cargo.lock new file mode 100644 index 0000000..a233623 --- /dev/null +++ b/patterns/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "patterns" +version = "0.1.0" + diff --git a/smart-pointers/Cargo.lock b/smart-pointers/Cargo.lock new file mode 100644 index 0000000..7dec816 --- /dev/null +++ b/smart-pointers/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "smart-pointers" +version = "0.1.0" + -- cgit v1.2.3 From 5718a0b54869b341bc74416bf82b716aa15d582c Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Tue, 26 Mar 2019 15:05:10 -0400 Subject: Finished web server project. Book done! --- advanced/adv-fn-closure/Cargo.lock | 7 +++ advanced/adv-fn-closure/Cargo.toml | 1 + advanced/adv-fn-closure/src/main.rs | 82 ++++++++++++++++++++++++++++++---- advanced/hello_macro/Cargo.toml | 7 +++ advanced/hello_macro/src/lib.rs | 3 ++ hello_server/404.html | 19 ++++++++ hello_server/Cargo.lock | 4 ++ hello_server/Cargo.toml | 7 +++ hello_server/hello.html | 18 ++++++++ hello_server/src/bin/main.rs | 44 +++++++++++++++++++ hello_server/src/lib.rs | 88 +++++++++++++++++++++++++++++++++++++ 11 files changed, 272 insertions(+), 8 deletions(-) create mode 100644 advanced/hello_macro/Cargo.toml create mode 100644 advanced/hello_macro/src/lib.rs create mode 100644 hello_server/404.html create mode 100644 hello_server/Cargo.lock create mode 100644 hello_server/Cargo.toml create mode 100644 hello_server/hello.html create mode 100644 hello_server/src/bin/main.rs create mode 100644 hello_server/src/lib.rs diff --git a/advanced/adv-fn-closure/Cargo.lock b/advanced/adv-fn-closure/Cargo.lock index cfa8ec5..360607c 100644 --- a/advanced/adv-fn-closure/Cargo.lock +++ b/advanced/adv-fn-closure/Cargo.lock @@ -1,4 +1,11 @@ [[package]] name = "adv-fn-closure" version = "0.1.0" +dependencies = [ + "hello_macro 0.1.0", +] + +[[package]] +name = "hello_macro" +version = "0.1.0" diff --git a/advanced/adv-fn-closure/Cargo.toml b/advanced/adv-fn-closure/Cargo.toml index 259562e..6cd8dbd 100644 --- a/advanced/adv-fn-closure/Cargo.toml +++ b/advanced/adv-fn-closure/Cargo.toml @@ -5,3 +5,4 @@ authors = ["Adam Carpenter <53hornet@gmail.com>"] edition = "2018" [dependencies] +hello_macro = { path = "../hello_macro" } diff --git a/advanced/adv-fn-closure/src/main.rs b/advanced/adv-fn-closure/src/main.rs index d31bd90..064f300 100644 --- a/advanced/adv-fn-closure/src/main.rs +++ b/advanced/adv-fn-closure/src/main.rs @@ -1,13 +1,79 @@ -fn add_one(x: i32) -> i32 { - x + 1 -} +use hello_macro::HelloMacro; +//use hello_macro_derive::HelloMacro; + +struct Pancakes; -fn do_twice(f: fn(i32) -> i32, arg: i32) -> i32 { - f(arg) + f(arg) +impl HelloMacro for Pancakes { + fn hello_macro() { + println!("pancakes"); + } } fn main() { - let answer = do_twice(add_one, 5); - - println!("{}", answer); + Pancakes::hello_macro(); } + +//fn add_one(x: i32) -> i32 { +// x + 1 +//} +// +//fn do_twice(f: fn(i32) -> i32, arg: i32) -> i32 { +// f(arg) + f(arg) +//} + + +//fn returns_closure() -> Box i32> { +// Box::new(|x| x + 1) +//} +// +// +//enum Status { +// Value(u32), +// Stop, +//} + + +//#[macro_export] +//macro_rules! vec { +// ( $( $x:expr ), * ) => { +// { +// let mut temp_vec = Vec::new(); +// $( +// temp_vec.push($x); +// )* +// temp_vec +// } +// }; +//} + + +//#[some_attribute] +//pub fn some_name(input: TokenStream) -> TokenStream { +//} +// +// +//fn main() { +// let answer = do_twice(add_one, 5); +// +// println!("{}", answer); + + +// let list_of_numbers = vec![1, 2, 3]; +// let list_of_strings: Vec = list_of_numbers +// .iter() +// .map(ToString::to_string) +// .collect(); +// dbg!(list_of_strings); + + +// let list_of_statuses: Vec = +// (0u32..20) +// .map(Status::Value) +// .collect(); + + + //returns_closure(); + + + +//} diff --git a/advanced/hello_macro/Cargo.toml b/advanced/hello_macro/Cargo.toml new file mode 100644 index 0000000..e812230 --- /dev/null +++ b/advanced/hello_macro/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "hello_macro" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/advanced/hello_macro/src/lib.rs b/advanced/hello_macro/src/lib.rs new file mode 100644 index 0000000..e747931 --- /dev/null +++ b/advanced/hello_macro/src/lib.rs @@ -0,0 +1,3 @@ +pub trait HelloMacro { + fn hello_macro(); +} diff --git a/hello_server/404.html b/hello_server/404.html new file mode 100644 index 0000000..b106938 --- /dev/null +++ b/hello_server/404.html @@ -0,0 +1,19 @@ + + + + + + + Hello! + + + +

+ Oops! +

+

+ Sorry, Idk what you're asking for. +

+ + + diff --git a/hello_server/Cargo.lock b/hello_server/Cargo.lock new file mode 100644 index 0000000..738010c --- /dev/null +++ b/hello_server/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "hello_server" +version = "0.1.0" + diff --git a/hello_server/Cargo.toml b/hello_server/Cargo.toml new file mode 100644 index 0000000..39057cc --- /dev/null +++ b/hello_server/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "hello_server" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/hello_server/hello.html b/hello_server/hello.html new file mode 100644 index 0000000..869c8f9 --- /dev/null +++ b/hello_server/hello.html @@ -0,0 +1,18 @@ + + + + + + Hello! + + + +

+ Hello! +

+

+ Hi from Rust +

+ + + diff --git a/hello_server/src/bin/main.rs b/hello_server/src/bin/main.rs new file mode 100644 index 0000000..522777a --- /dev/null +++ b/hello_server/src/bin/main.rs @@ -0,0 +1,44 @@ +use hello_server::ThreadPool; +use std::thread; +use std::time::Duration; +use std::io::prelude::*; +use std::fs; +use std::net::TcpStream; +use std::net::TcpListener; + +fn main() { + let listener = TcpListener::bind("127.0.0.1:7878").unwrap(); + let pool = ThreadPool::new(4).unwrap(); + + for stream in listener.incoming() { + let stream = stream.unwrap(); + + pool.execute(|| { + handle_connection(stream); + }); + } + +} + +fn handle_connection(mut stream: TcpStream) { + let mut buffer = [0; 512]; + stream.read(&mut buffer).unwrap(); + let get = b"GET / HTTP/1.1\r\n"; + let sleep = b"GET /sleep HTTP/1.1\r\n"; + + let (status_line, filename) = if buffer.starts_with(get) { + ("HTTP/1.1 200 OK\r\n\r\n", "hello.html") + } + else if buffer.starts_with(sleep) { + thread::sleep(Duration::from_secs(5)); + ("HTTP/1.1 200 OK\r\n\r\n", "hello.html") + } + else { + ("HTTP/1.1 404 NOT FOUND\r\n\r\n", "404.html") + }; + + let contents = fs::read_to_string(filename).unwrap(); + let response = format!("{}{}", status_line, contents); + stream.write(response.as_bytes()).unwrap(); + stream.flush().unwrap(); +} diff --git a/hello_server/src/lib.rs b/hello_server/src/lib.rs new file mode 100644 index 0000000..c8e6a3e --- /dev/null +++ b/hello_server/src/lib.rs @@ -0,0 +1,88 @@ +use std::sync::Arc; +use std::sync::Mutex; +use std::sync::mpsc; +use std::thread; + +trait FnBox { + fn call_box(self: Box); +} + +impl FnBox for F { + fn call_box(self: Box) { + (*self)() + } +} + +type Job = Box; + +pub struct ThreadPool { + workers: Vec, + sender: mpsc::Sender, +} + +impl ThreadPool { + pub fn new(size: usize) -> Result { + if size <= 0 { + return Err("failed to create pool"); + } + + let (sender, receiver) = mpsc::channel(); + + let receiver = Arc::new(Mutex::new(receiver)); + + let mut workers = Vec::with_capacity(size); + + for id in 0..size { + workers.push(Worker::new(id, Arc::clone(&receiver))?); + } + + Ok(ThreadPool { + workers, + sender, + }) + } + + pub fn spawn(f: F) -> thread::JoinHandle + where + F: FnOnce() -> T + Send + 'static, + T: Send + 'static + { + thread::spawn(f) + } + + pub fn execute(&self, f: F) + where + F: FnOnce() + Send + 'static + { + let job = Box::new(f); + self.sender.send(job).unwrap(); + } + +} + +struct Worker { + id: usize, + thread: thread::JoinHandle<()>, +} + +impl Worker { + pub fn new(id: usize, receiver: Arc>>) + -> Result + { + let thread = thread::spawn(move || { + loop { + let job = receiver + .lock().expect("lock poisoned!") + .recv().unwrap(); + println!("worker {} got job; executing...", id); + + job.call_box(); + } + }); + + Ok(Worker { + id, + thread, + }) + } +} -- cgit v1.2.3 From b560fca37f6571c18b12d6fff4b3e86e549db6be Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Tue, 26 Mar 2019 15:50:24 -0400 Subject: Added graceful termination. Book done for real this time XD --- hello_server/src/bin/main.rs | 4 +++- hello_server/src/lib.rs | 51 ++++++++++++++++++++++++++++++++++---------- 2 files changed, 43 insertions(+), 12 deletions(-) diff --git a/hello_server/src/bin/main.rs b/hello_server/src/bin/main.rs index 522777a..bcf1e46 100644 --- a/hello_server/src/bin/main.rs +++ b/hello_server/src/bin/main.rs @@ -10,7 +10,7 @@ fn main() { let listener = TcpListener::bind("127.0.0.1:7878").unwrap(); let pool = ThreadPool::new(4).unwrap(); - for stream in listener.incoming() { + for stream in listener.incoming().take(2) { let stream = stream.unwrap(); pool.execute(|| { @@ -18,6 +18,8 @@ fn main() { }); } + println!("shutting down..."); + } fn handle_connection(mut stream: TcpStream) { diff --git a/hello_server/src/lib.rs b/hello_server/src/lib.rs index c8e6a3e..cd1f616 100644 --- a/hello_server/src/lib.rs +++ b/hello_server/src/lib.rs @@ -3,6 +3,11 @@ use std::sync::Mutex; use std::sync::mpsc; use std::thread; +enum Message { + NewJob(Job), + Terminate, +} + trait FnBox { fn call_box(self: Box); } @@ -17,7 +22,7 @@ type Job = Box; pub struct ThreadPool { workers: Vec, - sender: mpsc::Sender, + sender: mpsc::Sender, } impl ThreadPool { @@ -55,34 +60,58 @@ impl ThreadPool { F: FnOnce() + Send + 'static { let job = Box::new(f); - self.sender.send(job).unwrap(); + self.sender.send(Message::NewJob(job)).unwrap(); } } +impl Drop for ThreadPool { + fn drop(&mut self) { + for _ in &mut self.workers { + self.sender.send(Message::Terminate).unwrap(); + } + + println!("shutting down all workers..."); + + for worker in &mut self.workers { + println!("shutting down worker {}", worker.id); + + if let Some(thread) = worker.thread.take() { + thread.join().unwrap(); + } + } + } +} + struct Worker { id: usize, - thread: thread::JoinHandle<()>, + thread: Option>, } impl Worker { - pub fn new(id: usize, receiver: Arc>>) + pub fn new(id: usize, receiver: Arc>>) -> Result { let thread = thread::spawn(move || { loop { - let job = receiver - .lock().expect("lock poisoned!") - .recv().unwrap(); - println!("worker {} got job; executing...", id); - - job.call_box(); + let message = receiver.lock().unwrap().recv().unwrap(); + + match message { + Message::NewJob(job) => { + println!("worker {} got job, executing...", id); + job.call_box(); + }, + Message::Terminate => { + println!("worker {} was told to terminate...", id); + break; + }, + } } }); Ok(Worker { id, - thread, + thread: Some(thread), }) } } -- cgit v1.2.3 From 67cdcc2e12118becb823e20a40cc2687f2b8425a Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Wed, 27 Mar 2019 15:32:37 -0400 Subject: Started Rust in Action MEAP. --- .gitignore | 0 add/Cargo.lock | 11 - add/Cargo.toml | 7 - add/add-one/Cargo.toml | 8 - add/add-one/src/lib.rs | 11 - add/adder/Cargo.toml | 9 - add/adder/src/main.rs | 6 - adder/Cargo.lock | 4 - adder/Cargo.toml | 7 - adder/src/lib.rs | 92 - advanced/adv-fn-closure/Cargo.lock | 11 - advanced/adv-fn-closure/Cargo.toml | 8 - advanced/adv-fn-closure/src/main.rs | 79 - advanced/adv-lifetimes/Cargo.lock | 4 - advanced/adv-lifetimes/Cargo.toml | 7 - advanced/adv-lifetimes/src/main.rs | 36 - advanced/adv-traits/Cargo.lock | 4 - advanced/adv-traits/Cargo.toml | 7 - advanced/adv-traits/src/main.rs | 163 - advanced/adv-types/Cargo.lock | 4 - advanced/adv-types/Cargo.toml | 7 - advanced/adv-types/src/main.rs | 41 - advanced/hello_macro/Cargo.toml | 7 - advanced/hello_macro/src/lib.rs | 3 - advanced/unsafe-rust/Cargo.lock | 4 - advanced/unsafe-rust/Cargo.toml | 7 - advanced/unsafe-rust/src/main.rs | 62 - blog/Cargo.lock | 4 - blog/Cargo.toml | 7 - blog/src/lib.rs | 127 - blog/src/main.rs | 36 - collections/Cargo.lock | 4 - collections/Cargo.toml | 7 - collections/src/main.rs | 133 - concurrency/Cargo.lock | 4 - concurrency/Cargo.toml | 7 - concurrency/src/main.rs | 137 - control/Cargo.lock | 4 - control/Cargo.toml | 7 - control/src/main.rs | 7 - crates/Cargo.lock | 4 - crates/Cargo.toml | 7 - crates/src/lib.rs | 33 - crates/src/main.rs | 8 - employees/Cargo.lock | 4 - employees/Cargo.toml | 7 - employees/src/main.rs | 181 - enums/Cargo.lock | 4 - enums/Cargo.toml | 7 - enums/src/main.rs | 12 - enums/src/main1.rs | 48 - errors/Cargo.lock | 4 - errors/Cargo.toml | 7 - errors/src/main.rs | 38 - fibonacci/Cargo.lock | 4 - fibonacci/Cargo.toml | 7 - fibonacci/src/main.rs | 31 - ftoctof/Cargo.lock | 4 - ftoctof/Cargo.toml | 7 - ftoctof/src/main.rs | 43 - functional/Cargo.lock | 4 - functional/Cargo.toml | 7 - functional/src/main.rs | 188 - functions/Cargo.lock | 4 - functions/Cargo.toml | 7 - functions/src/main.rs | 10 - generics/Cargo.lock | 4 - generics/Cargo.toml | 7 - generics/src/main.rs | 68 - guessing-game/Cargo.lock | 80 - guessing-game/Cargo.toml | 10 - guessing-game/src/main.rs | 36 - hello_server/404.html | 19 - hello_server/Cargo.lock | 4 - hello_server/Cargo.toml | 7 - hello_server/hello.html | 18 - hello_server/src/bin/main.rs | 46 - hello_server/src/lib.rs | 117 - hello_world/hello_cargo/Cargo.lock | 4 - hello_world/hello_cargo/Cargo.toml | 7 - hello_world/hello_cargo/src/main.rs | 3 - hello_world/main.exe | Bin 4129619 -> 0 bytes hello_world/main.rs | 4 - horcrux/Cargo.toml | 7 - horcrux/src/main.rs | 3 - lifetimes/Cargo.lock | 4 - lifetimes/Cargo.toml | 7 - lifetimes/src/main.rs | 43 - mathsssss/Cargo.lock | 4 - mathsssss/Cargo.toml | 7 - mathsssss/src/main.rs | 61 - meap/ch1/Cargo.lock | 4 + meap/ch1/Cargo.toml | 7 + meap/ch1/src/main.rs | 28 + meap/ch2/Cargo.lock | 195 + meap/ch2/Cargo.toml | 10 + meap/ch2/src/main.rs | 100 + meap/meap-code/ch1/ch1-animals-specialization.rs | 47 + meap/meap-code/ch1/ch1-animals-tuple-structs.rs | 41 + meap/meap-code/ch1/ch1-animals.rs | 41 + meap/meap-code/ch1/ch1-escape-html.rs | 22 + meap/meap-code/ch1/ch1-hashmap-hashset.rs | 33 + meap/meap-code/ch1/ch1-hello2.rs | 16 + meap/meap-code/ch1/ch1-save-user-data.rs | 32 + meap/meap-code/ch1/ch1-time-api/Cargo.toml | 16 + meap/meap-code/ch1/ch1-time-api/src/main.rs | 36 + meap/meap-code/ch1/ch1-word-counts.rs | 16 + meap/meap-code/ch10/Vagrantfile | 29 + meap/meap-code/ch10/ch10-basic-handler/Cargo.toml | 9 + meap/meap-code/ch10/ch10-basic-handler/Dockerfile | 36 + meap/meap-code/ch10/ch10-basic-handler/Makefile | 2 + meap/meap-code/ch10/ch10-basic-handler/src/main.rs | 58 + meap/meap-code/ch10/ch10-callstack/Cargo.toml | 6 + meap/meap-code/ch10/ch10-callstack/src/main.rs | 21 + meap/meap-code/ch10/ch10-handle/Cargo.toml | 7 + meap/meap-code/ch10/ch10-handle/src/main.rs | 48 + meap/meap-code/ch10/ch10-handler/Cargo.toml | 7 + meap/meap-code/ch10/ch10-handler/src/main.rs | 58 + meap/meap-code/ch10/ch10-ignore/Cargo.toml | 7 + meap/meap-code/ch10/ch10-ignore/src/main.rs | 18 + meap/meap-code/ch10/ch10-sixty/Cargo.toml | 6 + meap/meap-code/ch10/ch10-sixty/src/main.rs | 15 + meap/meap-code/ch10/ch10-sjlj/Cargo.toml | 7 + meap/meap-code/ch10/ch10-sjlj/Dockerfile | 37 + meap/meap-code/ch10/ch10-sjlj/Makefile | 2 + meap/meap-code/ch10/ch10-sjlj/src/main.rs | 105 + meap/meap-code/ch2/ch2-3arrays.rs | 22 + meap/meap-code/ch2/ch2-add-with-lifetimes.rs | 8 + meap/meap-code/ch2/ch2-add-with-lifetimes_.rs | 8 + meap/meap-code/ch2/ch2-bufreader-lines.rs | 13 + meap/meap-code/ch2/ch2-define-type.rs | 22 + meap/meap-code/ch2/ch2-first-steps.rs | 11 + meap/meap-code/ch2/ch2-generic-add.rs | 16 + meap/meap-code/ch2/ch2-intro-to-numbers.rs | 8 + meap/meap-code/ch2/ch2-intro.rs | 18 + meap/meap-code/ch2/ch2-introducing-vec.rs | 52 + meap/meap-code/ch2/ch2-match-needles.rs | 17 + meap/meap-code/ch2/ch2-needle-in-haystack.rs | 15 + meap/meap-code/ch2/ch2-non-base2.rs | 10 + meap/meap-code/ch2/ch2-read-file-iter-lines.rs | 15 + meap/meap-code/ch2/ch2-read-file.rs | 21 + meap/meap-code/ch2/ch2-sensor-emulator.rs | 36 + meap/meap-code/ch2/ch2-simple-with-enumerate.rs | 13 + meap/meap-code/ch2/ch2-simple-with-linenums | Bin 0 -> 3714488 bytes meap/meap-code/ch2/ch2-simple-with-linenums.rs | 14 + meap/meap-code/ch2/ch2-sparse-matrix.rs | 20 + meap/meap-code/ch2/ch2-str-simple-pattern.rs | 12 + meap/meap-code/ch3/ch3-adding-pub-to-file.rs | 28 + meap/meap-code/ch3/ch3-anystring-macro.rs | 10 + meap/meap-code/ch3/ch3-defining-files-neatly.rs | 29 + meap/meap-code/ch3/ch3-defining-files.rs | 18 + meap/meap-code/ch3/ch3-error-1.rs | 30 + meap/meap-code/ch3/ch3-file-doced.rs | 38 + meap/meap-code/ch3/ch3-file-states.rs | 59 + meap/meap-code/ch3/ch3-files-with-modes.rs | 75 + meap/meap-code/ch3/ch3-implementing-display.rs | 49 + meap/meap-code/ch3/ch3-mock-file.rs | 18 + meap/meap-code/ch3/ch3-newtype-pattern.rs | 10 + meap/meap-code/ch3/ch3-not-quite-file-1.rs | 23 + meap/meap-code/ch3/ch3-not-quite-file-2.rs | 42 + meap/meap-code/ch3/ch3-not-quite-file-3.rs | 55 + meap/meap-code/ch3/ch3-not-quite-file-4.rs | 42 + meap/meap-code/ch3/ch3-parse-log.rs | 35 + meap/meap-code/ch3/ch3-public-file.rs | 33 + meap/meap-code/ch3/ch3-return-result.rs | 68 + meap/meap-code/ch3/ch3-skeleton-read-trait.rs | 21 + meap/meap-code/ch3/ch3-string-macro.rs | 10 + meap/meap-code/ch3/filebasics/Cargo.toml | 6 + meap/meap-code/ch3/filebasics/src/main.rs | 3 + meap/meap-code/ch3/fileresult/Cargo.toml | 7 + meap/meap-code/ch3/fileresult/src/main.rs | 65 + meap/meap-code/ch3/globalerror/Cargo.toml | 7 + meap/meap-code/ch3/globalerror/src/main.rs | 30 + meap/meap-code/ch4/ch4-check-sats-1.rs | 27 + meap/meap-code/ch4/ch4-check-sats-3.rs | 33 + .../ch4/ch4-check-sats-clone-and-copy-traits.rs | 24 + .../ch4/ch4-check-sats-with-copy-trait.rs | 46 + meap/meap-code/ch4/ch4-rc-groundstation.rs | 10 + meap/meap-code/ch4/ch4-rc-refcell-groundstation.rs | 31 + meap/meap-code/ch4/ch4-sat-mailbox.rs | 42 + meap/meap-code/ch4/ch4-short-lived-strategy.rs | 82 + meap/meap-code/ch5/ch5-cpu1/Cargo.lock | 4 + meap/meap-code/ch5/ch5-cpu1/Cargo.toml | 6 + meap/meap-code/ch5/ch5-cpu1/src/main.rs | 60 + meap/meap-code/ch5/ch5-cpu2/Cargo.lock | 4 + meap/meap-code/ch5/ch5-cpu2/Cargo.toml | 6 + meap/meap-code/ch5/ch5-cpu2/src/main.rs | 60 + meap/meap-code/ch5/ch5-cpu3/Cargo.lock | 4 + meap/meap-code/ch5/ch5-cpu3/Cargo.toml | 6 + meap/meap-code/ch5/ch5-cpu3/src/main.rs | 88 + meap/meap-code/ch5/ch5-f32-as-u32.rs | 8 + meap/meap-code/ch5/ch5-fixed-width.rs | 34 + meap/meap-code/ch5/ch5-genfib/Cargo.lock | 102 + meap/meap-code/ch5/ch5-genfib/Cargo.toml | 7 + meap/meap-code/ch5/ch5-genfib/src/main.rs | 17 + meap/meap-code/ch5/ch5-impossible-add.rs | 5 + meap/meap-code/ch5/ch5-message-store/Cargo.lock | 4 + meap/meap-code/ch5/ch5-message-store/Cargo.toml | 6 + meap/meap-code/ch5/ch5-message-store/src/main.rs | 93 + meap/meap-code/ch5/ch5-q/Cargo.lock | 127 + meap/meap-code/ch5/ch5-q/Cargo.toml | 7 + meap/meap-code/ch5/ch5-q/src/lib.rs | 76 + .../ch5/ch5-sat-messaging/msg-with-refs/Cargo.lock | 4 + .../ch5/ch5-sat-messaging/msg-with-refs/Cargo.toml | 6 + .../ch5-sat-messaging/msg-with-refs/src/main.rs | 51 + meap/meap-code/ch5/ch5-to-oblivion.rs | 11 + meap/meap-code/ch5/ch5-u8-to-mock-rand.rs | 17 + meap/meap-code/ch5/ch5-visualising-f32.rs | 44 + meap/meap-code/ch6/ch6-gentext/Cargo.lock | 4 + meap/meap-code/ch6/ch6-gentext/Cargo.toml | 6 + meap/meap-code/ch6/ch6-gentext/src/main.rs | 41 + .../ch6/ch6-heap-vs-stack-intro/Cargo.lock | 4 + .../ch6/ch6-heap-vs-stack-intro/Cargo.toml | 6 + .../ch6/ch6-heap-vs-stack-intro/src/main.rs | 6 + meap/meap-code/ch6/ch6-heap-vs-stack/Cargo.lock | 46 + meap/meap-code/ch6/ch6-heap-vs-stack/Cargo.toml | 7 + meap/meap-code/ch6/ch6-heap-vs-stack/src/main.rs | 16 + meap/meap-code/ch6/ch6-meminfo-win/Cargo.lock | 31 + meap/meap-code/ch6/ch6-meminfo-win/Cargo.toml | 9 + meap/meap-code/ch6/ch6-meminfo-win/src/main.rs | 59 + meap/meap-code/ch6/ch6-memscan-1/Cargo.lock | 4 + meap/meap-code/ch6/ch6-memscan-1/Cargo.toml | 6 + meap/meap-code/ch6/ch6-memscan-1/src/main.rs | 14 + meap/meap-code/ch6/ch6-memscan-2/Cargo.lock | 4 + meap/meap-code/ch6/ch6-memscan-2/Cargo.toml | 6 + meap/meap-code/ch6/ch6-memscan-2/src/main.rs | 14 + meap/meap-code/ch6/ch6-memscan-3/Cargo.lock | 4 + meap/meap-code/ch6/ch6-memscan-3/Cargo.toml | 6 + meap/meap-code/ch6/ch6-memscan-3/src/main.rs | 21 + meap/meap-code/ch6/ch6-particles/Cargo.lock | 1239 + meap/meap-code/ch6/ch6-particles/Cargo.toml | 16 + meap/meap-code/ch6/ch6-particles/Dockerfile | 7 + meap/meap-code/ch6/ch6-particles/Vagrantfile | 17 + meap/meap-code/ch6/ch6-particles/src/main.rs | 170 + .../allocation-times-by-allocation-size.png | Bin 0 -> 110328 bytes .../plot-allocation-times-by-allocation-size.plot | 34 + meap/meap-code/ch6/ch6-tracing-output/trace.tsv | 644480 ++++++++++++++++++ meap/meap-code/ch9/Vagrantfile | 29 + meap/meap-code/ch9/ch9-clock0/Cargo.toml | 10 + meap/meap-code/ch9/ch9-clock0/src/main.rs | 8 + meap/meap-code/ch9/ch9-clock1/Cargo.toml | 11 + meap/meap-code/ch9/ch9-clock1/src/main.rs | 53 + meap/meap-code/ch9/ch9-clock2/Cargo.toml | 19 + meap/meap-code/ch9/ch9-clock2/src/main.rs | 132 + meap/meap-code/ch9/ch9-clock3/Cargo.toml | 19 + meap/meap-code/ch9/ch9-clock3/Dockerfile | 10 + meap/meap-code/ch9/ch9-clock3/src/main.rs | 333 + meap/meap-code/ch9/ch9-sao-paulo/Cargo.toml | 8 + meap/meap-code/ch9/ch9-sao-paulo/src/main.rs | 18 + minigrep/Cargo.lock | 4 - minigrep/Cargo.toml | 8 - minigrep/src/lib.rs | 96 - minigrep/src/main.rs | 17 - oop/Cargo.lock | 4 - oop/Cargo.toml | 7 - oop/src/lib.rs | 41 - oop/src/main.rs | 56 - ownership/Cargo.lock | 4 - ownership/Cargo.toml | 7 - ownership/src/main.rs | 51 - packages/my-project/Cargo.lock | 4 - packages/my-project/Cargo.toml | 7 - packages/my-project/src/main.rs | 82 - packages/my-project/src/sound.rs | 1 - packages/my-project/src/sound/instrument.rs | 3 - patterns/Cargo.lock | 4 - patterns/Cargo.toml | 7 - patterns/src/main.rs | 316 - piglatin/Cargo.lock | 4 - piglatin/Cargo.toml | 7 - piglatin/src/main.rs | 38 - readme.md | 4 - rust-book/add/Cargo.lock | 11 + rust-book/add/Cargo.toml | 7 + rust-book/add/add-one/Cargo.toml | 8 + rust-book/add/add-one/src/lib.rs | 11 + rust-book/add/adder/Cargo.toml | 9 + rust-book/add/adder/src/main.rs | 6 + rust-book/adder/Cargo.lock | 4 + rust-book/adder/Cargo.toml | 7 + rust-book/adder/src/lib.rs | 92 + rust-book/advanced/adv-fn-closure/Cargo.lock | 11 + rust-book/advanced/adv-fn-closure/Cargo.toml | 8 + rust-book/advanced/adv-fn-closure/src/main.rs | 79 + rust-book/advanced/adv-lifetimes/Cargo.lock | 4 + rust-book/advanced/adv-lifetimes/Cargo.toml | 7 + rust-book/advanced/adv-lifetimes/src/main.rs | 36 + rust-book/advanced/adv-traits/Cargo.lock | 4 + rust-book/advanced/adv-traits/Cargo.toml | 7 + rust-book/advanced/adv-traits/src/main.rs | 163 + rust-book/advanced/adv-types/Cargo.lock | 4 + rust-book/advanced/adv-types/Cargo.toml | 7 + rust-book/advanced/adv-types/src/main.rs | 41 + rust-book/advanced/hello_macro/Cargo.toml | 7 + rust-book/advanced/hello_macro/src/lib.rs | 3 + rust-book/advanced/unsafe-rust/Cargo.lock | 4 + rust-book/advanced/unsafe-rust/Cargo.toml | 7 + rust-book/advanced/unsafe-rust/src/main.rs | 62 + rust-book/blog/Cargo.lock | 4 + rust-book/blog/Cargo.toml | 7 + rust-book/blog/src/lib.rs | 127 + rust-book/blog/src/main.rs | 36 + rust-book/collections/Cargo.lock | 4 + rust-book/collections/Cargo.toml | 7 + rust-book/collections/src/main.rs | 133 + rust-book/concurrency/Cargo.lock | 4 + rust-book/concurrency/Cargo.toml | 7 + rust-book/concurrency/src/main.rs | 137 + rust-book/control/Cargo.lock | 4 + rust-book/control/Cargo.toml | 7 + rust-book/control/src/main.rs | 7 + rust-book/crates/Cargo.lock | 4 + rust-book/crates/Cargo.toml | 7 + rust-book/crates/src/lib.rs | 33 + rust-book/crates/src/main.rs | 8 + rust-book/employees/Cargo.lock | 4 + rust-book/employees/Cargo.toml | 7 + rust-book/employees/src/main.rs | 181 + rust-book/enums/Cargo.lock | 4 + rust-book/enums/Cargo.toml | 7 + rust-book/enums/src/main.rs | 12 + rust-book/enums/src/main1.rs | 48 + rust-book/errors/Cargo.lock | 4 + rust-book/errors/Cargo.toml | 7 + rust-book/errors/src/main.rs | 38 + rust-book/fibonacci/Cargo.lock | 4 + rust-book/fibonacci/Cargo.toml | 7 + rust-book/fibonacci/src/main.rs | 31 + rust-book/ftoctof/Cargo.lock | 4 + rust-book/ftoctof/Cargo.toml | 7 + rust-book/ftoctof/src/main.rs | 43 + rust-book/functional/Cargo.lock | 4 + rust-book/functional/Cargo.toml | 7 + rust-book/functional/src/main.rs | 188 + rust-book/functions/Cargo.lock | 4 + rust-book/functions/Cargo.toml | 7 + rust-book/functions/src/main.rs | 10 + rust-book/generics/Cargo.lock | 4 + rust-book/generics/Cargo.toml | 7 + rust-book/generics/src/main.rs | 68 + rust-book/guessing-game/Cargo.lock | 80 + rust-book/guessing-game/Cargo.toml | 10 + rust-book/guessing-game/src/main.rs | 36 + rust-book/hello_server/404.html | 19 + rust-book/hello_server/Cargo.lock | 4 + rust-book/hello_server/Cargo.toml | 7 + rust-book/hello_server/hello.html | 18 + rust-book/hello_server/src/bin/main.rs | 46 + rust-book/hello_server/src/lib.rs | 117 + rust-book/hello_world/hello_cargo/Cargo.lock | 4 + rust-book/hello_world/hello_cargo/Cargo.toml | 7 + rust-book/hello_world/hello_cargo/src/main.rs | 3 + rust-book/hello_world/main.exe | Bin 0 -> 4129619 bytes rust-book/hello_world/main.rs | 4 + rust-book/horcrux/Cargo.toml | 7 + rust-book/horcrux/src/main.rs | 3 + rust-book/lifetimes/Cargo.lock | 4 + rust-book/lifetimes/Cargo.toml | 7 + rust-book/lifetimes/src/main.rs | 43 + rust-book/mathsssss/Cargo.lock | 4 + rust-book/mathsssss/Cargo.toml | 7 + rust-book/mathsssss/src/main.rs | 61 + rust-book/minigrep/Cargo.lock | 4 + rust-book/minigrep/Cargo.toml | 8 + rust-book/minigrep/src/lib.rs | 96 + rust-book/minigrep/src/main.rs | 17 + rust-book/oop/Cargo.lock | 4 + rust-book/oop/Cargo.toml | 7 + rust-book/oop/src/lib.rs | 41 + rust-book/oop/src/main.rs | 56 + rust-book/ownership/Cargo.lock | 4 + rust-book/ownership/Cargo.toml | 7 + rust-book/ownership/src/main.rs | 51 + rust-book/packages/my-project/Cargo.lock | 4 + rust-book/packages/my-project/Cargo.toml | 7 + rust-book/packages/my-project/src/main.rs | 82 + rust-book/packages/my-project/src/sound.rs | 1 + .../packages/my-project/src/sound/instrument.rs | 3 + rust-book/patterns/Cargo.lock | 4 + rust-book/patterns/Cargo.toml | 7 + rust-book/patterns/src/main.rs | 316 + rust-book/piglatin/Cargo.lock | 4 + rust-book/piglatin/Cargo.toml | 7 + rust-book/piglatin/src/main.rs | 38 + rust-book/smart-pointers/Cargo.lock | 4 + rust-book/smart-pointers/Cargo.toml | 7 + rust-book/smart-pointers/src/main.rs | 234 + rust-book/structs/Cargo.lock | 4 + rust-book/structs/Cargo.toml | 7 + rust-book/structs/src/main.rs | 32 + rust-book/structs/src/main.rs.bak | 36 + rust-book/testing/Cargo.lock | 4 + rust-book/testing/Cargo.toml | 7 + rust-book/testing/src/lib.rs | 32 + rust-book/testing/tests/common/mod.rs | 3 + rust-book/testing/tests/integration_test.rs | 9 + rust-book/traits/Cargo.lock | 4 + rust-book/traits/Cargo.toml | 7 + rust-book/traits/src/main.rs | 114 + rust-book/variables/Cargo.lock | 4 + rust-book/variables/Cargo.toml | 7 + rust-book/variables/src/main.rs | 6 + rust-book/xmas/Cargo.lock | 4 + rust-book/xmas/Cargo.toml | 7 + rust-book/xmas/src/main.rs | 42 + smart-pointers/Cargo.lock | 4 - smart-pointers/Cargo.toml | 7 - smart-pointers/src/main.rs | 234 - structs/Cargo.lock | 4 - structs/Cargo.toml | 7 - structs/src/main.rs | 32 - structs/src/main.rs.bak | 36 - testing/Cargo.lock | 4 - testing/Cargo.toml | 7 - testing/src/lib.rs | 32 - testing/tests/common/mod.rs | 3 - testing/tests/integration_test.rs | 9 - traits/Cargo.lock | 4 - traits/Cargo.toml | 7 - traits/src/main.rs | 114 - variables/Cargo.lock | 4 - variables/Cargo.toml | 7 - variables/src/main.rs | 6 - xmas/Cargo.lock | 4 - xmas/Cargo.toml | 7 - xmas/out.txt | 114 - xmas/src/main.rs | 42 - 427 files changed, 654048 insertions(+), 3803 deletions(-) mode change 100644 => 100755 .gitignore delete mode 100644 add/Cargo.lock delete mode 100644 add/Cargo.toml delete mode 100644 add/add-one/Cargo.toml delete mode 100644 add/add-one/src/lib.rs delete mode 100644 add/adder/Cargo.toml delete mode 100644 add/adder/src/main.rs delete mode 100644 adder/Cargo.lock delete mode 100644 adder/Cargo.toml delete mode 100644 adder/src/lib.rs delete mode 100644 advanced/adv-fn-closure/Cargo.lock delete mode 100644 advanced/adv-fn-closure/Cargo.toml delete mode 100644 advanced/adv-fn-closure/src/main.rs delete mode 100644 advanced/adv-lifetimes/Cargo.lock delete mode 100644 advanced/adv-lifetimes/Cargo.toml delete mode 100644 advanced/adv-lifetimes/src/main.rs delete mode 100644 advanced/adv-traits/Cargo.lock delete mode 100644 advanced/adv-traits/Cargo.toml delete mode 100644 advanced/adv-traits/src/main.rs delete mode 100644 advanced/adv-types/Cargo.lock delete mode 100644 advanced/adv-types/Cargo.toml delete mode 100644 advanced/adv-types/src/main.rs delete mode 100644 advanced/hello_macro/Cargo.toml delete mode 100644 advanced/hello_macro/src/lib.rs delete mode 100644 advanced/unsafe-rust/Cargo.lock delete mode 100644 advanced/unsafe-rust/Cargo.toml delete mode 100644 advanced/unsafe-rust/src/main.rs delete mode 100644 blog/Cargo.lock delete mode 100644 blog/Cargo.toml delete mode 100644 blog/src/lib.rs delete mode 100644 blog/src/main.rs delete mode 100755 collections/Cargo.lock delete mode 100755 collections/Cargo.toml delete mode 100755 collections/src/main.rs delete mode 100644 concurrency/Cargo.lock delete mode 100644 concurrency/Cargo.toml delete mode 100644 concurrency/src/main.rs delete mode 100755 control/Cargo.lock delete mode 100755 control/Cargo.toml delete mode 100755 control/src/main.rs delete mode 100644 crates/Cargo.lock delete mode 100644 crates/Cargo.toml delete mode 100644 crates/src/lib.rs delete mode 100644 crates/src/main.rs delete mode 100644 employees/Cargo.lock delete mode 100644 employees/Cargo.toml delete mode 100644 employees/src/main.rs delete mode 100755 enums/Cargo.lock delete mode 100755 enums/Cargo.toml delete mode 100755 enums/src/main.rs delete mode 100755 enums/src/main1.rs delete mode 100644 errors/Cargo.lock delete mode 100644 errors/Cargo.toml delete mode 100644 errors/src/main.rs delete mode 100644 fibonacci/Cargo.lock delete mode 100644 fibonacci/Cargo.toml delete mode 100644 fibonacci/src/main.rs delete mode 100644 ftoctof/Cargo.lock delete mode 100644 ftoctof/Cargo.toml delete mode 100644 ftoctof/src/main.rs delete mode 100644 functional/Cargo.lock delete mode 100644 functional/Cargo.toml delete mode 100644 functional/src/main.rs delete mode 100755 functions/Cargo.lock delete mode 100755 functions/Cargo.toml delete mode 100755 functions/src/main.rs delete mode 100644 generics/Cargo.lock delete mode 100644 generics/Cargo.toml delete mode 100644 generics/src/main.rs delete mode 100755 guessing-game/Cargo.lock delete mode 100755 guessing-game/Cargo.toml delete mode 100755 guessing-game/src/main.rs delete mode 100644 hello_server/404.html delete mode 100644 hello_server/Cargo.lock delete mode 100644 hello_server/Cargo.toml delete mode 100644 hello_server/hello.html delete mode 100644 hello_server/src/bin/main.rs delete mode 100644 hello_server/src/lib.rs delete mode 100755 hello_world/hello_cargo/Cargo.lock delete mode 100755 hello_world/hello_cargo/Cargo.toml delete mode 100755 hello_world/hello_cargo/src/main.rs delete mode 100755 hello_world/main.exe delete mode 100755 hello_world/main.rs delete mode 100755 horcrux/Cargo.toml delete mode 100755 horcrux/src/main.rs delete mode 100644 lifetimes/Cargo.lock delete mode 100644 lifetimes/Cargo.toml delete mode 100644 lifetimes/src/main.rs delete mode 100644 mathsssss/Cargo.lock delete mode 100644 mathsssss/Cargo.toml delete mode 100644 mathsssss/src/main.rs create mode 100644 meap/ch1/Cargo.lock create mode 100644 meap/ch1/Cargo.toml create mode 100644 meap/ch1/src/main.rs create mode 100644 meap/ch2/Cargo.lock create mode 100644 meap/ch2/Cargo.toml create mode 100644 meap/ch2/src/main.rs create mode 100644 meap/meap-code/ch1/ch1-animals-specialization.rs create mode 100644 meap/meap-code/ch1/ch1-animals-tuple-structs.rs create mode 100644 meap/meap-code/ch1/ch1-animals.rs create mode 100644 meap/meap-code/ch1/ch1-escape-html.rs create mode 100644 meap/meap-code/ch1/ch1-hashmap-hashset.rs create mode 100644 meap/meap-code/ch1/ch1-hello2.rs create mode 100644 meap/meap-code/ch1/ch1-save-user-data.rs create mode 100644 meap/meap-code/ch1/ch1-time-api/Cargo.toml create mode 100644 meap/meap-code/ch1/ch1-time-api/src/main.rs create mode 100644 meap/meap-code/ch1/ch1-word-counts.rs create mode 100644 meap/meap-code/ch10/Vagrantfile create mode 100644 meap/meap-code/ch10/ch10-basic-handler/Cargo.toml create mode 100644 meap/meap-code/ch10/ch10-basic-handler/Dockerfile create mode 100644 meap/meap-code/ch10/ch10-basic-handler/Makefile create mode 100644 meap/meap-code/ch10/ch10-basic-handler/src/main.rs create mode 100644 meap/meap-code/ch10/ch10-callstack/Cargo.toml create mode 100644 meap/meap-code/ch10/ch10-callstack/src/main.rs create mode 100644 meap/meap-code/ch10/ch10-handle/Cargo.toml create mode 100644 meap/meap-code/ch10/ch10-handle/src/main.rs create mode 100644 meap/meap-code/ch10/ch10-handler/Cargo.toml create mode 100644 meap/meap-code/ch10/ch10-handler/src/main.rs create mode 100644 meap/meap-code/ch10/ch10-ignore/Cargo.toml create mode 100644 meap/meap-code/ch10/ch10-ignore/src/main.rs create mode 100644 meap/meap-code/ch10/ch10-sixty/Cargo.toml create mode 100644 meap/meap-code/ch10/ch10-sixty/src/main.rs create mode 100644 meap/meap-code/ch10/ch10-sjlj/Cargo.toml create mode 100644 meap/meap-code/ch10/ch10-sjlj/Dockerfile create mode 100644 meap/meap-code/ch10/ch10-sjlj/Makefile create mode 100644 meap/meap-code/ch10/ch10-sjlj/src/main.rs create mode 100644 meap/meap-code/ch2/ch2-3arrays.rs create mode 100644 meap/meap-code/ch2/ch2-add-with-lifetimes.rs create mode 100644 meap/meap-code/ch2/ch2-add-with-lifetimes_.rs create mode 100644 meap/meap-code/ch2/ch2-bufreader-lines.rs create mode 100644 meap/meap-code/ch2/ch2-define-type.rs create mode 100644 meap/meap-code/ch2/ch2-first-steps.rs create mode 100644 meap/meap-code/ch2/ch2-generic-add.rs create mode 100644 meap/meap-code/ch2/ch2-intro-to-numbers.rs create mode 100644 meap/meap-code/ch2/ch2-intro.rs create mode 100644 meap/meap-code/ch2/ch2-introducing-vec.rs create mode 100644 meap/meap-code/ch2/ch2-match-needles.rs create mode 100644 meap/meap-code/ch2/ch2-needle-in-haystack.rs create mode 100644 meap/meap-code/ch2/ch2-non-base2.rs create mode 100644 meap/meap-code/ch2/ch2-read-file-iter-lines.rs create mode 100644 meap/meap-code/ch2/ch2-read-file.rs create mode 100644 meap/meap-code/ch2/ch2-sensor-emulator.rs create mode 100644 meap/meap-code/ch2/ch2-simple-with-enumerate.rs create mode 100644 meap/meap-code/ch2/ch2-simple-with-linenums create mode 100644 meap/meap-code/ch2/ch2-simple-with-linenums.rs create mode 100644 meap/meap-code/ch2/ch2-sparse-matrix.rs create mode 100644 meap/meap-code/ch2/ch2-str-simple-pattern.rs create mode 100644 meap/meap-code/ch3/ch3-adding-pub-to-file.rs create mode 100644 meap/meap-code/ch3/ch3-anystring-macro.rs create mode 100644 meap/meap-code/ch3/ch3-defining-files-neatly.rs create mode 100644 meap/meap-code/ch3/ch3-defining-files.rs create mode 100644 meap/meap-code/ch3/ch3-error-1.rs create mode 100644 meap/meap-code/ch3/ch3-file-doced.rs create mode 100644 meap/meap-code/ch3/ch3-file-states.rs create mode 100644 meap/meap-code/ch3/ch3-files-with-modes.rs create mode 100644 meap/meap-code/ch3/ch3-implementing-display.rs create mode 100644 meap/meap-code/ch3/ch3-mock-file.rs create mode 100644 meap/meap-code/ch3/ch3-newtype-pattern.rs create mode 100644 meap/meap-code/ch3/ch3-not-quite-file-1.rs create mode 100644 meap/meap-code/ch3/ch3-not-quite-file-2.rs create mode 100644 meap/meap-code/ch3/ch3-not-quite-file-3.rs create mode 100644 meap/meap-code/ch3/ch3-not-quite-file-4.rs create mode 100644 meap/meap-code/ch3/ch3-parse-log.rs create mode 100644 meap/meap-code/ch3/ch3-public-file.rs create mode 100644 meap/meap-code/ch3/ch3-return-result.rs create mode 100644 meap/meap-code/ch3/ch3-skeleton-read-trait.rs create mode 100644 meap/meap-code/ch3/ch3-string-macro.rs create mode 100644 meap/meap-code/ch3/filebasics/Cargo.toml create mode 100644 meap/meap-code/ch3/filebasics/src/main.rs create mode 100644 meap/meap-code/ch3/fileresult/Cargo.toml create mode 100644 meap/meap-code/ch3/fileresult/src/main.rs create mode 100644 meap/meap-code/ch3/globalerror/Cargo.toml create mode 100644 meap/meap-code/ch3/globalerror/src/main.rs create mode 100644 meap/meap-code/ch4/ch4-check-sats-1.rs create mode 100644 meap/meap-code/ch4/ch4-check-sats-3.rs create mode 100644 meap/meap-code/ch4/ch4-check-sats-clone-and-copy-traits.rs create mode 100644 meap/meap-code/ch4/ch4-check-sats-with-copy-trait.rs create mode 100644 meap/meap-code/ch4/ch4-rc-groundstation.rs create mode 100644 meap/meap-code/ch4/ch4-rc-refcell-groundstation.rs create mode 100644 meap/meap-code/ch4/ch4-sat-mailbox.rs create mode 100644 meap/meap-code/ch4/ch4-short-lived-strategy.rs create mode 100644 meap/meap-code/ch5/ch5-cpu1/Cargo.lock create mode 100644 meap/meap-code/ch5/ch5-cpu1/Cargo.toml create mode 100644 meap/meap-code/ch5/ch5-cpu1/src/main.rs create mode 100644 meap/meap-code/ch5/ch5-cpu2/Cargo.lock create mode 100644 meap/meap-code/ch5/ch5-cpu2/Cargo.toml create mode 100644 meap/meap-code/ch5/ch5-cpu2/src/main.rs create mode 100644 meap/meap-code/ch5/ch5-cpu3/Cargo.lock create mode 100644 meap/meap-code/ch5/ch5-cpu3/Cargo.toml create mode 100644 meap/meap-code/ch5/ch5-cpu3/src/main.rs create mode 100644 meap/meap-code/ch5/ch5-f32-as-u32.rs create mode 100644 meap/meap-code/ch5/ch5-fixed-width.rs create mode 100644 meap/meap-code/ch5/ch5-genfib/Cargo.lock create mode 100644 meap/meap-code/ch5/ch5-genfib/Cargo.toml create mode 100644 meap/meap-code/ch5/ch5-genfib/src/main.rs create mode 100644 meap/meap-code/ch5/ch5-impossible-add.rs create mode 100644 meap/meap-code/ch5/ch5-message-store/Cargo.lock create mode 100644 meap/meap-code/ch5/ch5-message-store/Cargo.toml create mode 100644 meap/meap-code/ch5/ch5-message-store/src/main.rs create mode 100644 meap/meap-code/ch5/ch5-q/Cargo.lock create mode 100644 meap/meap-code/ch5/ch5-q/Cargo.toml create mode 100644 meap/meap-code/ch5/ch5-q/src/lib.rs create mode 100644 meap/meap-code/ch5/ch5-sat-messaging/msg-with-refs/Cargo.lock create mode 100644 meap/meap-code/ch5/ch5-sat-messaging/msg-with-refs/Cargo.toml create mode 100644 meap/meap-code/ch5/ch5-sat-messaging/msg-with-refs/src/main.rs create mode 100644 meap/meap-code/ch5/ch5-to-oblivion.rs create mode 100644 meap/meap-code/ch5/ch5-u8-to-mock-rand.rs create mode 100644 meap/meap-code/ch5/ch5-visualising-f32.rs create mode 100644 meap/meap-code/ch6/ch6-gentext/Cargo.lock create mode 100644 meap/meap-code/ch6/ch6-gentext/Cargo.toml create mode 100644 meap/meap-code/ch6/ch6-gentext/src/main.rs create mode 100644 meap/meap-code/ch6/ch6-heap-vs-stack-intro/Cargo.lock create mode 100644 meap/meap-code/ch6/ch6-heap-vs-stack-intro/Cargo.toml create mode 100644 meap/meap-code/ch6/ch6-heap-vs-stack-intro/src/main.rs create mode 100644 meap/meap-code/ch6/ch6-heap-vs-stack/Cargo.lock create mode 100644 meap/meap-code/ch6/ch6-heap-vs-stack/Cargo.toml create mode 100644 meap/meap-code/ch6/ch6-heap-vs-stack/src/main.rs create mode 100644 meap/meap-code/ch6/ch6-meminfo-win/Cargo.lock create mode 100644 meap/meap-code/ch6/ch6-meminfo-win/Cargo.toml create mode 100644 meap/meap-code/ch6/ch6-meminfo-win/src/main.rs create mode 100644 meap/meap-code/ch6/ch6-memscan-1/Cargo.lock create mode 100644 meap/meap-code/ch6/ch6-memscan-1/Cargo.toml create mode 100644 meap/meap-code/ch6/ch6-memscan-1/src/main.rs create mode 100644 meap/meap-code/ch6/ch6-memscan-2/Cargo.lock create mode 100644 meap/meap-code/ch6/ch6-memscan-2/Cargo.toml create mode 100644 meap/meap-code/ch6/ch6-memscan-2/src/main.rs create mode 100644 meap/meap-code/ch6/ch6-memscan-3/Cargo.lock create mode 100644 meap/meap-code/ch6/ch6-memscan-3/Cargo.toml create mode 100644 meap/meap-code/ch6/ch6-memscan-3/src/main.rs create mode 100644 meap/meap-code/ch6/ch6-particles/Cargo.lock create mode 100644 meap/meap-code/ch6/ch6-particles/Cargo.toml create mode 100644 meap/meap-code/ch6/ch6-particles/Dockerfile create mode 100644 meap/meap-code/ch6/ch6-particles/Vagrantfile create mode 100644 meap/meap-code/ch6/ch6-particles/src/main.rs create mode 100644 meap/meap-code/ch6/ch6-tracing-output/allocation-times-by-allocation-size.png create mode 100644 meap/meap-code/ch6/ch6-tracing-output/plot-allocation-times-by-allocation-size.plot create mode 100644 meap/meap-code/ch6/ch6-tracing-output/trace.tsv create mode 100644 meap/meap-code/ch9/Vagrantfile create mode 100644 meap/meap-code/ch9/ch9-clock0/Cargo.toml create mode 100644 meap/meap-code/ch9/ch9-clock0/src/main.rs create mode 100644 meap/meap-code/ch9/ch9-clock1/Cargo.toml create mode 100644 meap/meap-code/ch9/ch9-clock1/src/main.rs create mode 100644 meap/meap-code/ch9/ch9-clock2/Cargo.toml create mode 100644 meap/meap-code/ch9/ch9-clock2/src/main.rs create mode 100644 meap/meap-code/ch9/ch9-clock3/Cargo.toml create mode 100644 meap/meap-code/ch9/ch9-clock3/Dockerfile create mode 100644 meap/meap-code/ch9/ch9-clock3/src/main.rs create mode 100644 meap/meap-code/ch9/ch9-sao-paulo/Cargo.toml create mode 100644 meap/meap-code/ch9/ch9-sao-paulo/src/main.rs delete mode 100644 minigrep/Cargo.lock delete mode 100644 minigrep/Cargo.toml delete mode 100644 minigrep/src/lib.rs delete mode 100644 minigrep/src/main.rs delete mode 100644 oop/Cargo.lock delete mode 100644 oop/Cargo.toml delete mode 100644 oop/src/lib.rs delete mode 100644 oop/src/main.rs delete mode 100755 ownership/Cargo.lock delete mode 100755 ownership/Cargo.toml delete mode 100755 ownership/src/main.rs delete mode 100755 packages/my-project/Cargo.lock delete mode 100755 packages/my-project/Cargo.toml delete mode 100755 packages/my-project/src/main.rs delete mode 100755 packages/my-project/src/sound.rs delete mode 100755 packages/my-project/src/sound/instrument.rs delete mode 100644 patterns/Cargo.lock delete mode 100644 patterns/Cargo.toml delete mode 100644 patterns/src/main.rs delete mode 100644 piglatin/Cargo.lock delete mode 100644 piglatin/Cargo.toml delete mode 100644 piglatin/src/main.rs delete mode 100644 readme.md create mode 100755 rust-book/add/Cargo.lock create mode 100755 rust-book/add/Cargo.toml create mode 100755 rust-book/add/add-one/Cargo.toml create mode 100755 rust-book/add/add-one/src/lib.rs create mode 100755 rust-book/add/adder/Cargo.toml create mode 100755 rust-book/add/adder/src/main.rs create mode 100755 rust-book/adder/Cargo.lock create mode 100755 rust-book/adder/Cargo.toml create mode 100755 rust-book/adder/src/lib.rs create mode 100755 rust-book/advanced/adv-fn-closure/Cargo.lock create mode 100755 rust-book/advanced/adv-fn-closure/Cargo.toml create mode 100755 rust-book/advanced/adv-fn-closure/src/main.rs create mode 100755 rust-book/advanced/adv-lifetimes/Cargo.lock create mode 100755 rust-book/advanced/adv-lifetimes/Cargo.toml create mode 100755 rust-book/advanced/adv-lifetimes/src/main.rs create mode 100755 rust-book/advanced/adv-traits/Cargo.lock create mode 100755 rust-book/advanced/adv-traits/Cargo.toml create mode 100755 rust-book/advanced/adv-traits/src/main.rs create mode 100755 rust-book/advanced/adv-types/Cargo.lock create mode 100755 rust-book/advanced/adv-types/Cargo.toml create mode 100755 rust-book/advanced/adv-types/src/main.rs create mode 100755 rust-book/advanced/hello_macro/Cargo.toml create mode 100755 rust-book/advanced/hello_macro/src/lib.rs create mode 100755 rust-book/advanced/unsafe-rust/Cargo.lock create mode 100755 rust-book/advanced/unsafe-rust/Cargo.toml create mode 100755 rust-book/advanced/unsafe-rust/src/main.rs create mode 100755 rust-book/blog/Cargo.lock create mode 100755 rust-book/blog/Cargo.toml create mode 100755 rust-book/blog/src/lib.rs create mode 100755 rust-book/blog/src/main.rs create mode 100755 rust-book/collections/Cargo.lock create mode 100755 rust-book/collections/Cargo.toml create mode 100755 rust-book/collections/src/main.rs create mode 100755 rust-book/concurrency/Cargo.lock create mode 100755 rust-book/concurrency/Cargo.toml create mode 100755 rust-book/concurrency/src/main.rs create mode 100755 rust-book/control/Cargo.lock create mode 100755 rust-book/control/Cargo.toml create mode 100755 rust-book/control/src/main.rs create mode 100755 rust-book/crates/Cargo.lock create mode 100755 rust-book/crates/Cargo.toml create mode 100755 rust-book/crates/src/lib.rs create mode 100755 rust-book/crates/src/main.rs create mode 100755 rust-book/employees/Cargo.lock create mode 100755 rust-book/employees/Cargo.toml create mode 100755 rust-book/employees/src/main.rs create mode 100755 rust-book/enums/Cargo.lock create mode 100755 rust-book/enums/Cargo.toml create mode 100755 rust-book/enums/src/main.rs create mode 100755 rust-book/enums/src/main1.rs create mode 100755 rust-book/errors/Cargo.lock create mode 100755 rust-book/errors/Cargo.toml create mode 100755 rust-book/errors/src/main.rs create mode 100755 rust-book/fibonacci/Cargo.lock create mode 100755 rust-book/fibonacci/Cargo.toml create mode 100755 rust-book/fibonacci/src/main.rs create mode 100755 rust-book/ftoctof/Cargo.lock create mode 100755 rust-book/ftoctof/Cargo.toml create mode 100755 rust-book/ftoctof/src/main.rs create mode 100755 rust-book/functional/Cargo.lock create mode 100755 rust-book/functional/Cargo.toml create mode 100755 rust-book/functional/src/main.rs create mode 100755 rust-book/functions/Cargo.lock create mode 100755 rust-book/functions/Cargo.toml create mode 100755 rust-book/functions/src/main.rs create mode 100755 rust-book/generics/Cargo.lock create mode 100755 rust-book/generics/Cargo.toml create mode 100755 rust-book/generics/src/main.rs create mode 100755 rust-book/guessing-game/Cargo.lock create mode 100755 rust-book/guessing-game/Cargo.toml create mode 100755 rust-book/guessing-game/src/main.rs create mode 100755 rust-book/hello_server/404.html create mode 100755 rust-book/hello_server/Cargo.lock create mode 100755 rust-book/hello_server/Cargo.toml create mode 100755 rust-book/hello_server/hello.html create mode 100755 rust-book/hello_server/src/bin/main.rs create mode 100755 rust-book/hello_server/src/lib.rs create mode 100755 rust-book/hello_world/hello_cargo/Cargo.lock create mode 100755 rust-book/hello_world/hello_cargo/Cargo.toml create mode 100755 rust-book/hello_world/hello_cargo/src/main.rs create mode 100755 rust-book/hello_world/main.exe create mode 100755 rust-book/hello_world/main.rs create mode 100755 rust-book/horcrux/Cargo.toml create mode 100755 rust-book/horcrux/src/main.rs create mode 100755 rust-book/lifetimes/Cargo.lock create mode 100755 rust-book/lifetimes/Cargo.toml create mode 100755 rust-book/lifetimes/src/main.rs create mode 100755 rust-book/mathsssss/Cargo.lock create mode 100755 rust-book/mathsssss/Cargo.toml create mode 100755 rust-book/mathsssss/src/main.rs create mode 100755 rust-book/minigrep/Cargo.lock create mode 100755 rust-book/minigrep/Cargo.toml create mode 100755 rust-book/minigrep/src/lib.rs create mode 100755 rust-book/minigrep/src/main.rs create mode 100755 rust-book/oop/Cargo.lock create mode 100755 rust-book/oop/Cargo.toml create mode 100755 rust-book/oop/src/lib.rs create mode 100755 rust-book/oop/src/main.rs create mode 100755 rust-book/ownership/Cargo.lock create mode 100755 rust-book/ownership/Cargo.toml create mode 100755 rust-book/ownership/src/main.rs create mode 100755 rust-book/packages/my-project/Cargo.lock create mode 100755 rust-book/packages/my-project/Cargo.toml create mode 100755 rust-book/packages/my-project/src/main.rs create mode 100755 rust-book/packages/my-project/src/sound.rs create mode 100755 rust-book/packages/my-project/src/sound/instrument.rs create mode 100755 rust-book/patterns/Cargo.lock create mode 100755 rust-book/patterns/Cargo.toml create mode 100755 rust-book/patterns/src/main.rs create mode 100755 rust-book/piglatin/Cargo.lock create mode 100755 rust-book/piglatin/Cargo.toml create mode 100755 rust-book/piglatin/src/main.rs create mode 100755 rust-book/smart-pointers/Cargo.lock create mode 100755 rust-book/smart-pointers/Cargo.toml create mode 100755 rust-book/smart-pointers/src/main.rs create mode 100755 rust-book/structs/Cargo.lock create mode 100755 rust-book/structs/Cargo.toml create mode 100755 rust-book/structs/src/main.rs create mode 100755 rust-book/structs/src/main.rs.bak create mode 100755 rust-book/testing/Cargo.lock create mode 100755 rust-book/testing/Cargo.toml create mode 100755 rust-book/testing/src/lib.rs create mode 100755 rust-book/testing/tests/common/mod.rs create mode 100755 rust-book/testing/tests/integration_test.rs create mode 100755 rust-book/traits/Cargo.lock create mode 100755 rust-book/traits/Cargo.toml create mode 100755 rust-book/traits/src/main.rs create mode 100755 rust-book/variables/Cargo.lock create mode 100755 rust-book/variables/Cargo.toml create mode 100755 rust-book/variables/src/main.rs create mode 100755 rust-book/xmas/Cargo.lock create mode 100755 rust-book/xmas/Cargo.toml create mode 100755 rust-book/xmas/src/main.rs delete mode 100644 smart-pointers/Cargo.lock delete mode 100644 smart-pointers/Cargo.toml delete mode 100644 smart-pointers/src/main.rs delete mode 100755 structs/Cargo.lock delete mode 100755 structs/Cargo.toml delete mode 100755 structs/src/main.rs delete mode 100755 structs/src/main.rs.bak delete mode 100644 testing/Cargo.lock delete mode 100644 testing/Cargo.toml delete mode 100644 testing/src/lib.rs delete mode 100644 testing/tests/common/mod.rs delete mode 100644 testing/tests/integration_test.rs delete mode 100644 traits/Cargo.lock delete mode 100644 traits/Cargo.toml delete mode 100644 traits/src/main.rs delete mode 100755 variables/Cargo.lock delete mode 100755 variables/Cargo.toml delete mode 100755 variables/src/main.rs delete mode 100644 xmas/Cargo.lock delete mode 100644 xmas/Cargo.toml delete mode 100644 xmas/out.txt delete mode 100644 xmas/src/main.rs diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/add/Cargo.lock b/add/Cargo.lock deleted file mode 100644 index 64cb0d1..0000000 --- a/add/Cargo.lock +++ /dev/null @@ -1,11 +0,0 @@ -[[package]] -name = "add-one" -version = "0.1.0" - -[[package]] -name = "adder" -version = "0.1.0" -dependencies = [ - "add-one 0.1.0", -] - diff --git a/add/Cargo.toml b/add/Cargo.toml deleted file mode 100644 index 37b9688..0000000 --- a/add/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[workspace] - -members = [ - "adder", - "add-one", -] - diff --git a/add/add-one/Cargo.toml b/add/add-one/Cargo.toml deleted file mode 100644 index 88d65d1..0000000 --- a/add/add-one/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[package] -name = "add-one" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] -rand = "0.3.14" diff --git a/add/add-one/src/lib.rs b/add/add-one/src/lib.rs deleted file mode 100644 index fe3583e..0000000 --- a/add/add-one/src/lib.rs +++ /dev/null @@ -1,11 +0,0 @@ -pub fn add_one(x: i32) -> i32 { - x + 1 -} - -#[cfg(test)] -mod tests { - #[test] - fn it_works() { - assert_eq!(2 + 2, 4); - } -} diff --git a/add/adder/Cargo.toml b/add/adder/Cargo.toml deleted file mode 100644 index 1fefcc2..0000000 --- a/add/adder/Cargo.toml +++ /dev/null @@ -1,9 +0,0 @@ -[package] -name = "adder" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] -add-one = { path = "../add-one" } - diff --git a/add/adder/src/main.rs b/add/adder/src/main.rs deleted file mode 100644 index 7099fb8..0000000 --- a/add/adder/src/main.rs +++ /dev/null @@ -1,6 +0,0 @@ -use add_one; - -fn main() { - let num = 10; - println!("{}", add_one::add_one(num)); -} diff --git a/adder/Cargo.lock b/adder/Cargo.lock deleted file mode 100644 index 4fb18f9..0000000 --- a/adder/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "adder" -version = "0.1.0" - diff --git a/adder/Cargo.toml b/adder/Cargo.toml deleted file mode 100644 index 5224ea1..0000000 --- a/adder/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "adder" -version = "0.1.0" -authors = ["carpenat"] -edition = "2018" - -[dependencies] diff --git a/adder/src/lib.rs b/adder/src/lib.rs deleted file mode 100644 index bc79931..0000000 --- a/adder/src/lib.rs +++ /dev/null @@ -1,92 +0,0 @@ -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn it_works() -> Result<(), String> { - if 2 + 2 == 4 { - Ok(()) - } - else { - Err(String::from("two plus two does not equal four")) - } - } - - #[test] - fn larger_can_hold_smaller() { - let larger = Rectangle { length: 8, width: 7 }; - let smaller = Rectangle { length: 5, width: 1 }; - - assert!(larger.can_hold(&smaller)); - } - - #[test] - fn smaller_cannot_hold_larger() { - let larger = Rectangle { length: 8, width: 7 }; - let smaller = Rectangle { length: 5, width: 1 }; - - assert!(!smaller.can_hold(&larger)); - } - - #[test] - fn it_adds_two() { - assert_eq!(4, add_two(2)); - } - - #[test] - fn it_wont_add_two() { - assert_ne!(4, add_two(3)); - } - - #[test] - fn greeting_contains_name() { - let result = greeting("adam"); - assert!(result.contains("adam")); - } - - #[test] - #[should_panic(expected = "must be between 1 and 100")] - fn greater_than_100() { - Guess::new(200); - } -} - -#[derive(Debug)] -pub struct Rectangle { - length: u32, - width: u32, -} - -pub struct Guess { - value: i32, -} - -impl Guess { - pub fn new(value: i32) -> Guess { - if value < 1 || value > 100 { - panic!("must be between 1 and 100, not {}", value); - } - //if value < 1 { - // panic!("must be greater than 1, not {}", value); - //} - //else if value > 100 { - // panic!("must be less than 100, not {}", value); - //} - - Guess { value } - } -} - -impl Rectangle { - pub fn can_hold(&self, other: &Rectangle) -> bool { - self.length > other.length && self.width > other.width - } -} - -pub fn add_two(a: i32) -> i32 { - a + 2 -} - -pub fn greeting(name: &str) -> String { - format!("hello {}", name) -} diff --git a/advanced/adv-fn-closure/Cargo.lock b/advanced/adv-fn-closure/Cargo.lock deleted file mode 100644 index 360607c..0000000 --- a/advanced/adv-fn-closure/Cargo.lock +++ /dev/null @@ -1,11 +0,0 @@ -[[package]] -name = "adv-fn-closure" -version = "0.1.0" -dependencies = [ - "hello_macro 0.1.0", -] - -[[package]] -name = "hello_macro" -version = "0.1.0" - diff --git a/advanced/adv-fn-closure/Cargo.toml b/advanced/adv-fn-closure/Cargo.toml deleted file mode 100644 index 6cd8dbd..0000000 --- a/advanced/adv-fn-closure/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[package] -name = "adv-fn-closure" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] -hello_macro = { path = "../hello_macro" } diff --git a/advanced/adv-fn-closure/src/main.rs b/advanced/adv-fn-closure/src/main.rs deleted file mode 100644 index 064f300..0000000 --- a/advanced/adv-fn-closure/src/main.rs +++ /dev/null @@ -1,79 +0,0 @@ -use hello_macro::HelloMacro; -//use hello_macro_derive::HelloMacro; - -struct Pancakes; - -impl HelloMacro for Pancakes { - fn hello_macro() { - println!("pancakes"); - } -} - -fn main() { - Pancakes::hello_macro(); -} - -//fn add_one(x: i32) -> i32 { -// x + 1 -//} -// -//fn do_twice(f: fn(i32) -> i32, arg: i32) -> i32 { -// f(arg) + f(arg) -//} - - -//fn returns_closure() -> Box i32> { -// Box::new(|x| x + 1) -//} -// -// -//enum Status { -// Value(u32), -// Stop, -//} - - -//#[macro_export] -//macro_rules! vec { -// ( $( $x:expr ), * ) => { -// { -// let mut temp_vec = Vec::new(); -// $( -// temp_vec.push($x); -// )* -// temp_vec -// } -// }; -//} - - -//#[some_attribute] -//pub fn some_name(input: TokenStream) -> TokenStream { -//} -// -// -//fn main() { -// let answer = do_twice(add_one, 5); -// -// println!("{}", answer); - - -// let list_of_numbers = vec![1, 2, 3]; -// let list_of_strings: Vec = list_of_numbers -// .iter() -// .map(ToString::to_string) -// .collect(); -// dbg!(list_of_strings); - - -// let list_of_statuses: Vec = -// (0u32..20) -// .map(Status::Value) -// .collect(); - - - //returns_closure(); - - - -//} diff --git a/advanced/adv-lifetimes/Cargo.lock b/advanced/adv-lifetimes/Cargo.lock deleted file mode 100644 index 591810c..0000000 --- a/advanced/adv-lifetimes/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "adv-lifetimes" -version = "0.1.0" - diff --git a/advanced/adv-lifetimes/Cargo.toml b/advanced/adv-lifetimes/Cargo.toml deleted file mode 100644 index b127e9f..0000000 --- a/advanced/adv-lifetimes/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[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 deleted file mode 100644 index 755baf4..0000000 --- a/advanced/adv-lifetimes/src/main.rs +++ /dev/null @@ -1,36 +0,0 @@ -fn main() { - let num = 5; - - let obj = Box::new(Ball { diameter: &num }) as Box; -} - -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-traits/Cargo.lock b/advanced/adv-traits/Cargo.lock deleted file mode 100644 index 4fb1ae5..0000000 --- a/advanced/adv-traits/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "adv-traits" -version = "0.1.0" - diff --git a/advanced/adv-traits/Cargo.toml b/advanced/adv-traits/Cargo.toml deleted file mode 100644 index b1c5f6a..0000000 --- a/advanced/adv-traits/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[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 deleted file mode 100644 index 659883c..0000000 --- a/advanced/adv-traits/src/main.rs +++ /dev/null @@ -1,163 +0,0 @@ -//fn main() { -// println!("Hello, world!"); -//} -// -//pub trait Iterator { -// type Item; -// -// fn next(&mut self) -> Option; -//} -// -// -//#[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."); -//} - -//trait Add { -// type Output; -// -// fn add(self, rhs: RHS) -> Self::Output; -//} - -//use std::ops::Add; -// -//struct Millimeters(u32); -//struct Meters(u32); -// -//impl Add for Millimeters { -// type Output = Millimeters; -// -// fn add(self, other: Meters) -> Millimeters { -// Millimeters(self.0 + (other.0 * 1000)) -// } -//} - - -//trait Pilot { -// fn fly(&self); -//} -// -//trait Wizard { -// fn fly(&self); -//} -// -//struct Human; -// -//impl Pilot for Human { -// fn fly(&self) { -// println!("Because I was inverted."); -// } -//} -// -//impl Wizard for Human { -// fn fly(&self) { -// println!("Fly, you fools."); -// } -//} -// -//impl Human { -// fn fly(&self) { -// println!("*feels real loose like a long-neck goose*"); -// } -//} -// -// -//trait Animal { -// fn baby_name() -> String; -//} -// -//struct Dog; -// -//impl Dog { -// fn baby_name() -> String { -// String::from("Spot") -// } -//} -// -//impl Animal for Dog { -// fn baby_name() -> String { -// String::from("puppy") -// } -//} - - -//fn main() { -// let person = Human; -// person.fly(); -// Pilot::fly(&person); -// Wizard::fly(&person); -// -// -// println!("A baby dog is called a {}", ::baby_name()); -// -// -// println!("Done."); -//} -// - - -//use std::fmt; -// -//trait OutlinePrint: fmt::Display { -// fn outline_print(&self) { -// let output = self.to_string(); -// let len = output.len(); -// println!("{}", "*".repeat(len + 4)); -// println!("*{}*", " ".repeat(len + 2)); -// println!("* {} *", output); -// println!("*{}*", " ".repeat(len + 2)); -// println!("{}", "*".repeat(len + 4)); -// } -//} -// -//struct Point { -// x: i32, -// y: i32, -//} -// -//impl OutlinePrint for Point {} -// -//impl fmt::Display for Point { -// fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { -// write!(f, "({}, {})", self.x, self.y) -// } -//} -// -//fn main() { -// let point = Point { x: 5, y: 6 }; -// point.outline_print(); -//} - -use std::fmt; - -struct Wrapper(Vec); - -impl fmt::Display for Wrapper { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "[{}]", self.0.join(", ")) - } -} - -fn main() { - let w = Wrapper(vec![String::from("hello"), String::from("world")]); - println!("w = {}", w); -} diff --git a/advanced/adv-types/Cargo.lock b/advanced/adv-types/Cargo.lock deleted file mode 100644 index a7ad78b..0000000 --- a/advanced/adv-types/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "adv-types" -version = "0.1.0" - diff --git a/advanced/adv-types/Cargo.toml b/advanced/adv-types/Cargo.toml deleted file mode 100644 index a3ca211..0000000 --- a/advanced/adv-types/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "adv-types" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/advanced/adv-types/src/main.rs b/advanced/adv-types/src/main.rs deleted file mode 100644 index 60d42b2..0000000 --- a/advanced/adv-types/src/main.rs +++ /dev/null @@ -1,41 +0,0 @@ -//use std::io::Error; -//use std::fmt; - -//pub trait Write { -// -// fn write(&mut self, buf: &[u8]) -> Result; -// fn flush(&mut self) -> Result<(), Error>; -// -// fn write_all(&mut self, buf: &[u8]) -> Result<()>; -// fn write_fmt(&mut self, fmt: fmt::Arguments) -> Result<()>; -//} - -//fn main() { -// type Miles = i32; -// -// let x: i32 = 5; -// let y: Miles = 5; -// -// println!("x + y = {}", x + y); - - -//} - -//type Thunk = Box; -// -//let f: Thunk = Box::new(|| println!("hi")); -// -//fn takes_long_type(f: Thunk) { -//} -// -//fn returns_long_type() -> Thunk { -//} - -fn main() { - print!("forever"); - - loop { - print!("and ever "); - } -} - diff --git a/advanced/hello_macro/Cargo.toml b/advanced/hello_macro/Cargo.toml deleted file mode 100644 index e812230..0000000 --- a/advanced/hello_macro/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "hello_macro" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/advanced/hello_macro/src/lib.rs b/advanced/hello_macro/src/lib.rs deleted file mode 100644 index e747931..0000000 --- a/advanced/hello_macro/src/lib.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub trait HelloMacro { - fn hello_macro(); -} diff --git a/advanced/unsafe-rust/Cargo.lock b/advanced/unsafe-rust/Cargo.lock deleted file mode 100644 index fbd902c..0000000 --- a/advanced/unsafe-rust/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "unsafe-rust" -version = "0.1.0" - diff --git a/advanced/unsafe-rust/Cargo.toml b/advanced/unsafe-rust/Cargo.toml deleted file mode 100644 index b37474a..0000000 --- a/advanced/unsafe-rust/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[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 deleted file mode 100644 index c9967a8..0000000 --- a/advanced/unsafe-rust/src/main.rs +++ /dev/null @@ -1,62 +0,0 @@ -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/blog/Cargo.lock b/blog/Cargo.lock deleted file mode 100644 index 8e79386..0000000 --- a/blog/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "blog" -version = "0.1.0" - diff --git a/blog/Cargo.toml b/blog/Cargo.toml deleted file mode 100644 index 0f971d3..0000000 --- a/blog/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "blog" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/blog/src/lib.rs b/blog/src/lib.rs deleted file mode 100644 index 8436a36..0000000 --- a/blog/src/lib.rs +++ /dev/null @@ -1,127 +0,0 @@ -//pub struct Post { -// state: Option>, -// content: String, -//} -// -//impl Post { -// pub fn new() -> Post { -// Post { -// state: Some(Box::new(Draft {})), -// content: String::new(), -// } -// } -// -// pub fn add_text(&mut self, text: &str) { -// self.content.push_str(text); -// } -// -// pub fn content(&self) -> &str { -// self.state.as_ref().unwrap().content(&self) -// } -// -// pub fn request_review(&mut self) { -// if let Some(s) = self.state.take() { -// self.state = Some(s.request_review()) -// } -// } -// -// pub fn approve(&mut self) { -// if let Some(s) = self.state.take() { -// self.state = Some(s.approve()) -// } -// } -//} -// -//trait State { -// fn request_review(self: Box) -> Box; -// fn approve(self: Box) -> Box; -// fn content<'a>(&self, post: &'a Post) -> &'a str { -// "" -// } -//} -// -//struct Draft {} -// -//impl State for Draft { -// fn request_review(self: Box) -> Box { -// Box::new(PendingReview {}) -// } -// -// fn approve(self: Box) -> Box { -// self -// } -//} -// -//struct PendingReview {} -// -//impl State for PendingReview { -// fn request_review(self: Box) -> Box { -// self -// } -// -// fn approve(self: Box) -> Box { -// Box::new(Published {}) -// } -//} -// -//struct Published {} -// -//impl State for Published { -// fn request_review(self: Box) -> Box { -// self -// } -// -// fn approve(self: Box) -> Box { -// self -// } -// -// fn content<'a>(&self, post: &'a Post) -> &'a str { -// &post.content -// } -//} - - - -pub struct Post { - content: String, -} - -pub struct DraftPost { - content: String, -} - -pub struct PendingReviewPost { - content: String, -} - -impl Post { - pub fn new() -> DraftPost { - DraftPost { - content: String::new(), - } - } - - pub fn content(&self) -> &str { - &self.content - } -} - -impl DraftPost { - pub fn add_text(&mut self, text: &str) { - self.content.push_str(text); - } - - pub fn request_review(self) -> PendingReviewPost { - PendingReviewPost { - content: self.content, - } - } -} - -impl PendingReviewPost { - pub fn approve(self) -> Post { - Post { - content: self.content, - } - } -} diff --git a/blog/src/main.rs b/blog/src/main.rs deleted file mode 100644 index c976cd9..0000000 --- a/blog/src/main.rs +++ /dev/null @@ -1,36 +0,0 @@ -use blog::Post; - -fn main() { -// let mut post = Post::new(); -// -// post.add_text("salad"); -// assert_eq!("", post.content()); -// -// post.request_review(); -// assert_eq!("", post.content()); -// -// post.approve(); -// assert_eq!("salad", post.content()); - - - -// let mut post = Post::new(); -// post.add_text("salad"); -// assert_eq!("", post.content()); - - - - let mut post = Post::new(); - - post.add_text("salad"); - let post = post.request_review(); - let post = post.approve(); - - assert_eq!("salad", post.content()); - - - - - - println!("Done."); -} diff --git a/collections/Cargo.lock b/collections/Cargo.lock deleted file mode 100755 index 14856a6..0000000 --- a/collections/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "collections" -version = "0.1.0" - diff --git a/collections/Cargo.toml b/collections/Cargo.toml deleted file mode 100755 index 8460a0c..0000000 --- a/collections/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "collections" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/collections/src/main.rs b/collections/src/main.rs deleted file mode 100755 index 7257ce2..0000000 --- a/collections/src/main.rs +++ /dev/null @@ -1,133 +0,0 @@ -use std::collections::HashMap; - -fn main() { - //let v: Vec = Vec::new(); - //let mut v = vec![1, 2, 3, 4, 5]; - - // let third: &i32 = &v[2]; - // println!("the third element is {}", third); - // - // match v.get(2) { - // Some(third) => println!("third is {}", third), - // None => println!("no third element"), - // } - // - // for i in &mut v { - // *i += 10; - // println!("{}", *i); - // } - // for i in &v { - // println!("{}", i); - // } - - // enum SpreadsheetCell { - // Int(i32), - // Float(f64), - // Text(String), - // } - // - // let row = vec![ - // SpreadsheetCell::Int(3), - // SpreadsheetCell::Text(String::from("blue")), - // SpreadsheetCell::Float(10.12), - // ]; - - //let mut s = String::new(); - - //let data = "initial contents"; - //let s = data.to_string(); - //dbg!(s); - //let s = "initial contents".to_string(); - //dbg!(s); - //let s = String::from("initial contents"); - //dbg!(s); - - //let mut s = String::from("hello"); - //s.push_str(" world"); - - //let mut s1 = String::from("hello"); - //let s2 = " world"; - //s1.push_str(s2); - //s1.push('!'); - //dbg!(s1); - - //let s1 = String::from("Hello "); - //let s2 = String::from("world"); - //let s3 = s1 + &s2 + "!"; - //dbg!(s3); - - //let my_result: Result<&'static str, &'static str> = Ok("test"); - - //dbg!(my_result); - - //let s1 = String::from("tic"); - //let s2 = String::from("tac"); - //let s3 = String::from("toe"); - - //let s = format!("{}-{}-{}", s1, s2, s3); - //dbg!(s); - - //let s = String::from("welcome to hello world"); - //let len = s.len(); - //dbg!(len); - //let s1 = s[0..15].to_string(); - //dbg!(s1); - - //for c in "hello world".bytes() { - // dbg!(c); - //} - - //let mut scores = HashMap::new(); - //scores.insert(String::from("Blue"), 10); - //scores.insert(String::from("Yellow"), 50); - //scores.insert(String::from("Blue"), 20); - //dbg!(scores); - - //let teams = vec![String::from("blue"), String::from("yellow")]; - //let initial_scores = vec![10, 20]; - //let scores: HashMap<_, _> = teams.iter().zip(initial_scores.iter()).collect(); - //dbg!(scores); - - //let field_name = String::from("favorite color"); - //let field_value = String::from("blue"); - - //let mut map = HashMap::new(); - //map.insert(field_name, field_value); - - //let mut scores = HashMap::new(); - //scores.insert(String::from("blue"), 10); - //scores.insert(String::from("yellow"), 50); - - //let team_name = String::from("blue"); - //let score = scores.get(&team_name); - - //dbg!(team_name); - //dbg!(score); - - //let mut scores = HashMap::new(); - - //scores.insert(String::from("blue"), 10); - //scores.insert(String::from("yellow"), 50); - - //for (key, value) in &scores { - // dbg!(key); - // dbg!(value); - //} - - // let mut scores = HashMap::new(); - // scores.insert(String::from("blue"), 10); - // scores.entry(String::from("yellow")).or_insert(50); - // scores.entry(String::from("blue")).or_insert(50); - // dbg!(scores); - - //let text = "when in the course of himan events it becomes necessary for one people to dissolve the political bands which have connected them with another and to assume among the powers of the earth the separate and equal station to which thelaws of nature and of nature's God entitle them a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation"; - //let mut map = HashMap::new(); - - //for word in text.split_whitespace() { - // let count = map.entry(word).or_insert(0); - // *count += 1; - //} - - //dbg!(map); - -} diff --git a/concurrency/Cargo.lock b/concurrency/Cargo.lock deleted file mode 100644 index 74a4d7a..0000000 --- a/concurrency/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "concurrency" -version = "0.1.0" - diff --git a/concurrency/Cargo.toml b/concurrency/Cargo.toml deleted file mode 100644 index 0bfe465..0000000 --- a/concurrency/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "concurrency" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/concurrency/src/main.rs b/concurrency/src/main.rs deleted file mode 100644 index 53417eb..0000000 --- a/concurrency/src/main.rs +++ /dev/null @@ -1,137 +0,0 @@ -use std::sync::Arc; -use std::rc::Rc; -use std::sync::Mutex; -use std::thread; -use std::sync::mpsc; -use std::time::Duration; - -fn main() { -// let handle = thread::spawn(|| { -// for i in 1..10 { -// println!("spawned: {}", i); -// thread::sleep(Duration::from_millis(1)); -// } -// }); -// -// for i in 1..5 { -// println!("main: {}", i); -// thread::sleep(Duration::from_millis(1)); -// } -// -// handle.join().unwrap(); - - - -// let v = vec![1, 2, 3]; -// -// let handle = thread::spawn(move || { -// println!("Here's a vector: {:?}", v); -// }); -// -// drop(v); -// handle.join().unwrap(); - - - -// let (tx, rx) = mpsc::channel(); -// -// thread::spawn(move || { -// let val = String::from("hi"); -// tx.send(val).unwrap(); -// dbg!(val); -// }); -// -// let received = rx.recv().unwrap(); -// dbg!(received); - - - -// let (tx, rx) = mpsc::channel(); -// -// thread::spawn(move || { -// let vals = vec![ -// String::from("the"), -// String::from("walking"), -// String::from("thread"), -// ]; -// -// for val in vals { -// tx.send(val).unwrap(); -// thread::sleep(Duration::from_secs(1)); -// } -// }); -// -// for received in rx { -// println!("got {}", received); -// } - - - -// let (tx, rx) = mpsc::channel(); -// -// let tx1 = mpsc::Sender::clone(&tx); -// thread::spawn(move || { -// let vals = vec![ -// String::from("the"), -// String::from("walking"), -// String::from("thread"), -// ]; -// -// for val in vals { -// tx1.send(val).unwrap(); -// thread::sleep(Duration::from_secs(1)); -// } -// }); -// -// thread::spawn(move || { -// let vals = vec![ -// String::from("welcome"), -// String::from("to"), -// String::from("woodberry"), -// String::from("!"), -// ]; -// -// for val in vals { -// tx.send(val).unwrap(); -// thread::sleep(Duration::from_secs(1)); -// } -// }); -// -// for received in rx { -// dbg!(received); -// } - - - -// let m = Mutex::new(5); -// -// { -// let mut num = m.lock().unwrap(); -// *num = 6; -// } -// -// println!("m = {:?}", m); - - - - let counter = Arc::new(Mutex::new(0)); - let mut handles = vec![]; - - for _ in 0..10 { - let counter = Arc::clone(&counter); - let handle = thread::spawn(move || { - let mut num = counter.lock().unwrap(); - - *num += 1; - }); - handles.push(handle); - } - - for handle in handles { - handle.join().unwrap(); - } - - dbg!(*counter.lock().unwrap()); - - println!("Done."); -} diff --git a/control/Cargo.lock b/control/Cargo.lock deleted file mode 100755 index 81a9861..0000000 --- a/control/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "control" -version = "0.1.0" - diff --git a/control/Cargo.toml b/control/Cargo.toml deleted file mode 100755 index 70b4d1d..0000000 --- a/control/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "control" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/control/src/main.rs b/control/src/main.rs deleted file mode 100755 index 0b74683..0000000 --- a/control/src/main.rs +++ /dev/null @@ -1,7 +0,0 @@ -fn main() { - - for number in (1..1000).rev() { - println!("{}", number); - } -} - diff --git a/crates/Cargo.lock b/crates/Cargo.lock deleted file mode 100644 index 3e95fa1..0000000 --- a/crates/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "crates" -version = "0.1.0" - diff --git a/crates/Cargo.toml b/crates/Cargo.toml deleted file mode 100644 index 202ff1d..0000000 --- a/crates/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "crates" -version = "0.1.0" -authors = ["53hornet <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/crates/src/lib.rs b/crates/src/lib.rs deleted file mode 100644 index 5cf1d97..0000000 --- a/crates/src/lib.rs +++ /dev/null @@ -1,33 +0,0 @@ -//! # Art -//! -//! A library for modeling artistic concepts. - -pub use kinds::PrimaryColor; -pub use kinds::SecondaryColor; -pub use utils::mix; - -pub mod kinds { - /// The primary colors according to the RYB color model. - pub enum PrimaryColor { - Red, - Yellow, - Blue, - } - - /// The secondary colors according to the RYB color model. - pub enum SecondaryColor { - Orange, - Green, - Purple, - } -} - -pub mod utils { - use crate::kinds::*; - - /// Combines two primary color in equal amounts to create - /// a secondary color. - pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { - SecondaryColor::Green - } -} diff --git a/crates/src/main.rs b/crates/src/main.rs deleted file mode 100644 index 80668f2..0000000 --- a/crates/src/main.rs +++ /dev/null @@ -1,8 +0,0 @@ -use art::PrimaryColor; -use art::mix; - -fn main() { - let red = PrimaryColor::Red, - let yellow = PrimaryColor::Yellow; - mix(red, yellow); -} diff --git a/employees/Cargo.lock b/employees/Cargo.lock deleted file mode 100644 index a6d8fc5..0000000 --- a/employees/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "employees" -version = "0.1.0" - diff --git a/employees/Cargo.toml b/employees/Cargo.toml deleted file mode 100644 index 016ef3b..0000000 --- a/employees/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "employees" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/employees/src/main.rs b/employees/src/main.rs deleted file mode 100644 index 0900bed..0000000 --- a/employees/src/main.rs +++ /dev/null @@ -1,181 +0,0 @@ -use std::collections::HashMap; -use std::process; -use std::io::{self, Write}; - -struct Employees { - departments: HashMap>, -} - -impl Employees { - - fn add_employee(&self, name: &Option<&String>, department: &Option<&String>) -> Result<(), &'static str> { - // parse name - let name = match name { - Some(s) => s, - None => { - return Err("Invalid or empty name."); - }, - }; - - // parse department - let dept = match department { - Some(s) => s, - None => { - return Err("Invalid or empty department."); - }, - }; - - // add name to department in departments - // and create department if it doesn't exist - employees.entry(dept.to_string()) - .or_insert(Vec::new()) - .push(name.to_string()); - - Ok(()) - } -} - -//fn list_employees() { -// let dept = match actions.get(1) { -// Some(s) => s, -// None => { -// "" -// } -// }; -// -// if dept == "" { -// // print employees in all depts -// for each in employees.keys() { -// println!("{}", each); -// match employees.get(&each.to_string()) { -// Some(v) => { -// for every in v { -// println!(" {}", every); -// } -// }, -// None => continue, -// }; -// } -// } -// else { -// // print employees in single dept -// match employees.get(&dept.to_string()) { -// Some(v) => { -// for every in v { -// println!("{}", every); -// }; -// }, -// None => { -// eprintln!("List: Invalid department."); -// continue; -// } -// }; -// } -//} -// -//fn list_employee(name) { -//} - - -//fn remove_employee(name) { -// let name = match actions.get(1) { -// Some(s) => s, -// None => { -// eprintln!("Remove: Invalid or empty name."); -// continue; -// }, -// }; -// -// let dept = match actions.get(2) { -// Some(s) => s, -// None => { -// eprintln!("Remove: Empty department."); -// continue; -// }, -// }; -// -// match employees.get_mut(&dept.to_string()) { -// Some(v) => { -// v.retain(|employee| employee != name); -// }, -// None => { -// eprintln!("Remove: Invalid department."); -// continue; -// } -// }; - -//} - -fn get_actions() -> Vec { - print!("> "); - io::stdout().flush().unwrap(); - - // grab input - let mut input = String::new(); - io::stdin().read_line(&mut input) - .expect("Failed to read input."); - - // finish on eof - if input == "" { - println!("Bye."); - process::exit(0); - } - - // collect all CLI arguments into vector of trimmed Strings - input.trim() - .split_whitespace() - .map(|action| action.to_string()) - .collect() -} - -fn main() { - println!("Welcome to employee manager."); - println!("Enter 'help' for help or Ctrl+D to exit."); - let mut departments: HashMap> = HashMap::new(); - - // operating loop - loop { - let actions = get_actions(); - - // act on actions - let command = match actions.get(0) { - Some(c) => c, - None => { - eprintln!("Empty command. Enter Ctrl+D to exit."); - continue; - } - }; - - match command.as_str() { - // add employee to department - "add" => { - match add_employee(&actions.get(1), &actions.get(2), &mut departments) { - Ok(()) => {dbg!(&departments);}, - Err(e) => eprintln!("{}", e), - }; - }, - - // list employees from one or all departments - "list" => { - }, - - // remove employee from department - "remove" => { - }, - - // print help - "help" => { - println!("Valid commands include:"); - println!("\tlist [department]"); - println!("\tadd "); - println!("\tremove "); - println!("Enter 'help' for help or Ctrl+D to exit."); - }, - - // all else fails - _ => eprintln!("Invalid command."), - } - - } - -} diff --git a/enums/Cargo.lock b/enums/Cargo.lock deleted file mode 100755 index d3577dd..0000000 --- a/enums/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "enums" -version = "0.1.0" - diff --git a/enums/Cargo.toml b/enums/Cargo.toml deleted file mode 100755 index 99fb9fc..0000000 --- a/enums/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "enums" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/enums/src/main.rs b/enums/src/main.rs deleted file mode 100755 index b8c61de..0000000 --- a/enums/src/main.rs +++ /dev/null @@ -1,12 +0,0 @@ -fn main() { - let some_u8_value = Some(3u8); -// match some_u8_value { -// Some(3) => println!("three"), -// _ => (), -// } - - if let Some(3) = some_u8_value { - println!("three"); - } - -} diff --git a/enums/src/main1.rs b/enums/src/main1.rs deleted file mode 100755 index 9670693..0000000 --- a/enums/src/main1.rs +++ /dev/null @@ -1,48 +0,0 @@ -#[derive(Debug)] -enum UsState { - NY, - VA, - NC, -} - -enum Coin { - Penny, - Nickel, - Dime, - Quarter(UsState), -} - -impl Coin { - - fn value_in_cents(self) -> u32 { - - match self { - Coin::Penny => { - println!("lucky penny"); - 1 - }, - Coin::Nickel => 5, - Coin::Dime => 10, - Coin::Quarter(state) => { - println!("State quarter from {:?}", state); - 25 - }, - - } - - } -} - -fn plus_one(x: Option) -> Option { - - match x { - None => None, - Some(i) => Some(i + 1), - } -} - -fn main() { - let five = Some(5); - let six = plus_one(five); - let none = plus_one(None); -} diff --git a/errors/Cargo.lock b/errors/Cargo.lock deleted file mode 100644 index 749984f..0000000 --- a/errors/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "errors" -version = "0.1.0" - diff --git a/errors/Cargo.toml b/errors/Cargo.toml deleted file mode 100644 index e531a1b..0000000 --- a/errors/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "errors" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/errors/src/main.rs b/errors/src/main.rs deleted file mode 100644 index 1250677..0000000 --- a/errors/src/main.rs +++ /dev/null @@ -1,38 +0,0 @@ -use std::io; -use std::io::Read; -use std::fs::File; -//use std::io::ErrorKind; - -fn read_username_from_file() -> Result { -// let f = File::open("hello.txt"); -// let mut f = match f { -// Ok(file) => file, -// Err(e) => return Err(e), -// }; -// let mut s = String::new(); -// match f.read_to_string(&mut s) { -// Ok(_) => Ok(s), -// Err(e) => Err(e), -// } - let mut s = String::new(); - File::open("hello.txt")?.read_to_string(&mut s)?; - Ok(s) -} -fn main() { -// let f = File::open("hello.txt").map_err(|error| { -// if error.kind() == ErrorKind::NotFound { -// File::create("hello.txt").unwrap_or_else(|error| { -// panic!("Could not create file: {:?}", error); -// }) -// } -// else { -// panic!("Problem opening file: {:?}", error); -// } -// }); - - //let f = File::open("hello.txt").unwrap(); - - //let f = File::open("hello.txt").expect("failed to open hello.txt"); - - dbg!(read_username_from_file()); -} diff --git a/fibonacci/Cargo.lock b/fibonacci/Cargo.lock deleted file mode 100644 index 06aa71c..0000000 --- a/fibonacci/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "fibonacci" -version = "0.1.0" - diff --git a/fibonacci/Cargo.toml b/fibonacci/Cargo.toml deleted file mode 100644 index 60bf227..0000000 --- a/fibonacci/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "fibonacci" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/fibonacci/src/main.rs b/fibonacci/src/main.rs deleted file mode 100644 index 0b4f22b..0000000 --- a/fibonacci/src/main.rs +++ /dev/null @@ -1,31 +0,0 @@ -use std::env; - -fn fib(n: u32) -> u32 { - - if n == 0 || n == 1 { - return n; - } - else { - return fib(n - 1) + fib(n - 2); - } - -} - -fn main() { - // grab iterations - let iterations: u32 = match env::args().nth(1) { - Some(s) => { - let attempt: u32 = s.trim().parse() - .expect("error: could not parse iterations"); - attempt - }, - None => { - eprintln!("error: usage: fibonacci [iterations]"); - return; - }, - }; - - for i in 0..iterations { - println!("{}", fib(i)); - } -} diff --git a/ftoctof/Cargo.lock b/ftoctof/Cargo.lock deleted file mode 100644 index e716471..0000000 --- a/ftoctof/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "ftoctof" -version = "0.1.0" - diff --git a/ftoctof/Cargo.toml b/ftoctof/Cargo.toml deleted file mode 100644 index 544eb2b..0000000 --- a/ftoctof/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "ftoctof" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/ftoctof/src/main.rs b/ftoctof/src/main.rs deleted file mode 100644 index 6425344..0000000 --- a/ftoctof/src/main.rs +++ /dev/null @@ -1,43 +0,0 @@ -use std::env; - -fn print_usage() { - eprintln!("error: usage: ftoctof [degrees] [f|c]"); -} - -fn main() { - // grab degrees value - let degrees: f32 = match env::args().nth(1) { - Some(s) => { - let attempt: f32 = s.trim().parse() - .expect("error: could not parse degrees"); - attempt - }, - None => { - print_usage(); - return; - }, - }; - - // grab scale identifier - let scale = match env::args().nth(2) { - Some(s) => s.to_lowercase(), - None => { - print_usage(); - return; - }, - }; - - // compute and print conversion - if scale == "f" { - let result: f32 = (degrees - 32.0) * 5.0 / 9.0; - println!("{} degrees fahrenheight is {} degrees celcius.", degrees, result); - } - else if scale == "c" { - let result: f32 = degrees * 9.0 / 5.0 + 32.0; - println!("{} degrees celcius is {} degrees fahrenheight.", degrees, result); - } - else { - print_usage(); - } - -} diff --git a/functional/Cargo.lock b/functional/Cargo.lock deleted file mode 100644 index ba41a73..0000000 --- a/functional/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "functional" -version = "0.1.0" - diff --git a/functional/Cargo.toml b/functional/Cargo.toml deleted file mode 100644 index 960ba85..0000000 --- a/functional/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "functional" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/functional/src/main.rs b/functional/src/main.rs deleted file mode 100644 index 7749e58..0000000 --- a/functional/src/main.rs +++ /dev/null @@ -1,188 +0,0 @@ -//use std::thread; -//use std::time::Duration; -// -//struct Cacher -// where T: Fn(u32) -> u32 -//{ -// calculation: T, -// value: Option, -//} -// -//impl Cacher -// where T: Fn(u32) -> u32 -//{ -// fn new (calculation: T) -> Cacher { -// Cacher { -// calculation, -// value: None, -// } -// } -// -// fn value(&mut self, arg: u32) -> u32 { -// match self.value { -// Some(v) => v, -// None => { -// let v = (self.calculation)(arg); -// self.value = Some(v); -// v -// }, -// } -// } -//} -// -//fn main() { -// let simulated_user_specified_value = 26; -// let simulated_random_number = 3; -// -// generate_workout( -// simulated_user_specified_value, -// simulated_random_number -// ); -//} -// -//fn generate_workout(intensity: u32, random_number: u32) { -// let mut expensive_result = Cacher::new(|num| { -// println!("calculating slowly..."); -// thread::sleep(Duration::from_secs(2)); -// num -// }); -// -// if intensity < 25 { -// println!( -// "Today, do {} pushups!", -// expensive_result.value(intensity) -// ); -// println!( -// "Next, do {} situps!", -// expensive_result.value(intensity) -// ); -// } -// else { -// if random_number == 3 { -// println!("Take a break today! Remember to stay hydrated!"); -// } -// else { -// println!( -// "Today, run for {} minutes!", -// expensive_result.value(intensity) -// ); -// } -// } -//} -// - - - - -fn main() { - let v1 = vec![1, 2, 3]; - let v1_iter = v1.iter(); - - for val in v1_iter { - dbg!(val); - } -} - -#[test] -fn iterator_demonstration() { - let v1 = vec![1, 2, 3]; - let mut v1_iter = v1.iter(); - - assert_eq!(v1_iter.next(), Some(&1)); - assert_eq!(v1_iter.next(), Some(&2)); - assert_eq!(v1_iter.next(), Some(&3)); - assert_eq!(v1_iter.next(), None); -} - -#[test] -fn iterator_sum() { - let v1 = vec![1, 2, 3]; - let v1_iter = v1.iter(); - let total: i32 = v1_iter.sum(); - assert_eq!(total, 6); -} - -#[test] -fn iterator_map() { - let v1: Vec = vec![1, 2, 3]; - let v2: Vec<_> = v1.iter().map(|x| x + 1).collect(); - assert_eq!(v2, vec![2, 3, 4]); -} - - - -#[derive(PartialEq, Debug)] -struct Shoe { - size: i32, - style: String, -} - -fn shoes_in_my_size(shoes: Vec, shoe_size: i32) -> Vec { - shoes.into_iter() - .filter(|s| s.size == shoe_size) - .collect() -} - -#[test] -fn filters_by_size() { - let shoes = vec![ - Shoe { size: 10, style: String::from("sneaker") }, - Shoe { size: 10, style: String::from("boot") }, - Shoe { size: 13, style: String::from("sandal") }, - ]; - - let in_my_size = shoes_in_my_size(shoes, 10); - - assert_eq!( - in_my_size, - vec![ - Shoe { size: 10, style: String::from("sneaker") }, - Shoe { size: 10, style: String::from("boot") }, - ] - ); -} - -struct Counter { - count: u32, -} - -impl Counter { - fn new() -> Counter { - Counter { count: 0 } - } -} - -impl Iterator for Counter { - type Item = u32; - - fn next(&mut self) -> Option { - self.count += 1; - - if self.count < 6 { - Some(self.count) - } - else { - None - } - } -} - -#[test] -fn calling_next_directly() { - let mut counter = Counter::new(); - assert_eq!(counter.next(), Some(1)); - assert_eq!(counter.next(), Some(2)); - assert_eq!(counter.next(), Some(3)); - assert_eq!(counter.next(), Some(4)); - assert_eq!(counter.next(), Some(5)); - assert_eq!(counter.next(), None); -} - -#[test] -fn using_other_iterator_trait_methods() { - let sum: u32 = Counter::new().zip(Counter::new().skip(1)) - .map(|(a, b)| a * b) - .filter(|x| x % 3 == 0) - .sum(); - assert_eq!(18, sum); -} diff --git a/functions/Cargo.lock b/functions/Cargo.lock deleted file mode 100755 index 89a654d..0000000 --- a/functions/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "functions" -version = "0.1.0" - diff --git a/functions/Cargo.toml b/functions/Cargo.toml deleted file mode 100755 index 656b779..0000000 --- a/functions/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "functions" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/functions/src/main.rs b/functions/src/main.rs deleted file mode 100755 index 43284ff..0000000 --- a/functions/src/main.rs +++ /dev/null @@ -1,10 +0,0 @@ -fn main() { - let x = plus_one(5); - - println!("The value of x is {}", x); -} - -fn plus_one(x: i32) -> i32 { - x + 1 -} - diff --git a/generics/Cargo.lock b/generics/Cargo.lock deleted file mode 100644 index 3ddbc8c..0000000 --- a/generics/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "generics" -version = "0.1.0" - diff --git a/generics/Cargo.toml b/generics/Cargo.toml deleted file mode 100644 index 5529f73..0000000 --- a/generics/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "generics" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/generics/src/main.rs b/generics/src/main.rs deleted file mode 100644 index e41d6f5..0000000 --- a/generics/src/main.rs +++ /dev/null @@ -1,68 +0,0 @@ -//struct Point { -// x: T, -// y: U, -//} - -//impl Point { -// fn x(&self) -> &T { -// &self.x -// } -// -// fn y(&self) -> &T { -// &self.y -// } - -// fn mixup(self, other: Point) -> Point { -// Point { -// x: self.x, -// y: other.y, -// } -// } -//} - -fn largest(list: &[T]) -> T { - let mut largest = list[0]; - - for &item in list.iter() { - - if item > largest { - largest = item; - } - - } - - largest -} - -//enum Option_i32 { -// Some(i32), -// None, -//} -// -//enum Option_f64 { -// Some(f64), -// None, -//} - -fn main() { - let number_list = vec![34, 50, 25, 100, 65]; - dbg!(largest(&number_list)); - let char_list = vec!['h', 'e', 'l', 'l', 'o']; - dbg!(largest(&char_list)); -// let integer = Point { x: 5, y: 10 }; -// let float = Point { x: 5.0, y: 10.0 }; - -// let p = Point { x: 5.0, y: 10.5 }; -// dbg!(p.x()); -// dbg!(p.y()); - -// let p1 = Point { x: 5, y: 10.4 }; -// let p2 = Point { x: "Hello", y: 'c' }; -// let p3 = p1.mixup(p2); -// -// dbg!(p3.x); -// dbg!(p3.y); - -// let integer = Option_i32::Some(5); -// let float = Option_f64::Some(5.0); -} diff --git a/guessing-game/Cargo.lock b/guessing-game/Cargo.lock deleted file mode 100755 index c25e3df..0000000 --- a/guessing-game/Cargo.lock +++ /dev/null @@ -1,80 +0,0 @@ -[[package]] -name = "bitflags" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "fuchsia-zircon" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", - "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "fuchsia-zircon-sys" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "guessing-game" -version = "0.1.0" -dependencies = [ - "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "libc" -version = "0.2.45" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "rand" -version = "0.3.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "rand" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "winapi" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[metadata] -"checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12" -"checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" -"checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" -"checksum libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)" = "2d2857ec59fadc0773853c664d2d18e7198e83883e7060b63c924cb077bd5c74" -"checksum rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)" = "15a732abf9d20f0ad8eeb6f909bf6868722d9a06e1e50802b6a70351f40b4eb1" -"checksum rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "8356f47b32624fef5b3301c1be97e5944ecdd595409cc5da11d05f211db6cfbd" -"checksum winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "92c1eb33641e276cfa214a0522acad57be5c56b10cb348b3c5117db75f3ac4b0" -"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" -"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/guessing-game/Cargo.toml b/guessing-game/Cargo.toml deleted file mode 100755 index 08e8e30..0000000 --- a/guessing-game/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "guessing-game" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" -description = "A fun game where you guess what number the computer has chosen." -license = "MIT OR Apache-2.0" - -[dependencies] -rand = "0.3.14" diff --git a/guessing-game/src/main.rs b/guessing-game/src/main.rs deleted file mode 100755 index 38dd28d..0000000 --- a/guessing-game/src/main.rs +++ /dev/null @@ -1,36 +0,0 @@ -use std::io; -use std::cmp::Ordering; -use rand::Rng; - -fn main() { - println!("Guess the number!"); - - let secret_number = rand::thread_rng().gen_range(1, 101); - //println!("The secret number is: {}", secret_number); - - loop { - println!("Enter a guess."); - - let mut guess = String::new(); - - io::stdin().read_line(&mut guess) - .expect("Failed to read line."); - - let guess: u32 = match guess.trim().parse() { - Ok(num) => num, - Err(_) => continue, - }; - - println!("You guessed: {}", guess); - - match guess.cmp(&secret_number) { - Ordering::Less => println!("Too small!"), - Ordering::Greater => println!("Too big!"), - Ordering::Equal => { - println!("You win!"); - break; - } - } - } - -} diff --git a/hello_server/404.html b/hello_server/404.html deleted file mode 100644 index b106938..0000000 --- a/hello_server/404.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - Hello! - - - -

- Oops! -

-

- Sorry, Idk what you're asking for. -

- - - diff --git a/hello_server/Cargo.lock b/hello_server/Cargo.lock deleted file mode 100644 index 738010c..0000000 --- a/hello_server/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "hello_server" -version = "0.1.0" - diff --git a/hello_server/Cargo.toml b/hello_server/Cargo.toml deleted file mode 100644 index 39057cc..0000000 --- a/hello_server/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "hello_server" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/hello_server/hello.html b/hello_server/hello.html deleted file mode 100644 index 869c8f9..0000000 --- a/hello_server/hello.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Hello! - - - -

- Hello! -

-

- Hi from Rust -

- - - diff --git a/hello_server/src/bin/main.rs b/hello_server/src/bin/main.rs deleted file mode 100644 index bcf1e46..0000000 --- a/hello_server/src/bin/main.rs +++ /dev/null @@ -1,46 +0,0 @@ -use hello_server::ThreadPool; -use std::thread; -use std::time::Duration; -use std::io::prelude::*; -use std::fs; -use std::net::TcpStream; -use std::net::TcpListener; - -fn main() { - let listener = TcpListener::bind("127.0.0.1:7878").unwrap(); - let pool = ThreadPool::new(4).unwrap(); - - for stream in listener.incoming().take(2) { - let stream = stream.unwrap(); - - pool.execute(|| { - handle_connection(stream); - }); - } - - println!("shutting down..."); - -} - -fn handle_connection(mut stream: TcpStream) { - let mut buffer = [0; 512]; - stream.read(&mut buffer).unwrap(); - let get = b"GET / HTTP/1.1\r\n"; - let sleep = b"GET /sleep HTTP/1.1\r\n"; - - let (status_line, filename) = if buffer.starts_with(get) { - ("HTTP/1.1 200 OK\r\n\r\n", "hello.html") - } - else if buffer.starts_with(sleep) { - thread::sleep(Duration::from_secs(5)); - ("HTTP/1.1 200 OK\r\n\r\n", "hello.html") - } - else { - ("HTTP/1.1 404 NOT FOUND\r\n\r\n", "404.html") - }; - - let contents = fs::read_to_string(filename).unwrap(); - let response = format!("{}{}", status_line, contents); - stream.write(response.as_bytes()).unwrap(); - stream.flush().unwrap(); -} diff --git a/hello_server/src/lib.rs b/hello_server/src/lib.rs deleted file mode 100644 index cd1f616..0000000 --- a/hello_server/src/lib.rs +++ /dev/null @@ -1,117 +0,0 @@ -use std::sync::Arc; -use std::sync::Mutex; -use std::sync::mpsc; -use std::thread; - -enum Message { - NewJob(Job), - Terminate, -} - -trait FnBox { - fn call_box(self: Box); -} - -impl FnBox for F { - fn call_box(self: Box) { - (*self)() - } -} - -type Job = Box; - -pub struct ThreadPool { - workers: Vec, - sender: mpsc::Sender, -} - -impl ThreadPool { - pub fn new(size: usize) -> Result { - if size <= 0 { - return Err("failed to create pool"); - } - - let (sender, receiver) = mpsc::channel(); - - let receiver = Arc::new(Mutex::new(receiver)); - - let mut workers = Vec::with_capacity(size); - - for id in 0..size { - workers.push(Worker::new(id, Arc::clone(&receiver))?); - } - - Ok(ThreadPool { - workers, - sender, - }) - } - - pub fn spawn(f: F) -> thread::JoinHandle - where - F: FnOnce() -> T + Send + 'static, - T: Send + 'static - { - thread::spawn(f) - } - - pub fn execute(&self, f: F) - where - F: FnOnce() + Send + 'static - { - let job = Box::new(f); - self.sender.send(Message::NewJob(job)).unwrap(); - } - -} - -impl Drop for ThreadPool { - fn drop(&mut self) { - for _ in &mut self.workers { - self.sender.send(Message::Terminate).unwrap(); - } - - println!("shutting down all workers..."); - - for worker in &mut self.workers { - println!("shutting down worker {}", worker.id); - - if let Some(thread) = worker.thread.take() { - thread.join().unwrap(); - } - } - } -} - -struct Worker { - id: usize, - thread: Option>, -} - -impl Worker { - pub fn new(id: usize, receiver: Arc>>) - -> Result - { - let thread = thread::spawn(move || { - loop { - let message = receiver.lock().unwrap().recv().unwrap(); - - match message { - Message::NewJob(job) => { - println!("worker {} got job, executing...", id); - job.call_box(); - }, - Message::Terminate => { - println!("worker {} was told to terminate...", id); - break; - }, - } - } - }); - - Ok(Worker { - id, - thread: Some(thread), - }) - } -} diff --git a/hello_world/hello_cargo/Cargo.lock b/hello_world/hello_cargo/Cargo.lock deleted file mode 100755 index bd8a836..0000000 --- a/hello_world/hello_cargo/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "hello_cargo" -version = "0.1.0" - diff --git a/hello_world/hello_cargo/Cargo.toml b/hello_world/hello_cargo/Cargo.toml deleted file mode 100755 index 61d091a..0000000 --- a/hello_world/hello_cargo/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "hello_cargo" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/hello_world/hello_cargo/src/main.rs b/hello_world/hello_cargo/src/main.rs deleted file mode 100755 index e7a11a9..0000000 --- a/hello_world/hello_cargo/src/main.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("Hello, world!"); -} diff --git a/hello_world/main.exe b/hello_world/main.exe deleted file mode 100755 index 8bb285b..0000000 Binary files a/hello_world/main.exe and /dev/null differ diff --git a/hello_world/main.rs b/hello_world/main.rs deleted file mode 100755 index 3d46bbe..0000000 --- a/hello_world/main.rs +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - println!("hello world!"); -} - diff --git a/horcrux/Cargo.toml b/horcrux/Cargo.toml deleted file mode 100755 index f6996ac..0000000 --- a/horcrux/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "horcrux" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/horcrux/src/main.rs b/horcrux/src/main.rs deleted file mode 100755 index e7a11a9..0000000 --- a/horcrux/src/main.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("Hello, world!"); -} diff --git a/lifetimes/Cargo.lock b/lifetimes/Cargo.lock deleted file mode 100644 index 0c2507e..0000000 --- a/lifetimes/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "lifetimes" -version = "0.1.0" - diff --git a/lifetimes/Cargo.toml b/lifetimes/Cargo.toml deleted file mode 100644 index 8003864..0000000 --- a/lifetimes/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "lifetimes" -version = "0.1.0" -authors = ["53hornet <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/lifetimes/src/main.rs b/lifetimes/src/main.rs deleted file mode 100644 index 87b6ce6..0000000 --- a/lifetimes/src/main.rs +++ /dev/null @@ -1,43 +0,0 @@ -fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { - // what this is doing is basically tagging x and y and the - // result with the same 'a, telling rust not to let any - // of them expire before the others; that way nothing - // will go out of scope prematurely and the result will - // always have a non-null reference - - // basically, 'a gives all three values the same lifetime. - // so long as they're all alive at the same time, there are - // no reference errors - - // note that the lifetime selected for the result is - // equal to the smaller of the lifetimes of the - // parameters - - if x.len() > y.len() { - x - } - else { - y - } -} - -struct ImportantExcerpt<'a> { - part: &'a str, -} - -fn main() { - let string1 = String::from("abcd"); - { - let string2 = "xyz"; - - let result = longest(string1.as_str(), string2); - //dbg!(result); - } - - let script = String::from("Before time began, there was the cube. We know not where it comes from."); - let first_sentence = script.split('.') - .next() - .expect("Could not find a '.'"); - let i = ImportantExcerpt { part: first_sentence }; - dbg!(i.part); -} diff --git a/mathsssss/Cargo.lock b/mathsssss/Cargo.lock deleted file mode 100644 index 7ef6f32..0000000 --- a/mathsssss/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "mathsssss" -version = "0.1.0" - diff --git a/mathsssss/Cargo.toml b/mathsssss/Cargo.toml deleted file mode 100644 index 201c096..0000000 --- a/mathsssss/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "mathsssss" -version = "0.1.0" -authors = ["Adam Carpenter "] -edition = "2018" - -[dependencies] diff --git a/mathsssss/src/main.rs b/mathsssss/src/main.rs deleted file mode 100644 index 991590b..0000000 --- a/mathsssss/src/main.rs +++ /dev/null @@ -1,61 +0,0 @@ -use std::env; -use std::collections::HashMap; - -fn calc_mean(numbers: &Vec) -> f32 { - let sum: i32 = numbers.iter().sum(); - sum as f32 / numbers.len() as f32 -} - -fn calc_median(numbers: &Vec) -> i32 { - numbers[numbers.len() / 2] -} - -fn calc_mode(numbers: &Vec) -> i32 { - let mut counts: HashMap = HashMap::new(); - - for each in numbers { - let count = counts.entry(*each).or_insert(0); - *count += 1; - } - - let mut most: i32 = 0; - let mut result: i32 = 0; - - for (key, val) in counts.iter() { - - if val > &most { - most = *val; - result = *key; - } - } - - if most <= 1 { - 0 - } - else { - result - } - -} - -fn main() { - // grab numbers - let mut numbers: Vec = Vec::new(); - - for arg in env::args().skip(1) { - let number: i32 = arg.trim().parse() - .expect("error: could not parse arg"); - numbers.push(number); - } - - // sort list (mostly for median) - numbers.sort_by(|a, b| a.partial_cmp(b).unwrap()); - - // calculate and print results - let mean: f32 = calc_mean(&numbers); - println!("mean: {}", mean); - let median: i32 = calc_median(&numbers); - println!("median: {}", median); - let mode: i32 = calc_mode(&numbers); - println!("mode: {}", mode); -} diff --git a/meap/ch1/Cargo.lock b/meap/ch1/Cargo.lock new file mode 100644 index 0000000..d9d119e --- /dev/null +++ b/meap/ch1/Cargo.lock @@ -0,0 +1,4 @@ +[[package]] +name = "ch1" +version = "0.1.0" + diff --git a/meap/ch1/Cargo.toml b/meap/ch1/Cargo.toml new file mode 100644 index 0000000..b8034fe --- /dev/null +++ b/meap/ch1/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "ch1" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] diff --git a/meap/ch1/src/main.rs b/meap/ch1/src/main.rs new file mode 100644 index 0000000..cbeadc4 --- /dev/null +++ b/meap/ch1/src/main.rs @@ -0,0 +1,28 @@ +//use std::rc::Rc; +//use std::sync::{Arc, Mutex}; + +fn main() { +// let a = 10; +// +// if a == 10 { +// println!("a eq ten"); +// } + + +// let a = 10; // stack +// let b = Box::new(10); // heap +// let c = Rc::new(10); // heap, reference count +// let d = Arc::new(Mutex::new(10)); // mutex lock, atomic reference counter +// println!("{} {} {} {:?}", a, b, c, d); + + + let english = "Hello, world!"; + let german = "Grüß Gott!"; + let japanese = "ハロー・ワール"; + let languages = [english, german, japanese]; + + for language in languages.iter() { + println!("{}", language); + } +} + diff --git a/meap/ch2/Cargo.lock b/meap/ch2/Cargo.lock new file mode 100644 index 0000000..4ebdd46 --- /dev/null +++ b/meap/ch2/Cargo.lock @@ -0,0 +1,195 @@ +[[package]] +name = "aho-corasick" +version = "0.6.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "ansi_term" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "atty" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)", + "termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "bitflags" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "ch2" +version = "0.1.0" +dependencies = [ + "clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "clap" +version = "2.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", + "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", + "strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "textwrap 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "lazy_static" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "libc" +version = "0.2.50" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "memchr" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "redox_syscall" +version = "0.1.51" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "redox_termios" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "regex" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "aho-corasick 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)", + "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "regex-syntax 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "utf8-ranges 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "regex-syntax" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "ucd-util 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "strsim" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "termion" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)", + "redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)", + "redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "textwrap" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "thread_local" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "ucd-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "unicode-width" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "utf8-ranges" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "vec_map" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[metadata] +"checksum aho-corasick 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)" = "81ce3d38065e618af2d7b77e10c5ad9a069859b4be3c2250f674af3840d9c8a5" +"checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" +"checksum atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "9a7d5b8723950951411ee34d271d99dddcc2035a16ab25310ea2c8cfd4369652" +"checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12" +"checksum clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b957d88f4b6a63b9d70d5f454ac8011819c6efa7727858f458ab71c756ce2d3e" +"checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14" +"checksum libc 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)" = "aab692d7759f5cd8c859e169db98ae5b52c924add2af5fbbca11d12fefb567c1" +"checksum memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2efc7bc57c883d4a4d6e3246905283d8dae951bb3bd32f49d6ef297f546e1c39" +"checksum redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)" = "423e376fffca3dfa06c9e9790a9ccd282fafb3cc6e6397d01dbf64f9bacc6b85" +"checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" +"checksum regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "9329abc99e39129fcceabd24cf5d85b4671ef7c29c50e972bc5afe32438ec384" +"checksum regex-syntax 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7d707a4fa2637f2dca2ef9fd02225ec7661fe01a53623c1e6515b6916511f7a7" +"checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550" +"checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" +"checksum textwrap 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "307686869c93e71f94da64286f9a9524c0f308a9e1c87a583de8e9c9039ad3f6" +"checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b" +"checksum ucd-util 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "535c204ee4d8434478593480b8f86ab45ec9aae0e83c568ca81abf0fd0e88f86" +"checksum unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "882386231c45df4700b275c7ff55b6f3698780a650026380e72dabe76fa46526" +"checksum utf8-ranges 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "796f7e48bef87609f7ade7e06495a87d5cd06c7866e6a5cbfceffc558a243737" +"checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a" +"checksum winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "92c1eb33641e276cfa214a0522acad57be5c56b10cb348b3c5117db75f3ac4b0" +"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/meap/ch2/Cargo.toml b/meap/ch2/Cargo.toml new file mode 100644 index 0000000..94dc2f4 --- /dev/null +++ b/meap/ch2/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "ch2" +version = "0.1.0" +authors = ["Adam Carpenter <53hornet@gmail.com>"] +edition = "2018" + +[dependencies] +regex = "0.2.2" +clap = "2.24.2" + diff --git a/meap/ch2/src/main.rs b/meap/ch2/src/main.rs new file mode 100644 index 0000000..055ec1c --- /dev/null +++ b/meap/ch2/src/main.rs @@ -0,0 +1,100 @@ +extern crate regex; +extern crate clap; + +use regex::Regex; +use clap::{App, Arg}; +//use std::ops::{Add}; + +fn main() { +// let a = 10; +// let b: i32 = 20; +// +// let c = add(a, b); +// println!("a + b = {}", c); + + +// let twenty = 20; +// let twenty_one: i32 = twenty + 1; +// let floats_okay = 21.0; +// let million = 1_000_000; +// +// println!("{} {} {} {}", twenty, twenty_one, floats_okay, million); +// +// let three = 0b11; +// let thirty = 0o36; +// let three_hundred = 0x12c; +// +// println!("{} {} {}", three, thirty, three_hundred); +// println!("{:b} {:b} {:b}", three, thirty, three_hundred); +// println!("{:o} {:o} {:o}", three, thirty, three_hundred); +// println!("{:x} {:x} {:x}", three, thirty, three_hundred); + + +// //let needle = 42; +// let haystack = [1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862]; +// +// for reference in haystack.iter() { +// let item = *reference; +// +// //if item == needle { +// // println!("{}", item); +// //} +// +// //if reference == &needle { +// // println!("{}", reference); +// //} +// +// let result = match item { +// 42 | 132 => "hit", +// _ => "miss", +// }; +// +// println!("{}", result); +// } + + + // let (a, b) = (1.2, 3.4); + // let (x, y) = (10, 20); + + // let c = add(a, b); + // let z = add(x, y); + + // println!("{} {}", c, z); + + + let args = App::new("ch2") + .version("0.1") + .about("searches for patterns") + .arg(Arg::with_name("pattern") + .help("the pattern to search for") + .takes_value(true) + .required(true)) + .get_matches(); + + let pattern = args.value_of("pattern").unwrap(); + let re = Regex::new(pattern).unwrap(); + let quote = "Every face, every shop, bedroom window, public-house, \ + and\ndark square is a picture feverishly turned--in search \ + of what?\nIt is the same with books. What do we seek through \ + millions of pages?"; + + for (index, line) in quote.lines().enumerate() { + match re.find(line) { + Some(_) => print!("-> "), + None => print!(" "), + }; + + let line_num = index + 1; + println!("{}: {}", line_num, line); + } + +} + +//fn add>(i: T, j: T) -> T { +// i + j +//} + + +//fn add(i: i32, j: i32) -> i32 { +// i + j +//} diff --git a/meap/meap-code/ch1/ch1-animals-specialization.rs b/meap/meap-code/ch1/ch1-animals-specialization.rs new file mode 100644 index 0000000..49fc0eb --- /dev/null +++ b/meap/meap-code/ch1/ch1-animals-specialization.rs @@ -0,0 +1,47 @@ +struct Animal { + age: i32, +} + +type Cat = Animal; +type Dog = Animal; +type LoudDog = Dog; + +trait Talk { + fn talk(&self) -> (); +} + +impl Talk for Animal { + default fn talk(&self) { // note the use of the default + println!(""); + } +} + +impl Talk for Cat { + fn talk(&self) { + println!("Meow"); + } +} + +impl Talk for Dog { + fn talk(&self) { + println!("Woof!"); + } +} + +impl Talk for LoudDog { + fn talk(&self) { + println!("WOOF!!"); + } +} + + + +fn main() { + let fluffy = Cat(Animal { age: 4 }); + let max = Dog(Animal { age: 2 }); + let neighbours_dog = LoudDog(Animal { age: 7 }); + + fluffy.talk(); + max.talk(); + neighbours_dog.talk(); +} diff --git a/meap/meap-code/ch1/ch1-animals-tuple-structs.rs b/meap/meap-code/ch1/ch1-animals-tuple-structs.rs new file mode 100644 index 0000000..ed479ed --- /dev/null +++ b/meap/meap-code/ch1/ch1-animals-tuple-structs.rs @@ -0,0 +1,41 @@ +struct Animal { + age: i32, +} + +struct Cat(Animal); +struct Dog(Animal); +struct LoudDog(Animal); + +trait Talk { + fn talk(&self) -> (); +} + +impl Talk for Cat { + fn talk(&self) { + println!("Meow"); + } +} + +impl Talk for Dog { + fn talk(&self) { + println!("Woof!"); + } +} + +impl Talk for LoudDog { + fn talk(&self) { + println!("WOOF!!"); + } +} + + + +fn main() { + let fluffy = Cat(Animal { age: 4 }); + let max = Dog(Animal { age: 2 }); + let neighbours_dog = LoudDog(Animal { age: 7 }); + + fluffy.talk(); + max.talk(); + neighbours_dog.talk(); +} diff --git a/meap/meap-code/ch1/ch1-animals.rs b/meap/meap-code/ch1/ch1-animals.rs new file mode 100644 index 0000000..ed479ed --- /dev/null +++ b/meap/meap-code/ch1/ch1-animals.rs @@ -0,0 +1,41 @@ +struct Animal { + age: i32, +} + +struct Cat(Animal); +struct Dog(Animal); +struct LoudDog(Animal); + +trait Talk { + fn talk(&self) -> (); +} + +impl Talk for Cat { + fn talk(&self) { + println!("Meow"); + } +} + +impl Talk for Dog { + fn talk(&self) { + println!("Woof!"); + } +} + +impl Talk for LoudDog { + fn talk(&self) { + println!("WOOF!!"); + } +} + + + +fn main() { + let fluffy = Cat(Animal { age: 4 }); + let max = Dog(Animal { age: 2 }); + let neighbours_dog = LoudDog(Animal { age: 7 }); + + fluffy.talk(); + max.talk(); + neighbours_dog.talk(); +} diff --git a/meap/meap-code/ch1/ch1-escape-html.rs b/meap/meap-code/ch1/ch1-escape-html.rs new file mode 100644 index 0000000..7b61232 --- /dev/null +++ b/meap/meap-code/ch1/ch1-escape-html.rs @@ -0,0 +1,22 @@ +fn escape_html(maybe_html: &str) -> String { + let mut out = String::with_capacity(maybe_html.len()); + + for c in maybe_html.chars() { + match c { + '<' => out.push_str("<"), + '>' => out.push_str(">"), + '&' => out.push_str("&"), + '\'' => out.push_str("'"), + '"' => out.push_str("""), + _ => out.push(c), + }; + } + + out +} + +fn main() { + let html = "

\"Hello, World!\"

"; + let escaped_html = escape_html(html); + println!("{}", escaped_html); +} diff --git a/meap/meap-code/ch1/ch1-hashmap-hashset.rs b/meap/meap-code/ch1/ch1-hashmap-hashset.rs new file mode 100644 index 0000000..1fa9229 --- /dev/null +++ b/meap/meap-code/ch1/ch1-hashmap-hashset.rs @@ -0,0 +1,33 @@ +use std::collections::{HashMap, HashSet}; + +fn main() { + + let input_text = "does this work + i dont know + how rust works"; + + let mut character_counts = HashMap::new(); + + let mut n_lines = 0u32; + + for l in input_text.lines() { + n_lines = n_lines + 1; + + let mut chars_for_line = HashSet::new(); + + for c in l.chars() { + if chars_for_line.contains(&c) { + continue + } + let c_count = character_counts.entry(c).or_insert(0u32); + *c_count += 1; + chars_for_line.insert(c); + } + } + + for (c, c_count) in &character_counts { + if *c_count == n_lines { + println!("{}", c); + } + } +} diff --git a/meap/meap-code/ch1/ch1-hello2.rs b/meap/meap-code/ch1/ch1-hello2.rs new file mode 100644 index 0000000..c804513 --- /dev/null +++ b/meap/meap-code/ch1/ch1-hello2.rs @@ -0,0 +1,16 @@ +fn greet_world() { + println!("Hello, world!"); // our old friend. + + let southern_germany = "Grüß Gott!"; + let japan = "ハロー・ワールド"; + + let regions = [southern_germany, japan]; + + for region in regions.iter() { + println!("{}", ®ion); + } +} + +fn main() { + greet_world(); +} \ No newline at end of file diff --git a/meap/meap-code/ch1/ch1-save-user-data.rs b/meap/meap-code/ch1/ch1-save-user-data.rs new file mode 100644 index 0000000..48f8130 --- /dev/null +++ b/meap/meap-code/ch1/ch1-save-user-data.rs @@ -0,0 +1,32 @@ +use std::str; + +#[derive(Debug)] +struct User { + id: u8, + secret: String, +} + +fn store_secrets(user: &User, buffer: &mut[u8]) { + let _secret = user.secret.clone(); + + + // assume we're writing to a database + println!("{:?}: {}", user, str::from_utf8(&buffer).unwrap()); +} + +fn main() { + let buffer = &mut[0u8; 1024]; + let u1 = User { + id: 1, + secret: String::from("Pa55w0rd!"), + }; + let u2 = User { + id: 2, + secret: String::from("correct horse battery staple"), + }; + + store_secrets(&u1, buffer); + store_secrets(&u2, buffer); + + +} \ No newline at end of file diff --git a/meap/meap-code/ch1/ch1-time-api/Cargo.toml b/meap/meap-code/ch1/ch1-time-api/Cargo.toml new file mode 100644 index 0000000..da28bde --- /dev/null +++ b/meap/meap-code/ch1/ch1-time-api/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "ch1-time-api" +version = "0.1.0" +authors = ["Tim McNamara "] + +[dependencies] +chrono = "0.4.0" +rocket = "0.3.0" +rocket_codegen = "0.3.0" +serde = "1.0" +serde_derive = "1.0" + +[dependencies.rocket_contrib] +version = "0.3.0" +default-features = false +features = ["json"] \ No newline at end of file diff --git a/meap/meap-code/ch1/ch1-time-api/src/main.rs b/meap/meap-code/ch1/ch1-time-api/src/main.rs new file mode 100644 index 0000000..660c1cc --- /dev/null +++ b/meap/meap-code/ch1/ch1-time-api/src/main.rs @@ -0,0 +1,36 @@ +#![feature(plugin)] // <1> +#![plugin(rocket_codegen)] // <1> + +extern crate serde; // <2> +extern crate chrono; // <2> +extern crate rocket; // <2> +extern crate rocket_contrib; // <2> + +#[macro_use] // <3> Syntax to indicate that we want to import macros from another module +extern crate serde_derive; // <3> + +use chrono::prelude::*; // <4> brings all exported members into local scope (e.g. DateTime and Utc) +use rocket_contrib::{Json}; // <5> bring single member into local scope + +#[derive(Serialize)] // <6> Automatically generate a string representation of this struct (which will be used as JSON) +struct Timestamp { // <7> Syntax to create a custom type + time: String, // <8> The `Timestamp` `time` field is of type `String` +} + +#[get("/")] // <9> Custom syntax provided by the library that indicates to code generation +fn index() -> &'static str { // <10> Define a function with no arguments and its return type + "Hello, world!" // <11> Rust returns the result of the final expression +} + +#[get("/time")] +fn time_now() -> Json { + let now: DateTime = Utc::now(); + let timestamp = Timestamp { time: now.to_rfc3339() }; + Json(timestamp) +} + +fn main() { + rocket::ignite() + .mount("/", routes![index, time_now]) + .launch(); +} \ No newline at end of file diff --git a/meap/meap-code/ch1/ch1-word-counts.rs b/meap/meap-code/ch1/ch1-word-counts.rs new file mode 100644 index 0000000..fc5c8ea --- /dev/null +++ b/meap/meap-code/ch1/ch1-word-counts.rs @@ -0,0 +1,16 @@ +use std::collections::HashMap; + +fn main() { + let text = "once upon a time ..."; + let mut word_counts = HashMap::new(); + + let pairs = text.split(" ") + .map(|x| { (x, 1) }); + + for (word, count) in pairs { + let tmp = word_counts.entry(word) + .or_insert(0); + *tmp += count; + } + println!("{:?}", word_counts); +} diff --git a/meap/meap-code/ch10/Vagrantfile b/meap/meap-code/ch10/Vagrantfile new file mode 100644 index 0000000..b306dd1 --- /dev/null +++ b/meap/meap-code/ch10/Vagrantfile @@ -0,0 +1,29 @@ +VAGRANTFILE_VERSION = "2" + +$provision_external = <