RV32/64 特权架构
trait
模块和属性
Rust有两个与模块 (module) 系统相关的独特术语:crate和module,
其中包装箱 (crate) 与其它语言中的 libary 或者 package 作用一样。
每个包装箱都有一个隐藏的根模块,在根模块下可以定义一个子模块树,
其路径采用::作为分隔符。包装箱由条目 (item) 构成,多个条目通过模块组织在一起。
lab 1
加入#![no_std]后报错:
|
= note: the `riscv64gc-unknown-none-elf` target may not be installed
= help: consider downloading the target with `rustup target add riscv64gc-unknown-none-elf`
error: aborting due to previous error
和实验书报错不同