Skip to content

Commit 19126ad

Browse files
committed
[rfuse3]: add example
1 parent c135da1 commit 19126ad

File tree

6 files changed

+500
-20
lines changed

6 files changed

+500
-20
lines changed

project/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project/rfuse3/Cargo.toml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,48 @@ repository = "https://github.com/r2cn-dev/rk8s/tree/main/project/rfuse3"
1818
[features]
1919
default = ["tokio-runtime", "unprivileged"]
2020
tokio-runtime = ["dep:tokio"]
21-
async-io-runtime = ["dep:async-fs", "dep:async-global-executor", "dep:async-lock", "dep:async-io", "dep:async-process", "futures-util/io"]
21+
async-io-runtime = [
22+
"dep:async-fs",
23+
"dep:async-global-executor",
24+
"dep:async-lock",
25+
"dep:async-io",
26+
"dep:async-process",
27+
"futures-util/io",
28+
]
2229
file-lock = []
2330
unprivileged = ["nix/socket", "dep:which"]
2431

2532
[dependencies]
26-
async-fs = { version = "2.1.1",optional = true}
27-
async-global-executor = { version = "2.4.1",optional = true}
28-
async-lock = { version = "3.3.0",optional = true}
33+
async-fs = { version = "2.1.1", optional = true }
34+
async-global-executor = { version = "2.4.1", optional = true }
35+
async-lock = { version = "3.3.0", optional = true }
2936
async-notify = "0.3"
30-
async-io = { version = "2.3.1",optional = true}
31-
async-process = { version = "2.1.0" ,optional = true}
37+
async-io = { version = "2.3.1", optional = true }
38+
async-process = { version = "2.1.0", optional = true }
3239
bincode = "1.3.3"
3340
bytes = "1.10.1"
41+
clap = { version = "4.4", features = ["derive"] }
3442
futures-channel = { version = "0.3.30", features = ["sink"] }
3543
futures-util = { version = "0.3.30", features = ["sink"] }
3644
libc = "0.2.171"
3745
nix = { version = "0.29.0", features = [
38-
"signal",
39-
"user",
40-
"fs",
41-
"socket",
42-
"sched",
43-
"mount",
44-
"mman",
45-
"resource",
46-
"dir",
47-
"term",
48-
"hostname",
49-
"process",
46+
"signal",
47+
"user",
48+
"fs",
49+
"socket",
50+
"sched",
51+
"mount",
52+
"mman",
53+
"resource",
54+
"dir",
55+
"term",
56+
"hostname",
57+
"process",
5058
] }
5159
serde = { version = "1.0", features = ["derive"] }
5260
slab = "0.4.9"
5361
tracing = { version = "0.1.41", features = ["attributes"] }
62+
tracing-subscriber = "0.3"
5463
trait-make = "0.1"
5564
which = { version = "4.4.2", optional = true }
5665

0 commit comments

Comments
 (0)