Skip to content

Latest commit

 

History

History

substrate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

substrate 阅读记录:

阅读方法:

  • 有示例, 从示例入口开始阅读. 没有, 查看 test 代码.
  • 通过示例方式, 拆解框架.
  • 这是最高效的阅读方式

入口:

client/cli/commands/

异步 I/O 用法:

代码统计: 39w+ 行

-> % find . -name "*.rs" | xargs cat | grep -v ^$ | wc -l
  390329

源码目录结构说明:

根目录结构:

-> % tree substrate-monthly-2022-02 -L 1

substrate-monthly-2022-02
├── Cargo.lock
├── Cargo.toml
├── README.md
├── bin            // 命令行工具: 项目阅读入口
├── client         // 客户端
├── docker
├── docs
├── frame          // 框架
├── primitives
├── rustfmt.toml
├── shell.nix
├── test-utils
└── utils

8 directories, 5 files

bin 目录结构:

版本说明:

substrate reference:

官方文档:

生态:

notes: