Skip to content

Commit 0b19cf0

Browse files
committed
update
1 parent 041d676 commit 0b19cf0

28 files changed

+19
-21
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ members = [
1212
#
1313
# "crates/rs-cms",
1414
"crates/rs-leetcode",
15-
"crates/rs-scripts",
15+
"crates/rs-cli",
1616
"crates/rs-ffi",
1717
"crates/rs-ffi-core",
1818
# "crates/rs-tonic",
@@ -46,5 +46,5 @@ codegen-units = 1 # Reduce number of codegen units to increase optimizations.
4646
panic = "abort" # Abort on panic
4747
strip = true # Automatically strip symbols from the binary.
4848

49-
[profile.release.package.rs-scripts]
49+
[profile.release.package.rs-cli]
5050
strip = true # Automatically strip symbols from the binary.

Readme.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,19 @@
3636
| xxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxx |
3737
| xxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxx |
3838

39-
4039
> 基于 Rust 写的脚本工具和业务系统:
4140
4241
| 子项目 | 说明 | 备注 |
4342
|:------------------------------------|:---------------------------------|:--------------------|
44-
| [rs-scripts](./crates/rs-scripts) | rust cli 脚本工具: Binance 持币成本计算器 | ⭐⭐⭐⭐⭐ |
43+
| [rs-cli](./crates/rs-cli) | rust cli 脚本工具: Binance 持币成本计算器 | ⭐⭐⭐⭐⭐ |
4544
| [rs-tauri-vue](crates/rs-tauri-vue) | Rust + Tauri + Vue.js 桌面App开发脚手架 | ⭐⭐⭐ |
4645
| [rs-cms](./crates/rs-cms) | rust 小型 CMS 系统, 小型电商原型 | ⭐⭐⭐ |
4746
| xxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxx |
4847
| xxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxx | xxxxxxxxxx |
4948

5049
## 基于 Rust 写的小工具:
5150

52-
-[rs-scripts](./crates/rs-scripts)
51+
-[rs-cli](./crates/rs-cli)
5352
- 写的一些 rust 脚本工具
5453
- [x] ETH 链上交易查询
5554
- [x] Binance 交易所个人交易数据查询/K 线数据查询(支持 api key 方式下单/撤单)
@@ -70,11 +69,11 @@ task scripts:install
7069

7170
```ruby
7271

73-
rs-scripts v0.1.0 (/better-rs/learn-rs/crates/rs-scripts):
72+
rs-cli v0.1.0 (/better-rs/learn-rs/crates/rs-cli):
7473
discord-bot
7574
rs-binance
7675
rs-eth-scanner
77-
rs-scripts
76+
rs-cli
7877
rs-tui
7978

8079
```
@@ -111,8 +110,8 @@ SUBCOMMANDS:
111110

112111
> 源码位置:
113112
114-
-[crates/rs-scripts/src/bin/binance.rs](crates/rs-scripts/bin/binance.rs)
115-
- ✅ 启动脚本: [crates/rs-scripts/Taskfile.yml](crates/rs-scripts/Taskfile.yml)
113+
-[crates/rs-cli/src/bin/binance.rs](crates/rs-cli/bin/binance.rs)
114+
- ✅ 启动脚本: [crates/rs-cli/Taskfile.yml](crates/rs-cli/Taskfile.yml)
116115

117116
> 功能说明:
118117

Taskfile.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ includes:
99
dir: ./crates/rs-try/
1010

1111
scripts:
12-
taskfile: ./crates/rs-scripts/
13-
dir: ./crates/rs-scripts/
12+
taskfile: ./crates/rs-cli/
13+
dir: ./crates/rs-cli/
1414

1515
cms:
1616
taskfile: ./crates/rs-cms/
@@ -157,7 +157,7 @@ tasks:
157157

158158
run:scripts:help:
159159
cmds:
160-
- cargo run --bin rs-scripts -- -h
160+
- cargo run --bin rs-cli -- -h
161161

162162
################################################################################
163163

crates/rs-scripts/Cargo.toml renamed to crates/rs-cli/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "rs-scripts"
2+
name = "rs-cli"
33
version = "0.1.0"
44
edition = "2021"
55

@@ -10,7 +10,7 @@ edition = "2021"
1010
################################################################################
1111

1212
[[bin]]
13-
name = "rs-scripts"
13+
name = "rs-cli"
1414
path = "bin/main.rs"
1515

1616

@@ -76,7 +76,7 @@ serenity = { version = "0.11", default-features = true, features = ["client", "g
7676

7777
binance = "0" # binance api
7878
#binance-rs-async = "1.1.7" # binance async api
79-
binance-async = { version = "1", package = "binance-rs-async", features=["all_apis"] } # fix conflict with binance-rs
79+
binance-async = { version = "1", package = "binance-rs-async", features = ["all_apis"] } # fix conflict with binance-rs
8080
#binance-async = { package = "binance-rs-async" ,features=["all_apis"], git = 'https://github.com/Igosuki/binance-rs-async', branch = "master"} # fix conflict with binance-rs
8181
#binance-async = { package = "binance-rs-async", features = ["all_apis"], git = 'https://github.com/better-rs/binance-rs-async', branch = "dev/wallet-api" } # fix conflict with binance-rs
8282
#binance-async = { package = "binance-rs-async", features=["all_apis"], path = '../../tmp/binance-rs-async' }

crates/rs-scripts/Taskfile.yml renamed to crates/rs-cli/Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tasks:
1010

1111
run:scripts:
1212
cmds:
13-
- cargo run --bin rs-scripts -- -n "Henry"
13+
- cargo run --bin rs-cli -- -n "Henry"
1414

1515
#
1616
# parse env vars:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

crates/rs-scripts/readme.md renamed to crates/rs-cli/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# rs-scripts:
1+
# rs-cli:
22

33
- 使用 rust 编写的一些脚本工具
44

@@ -41,10 +41,10 @@ task run:discord
4141
```ruby
4242

4343
# 查看 cli 工具的帮助
44-
cargo run --bin rs-scripts -- -h
44+
cargo run --bin rs-cli -- -h
4545

4646
# 示例传参:
47-
cargo run --bin rs-scripts -- -n "Henry"
47+
cargo run --bin rs-cli -- -n "Henry"
4848
```
4949

5050
> cli 示例:
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/dev.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# development:
32

43
## Project Structure:
@@ -13,7 +12,7 @@
1312
├── basic
1413
│   ├── Cargo.toml
1514
│   └── src
16-
├── rs-scripts // 使用 rust 写的工具脚本
15+
├── rs-cli // 使用 rust 写的工具脚本
1716
│   ├── Cargo.toml
1817
│   └── src
1918
├── rust-by-example // rust 官方学习教程 // 练习代码

0 commit comments

Comments
 (0)