Giter VIP home page Giter VIP logo

rust_practices's Introduction

Rust Practices

1. Rust Blogs

一文讲透Rust中的PartialEq和Eq_Leigg原创


2. Rust projects

2.1 Simple Shell

实现一个基本的shell,具备如下功能:

  • 读取键盘输入,给出对应输出
  • 分号隔开多条命令
  • 命令Tab补齐、文件名补齐、- 上下键查看输入历史;(找不到合适的监听键盘输入的库)
  • cd、ls、pwd等一些简单命令
  • 显示/切换工作目录

演示:

lei@WilldeMacBook-Pro simpleshell % cargo run
Welcome to simpleshell-rs.
simpleshell >ls
Cargo.lock      Cargo.toml      src             target
simpleshell >pwd
/Users/lei/Desktop/Rust/rust_practices/simpleshell
simpleshell >cd ..
rust_practices >cd sim  
cd: No such file or directory (os error 2): sim
rust_practices >cd simpleshell
simpleshell >exit
lei@WilldeMacBook-Pro simpleshell %

rust_practices's People

Contributors

chasespace avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.