Skip to content

Commit

Permalink
pref: 合并来自 try-futrue 少量代码
Browse files Browse the repository at this point in the history
  • Loading branch information
conero committed Dec 26, 2022
1 parent cc04ccc commit 165c916
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
#resolver = "2"
members = [
"uymas/cli",
"uymas/*",
"cmd/uymas",
]

Expand Down
14 changes: 14 additions & 0 deletions doc/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
```shell
# 生成文档
cargo doc --open
# 生成全部文档
cargo doc --all-features --all

# 格式化
cargo fmt
Expand Down Expand Up @@ -53,6 +55,18 @@ cargo build --bin uymas --manifest-path .\cmd\uymas\Cargo.toml --release



### Learning

#### proc-macro

过程宏只能单独导出含宏的代码,不可出现其他的。

```
error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
```






Expand Down
2 changes: 1 addition & 1 deletion uymas/cli/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// 依赖库版本信息库
pub const VERSION: &'static str = "2.0.2";
/// 项目代码
pub const PROJECT: &'static str = "learn";
pub const PROJECT: &'static str = "uymas";

/// 命令行可注册命令
pub mod action;
Expand Down

0 comments on commit 165c916

Please sign in to comment.