v0.0.0: init project template
This commit is contained in:
		
						commit
						67f288c561
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
/target
 | 
			
		||||
**/*.rs.bk
 | 
			
		||||
							
								
								
									
										6
									
								
								Cargo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								Cargo.toml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
[package]
 | 
			
		||||
name = "grep"
 | 
			
		||||
version = "0.1.0"
 | 
			
		||||
authors = ["AJ ONeal <coolaj86@gmail.com>"]
 | 
			
		||||
 | 
			
		||||
[dependencies]
 | 
			
		||||
							
								
								
									
										34
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,34 @@
 | 
			
		||||
grep.rs
 | 
			
		||||
=======
 | 
			
		||||
 | 
			
		||||
This is my personal exploration of the sample grep project in Chapter 12 of "The Rust Book".
 | 
			
		||||
 | 
			
		||||
Install Rust
 | 
			
		||||
------------
 | 
			
		||||
 | 
			
		||||
To run this project you first need to install rust:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
curl https://sh.rustup.rs -sSf | sh
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
If you already have rust installed you can update it to the latest version like so:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
restup update
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Install grep.rs
 | 
			
		||||
---------------
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
git clone https://git.coolaj86.com/coolaj86/grep.rs
 | 
			
		||||
pushd rust.rs/
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
History
 | 
			
		||||
-------
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
cargo init --bin --name grep
 | 
			
		||||
```
 | 
			
		||||
							
								
								
									
										3
									
								
								src/main.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/main.rs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
fn main() {
 | 
			
		||||
    println!("Hello, world!");
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user