feat(wpcarro/rust): Create a sandbox for learning Rust
See README Change-Id: I007a4d5c3b840986f6d3bc93aaa72d26daaa9b12 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5895 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
This commit is contained in:
		
							parent
							
								
									d8ccb3b9e1
								
							
						
					
					
						commit
						95f302f95d
					
				
					 3 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								users/wpcarro/scratch/rust/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								users/wpcarro/scratch/rust/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | ||||||
|  | target/ | ||||||
							
								
								
									
										11
									
								
								users/wpcarro/scratch/rust/README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								users/wpcarro/scratch/rust/README.md
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | # Rust | ||||||
|  | 
 | ||||||
|  | Watch me fumble around as I learn Rust. | ||||||
|  | 
 | ||||||
|  | ## Usage | ||||||
|  | 
 | ||||||
|  | ```shell | ||||||
|  | $ nix-shell /depot -A users.wpcarro.scratch.rust | ||||||
|  | $ cargo new json && cd ./json | ||||||
|  | $ cargo run json | ||||||
|  | ``` | ||||||
							
								
								
									
										7
									
								
								users/wpcarro/scratch/rust/shell.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								users/wpcarro/scratch/rust/shell.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | ||||||
|  | { pkgs, ... }: | ||||||
|  | 
 | ||||||
|  | pkgs.mkShell { | ||||||
|  |   buildInputs = [ | ||||||
|  |     pkgs.cargo | ||||||
|  |   ]; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue