Skip to content

fanbyprinciple/rust_code_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Learning rust

Install rust from : https://www.rust-lang.org/tools/install

  1. Building an app with rust TODO-CLI

https://www.freecodecamp.org/news/how-to-build-a-to-do-app-with-rust/

cargo new todo-cli

To run a rust command

cargo run
(ash) PS D:\codeplay\rust_code_examples\todo-cli> cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
     Running `target\debug\todo-cli.exe`
Hello, world!

Our goal is to run an app on CLI.

(ash) PS D:\codeplay\rust_code_examples\todo-cli> cargo run -- hello world!
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target\debug\todo-cli.exe hello world!`
"hello", "world!"

About

Creating a repository for rust codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published