不同工具和软件的 Rust 替代,目前已收集 30 多个小工具。
主页:https://oxidizeyour.life/
GitHub:https://github.com/kfirfitousi/oxidize-your-life
除此之外,还有几个:
GitHub:https://github.com/TaKO8Ki/awesome-alternatives-in-rust
GitHub:https://github.com/ibraheemdev/modern-unix
Mindot 是一个简单小巧的 dot 文件管理器,它复制当前目录中的 dot 文件以共享它们。
使用场景:
mindot add file1 file2
添加备份。mindot backup <path>
将文件复制到其他地方并推送到 GitHub。mindot restore
将它们复制回来。# 表
cargo run tables dbs/employee.fdb
name | is_system_table | relation
--------------------------+-----------------+----------
RDB$PAGES | true | 0
RDB$DATABASE | true | 1
RDB$FIELDS | true | 2
RDB$INDEX_SEGMENTS | true | 3
# 表的列(行可以把 columns 替换为 rows)
cargo run columns dbs/employee.fdb sales
position | name | size | type | scale | is_not_null | is_computed
----------+--------------+------+-----------+-------+-------------+-------------
0 | PO_NUMBER | 8 | Char | 0 | true | false
1 | CUST_NO | 4 | Integer | 0 | true | false
2 | SALES_REP | 2 | Smallint | 0 | false | false
let data = serde_json::json!({
"name": "mr snuggle",
"some_entry": {
"some_obj": {
"obj": {
"a": "object_a",
"b": "object_b",
"c": "object_c",
"d": "object_d"
}
}
}
});
let mut values = Path::collect(data, ">/..obj/#pick('a','b')");
#[derive(Serialize, Deserialize)]
struct Output {
a: String,
b: String,
}
let output: Option<Output> = values.from_index(0);