Skip to content

Commit f893d5b

Browse files
committed
-
1 parent 5ee5b2a commit f893d5b

File tree

6 files changed

+835
-2
lines changed

6 files changed

+835
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ this tool has several implementations:
1515

1616
- `go/README.md`;
1717

18+
- `rust/README.md`;
19+
1820
these implementations are independent, and you can choose any one of them; but
1921
beware there may be minor differences among these implementations, which means
2022
they may not give exactly the same behavior; double check the source code, and
2123
make sure you understand what is happening before use; open an issue if needed;
2224

2325
the bash implementation has longer history and tends to be more stable; but it
2426
is very slow when there are a lot of filenames; the go implementation is newer
25-
and faster, but has a higher chance of malfunction; you are advised to do some
26-
dryrun (using a fake `rm`) before deploying this tool so as to not have a pity;
27+
and faster, but has a higher chance of malfunction; the rust implementation is
28+
even newer and less mature; you are strongly advised to do some dry-run (using
29+
fake `rm`) before deploying this tool; it is better safe than sorry;
2730

2831
these implementations share the same config files; a sample config is provided
2932
in `config` dir; the entire config has a json file plus some lists of patterns;

rust/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

rust/Cargo.lock

+330
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "skiprm"
3+
version = "1.2.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[[bin]]
9+
name = "skip-rm"
10+
path = "src/main.rs"
11+
12+
[dependencies]
13+
expanduser = "1.2.2"
14+
path-absolutize = "3.0.14"
15+
regex = "1.6.0"
16+
serde = { version = "1.0.145", features = ["derive"] }
17+
serde_json = "1.0.87"

0 commit comments

Comments
 (0)