Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

weblfe/app_cli

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APPCLI

命令行 应用项目

rust 命令行 - 练手项目

基础

  1. 基础语法 (let,const,&str,String,if-else,fn,type, use,mod,pub,match)
  2. 常用数据结构 struct,HashMap,
  3. 常用宏,#[derive(Debug)],#[allow(unused)]

初中级

  1. 项目目录层级
  2. 模块

依赖库

[dependencies]
clap = { version = "3.2.17", features = ["derive"] }

宏展开 工具

# 宏展开工具与库安装
cargo +nightly install cargo-expand

# 展开
cargo expand --bin app_cli > app_cli.rs

About

rust cli app for study

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.