Use rustix to replace some unsafe calls

This commit is contained in:
LoveSy
2024-01-31 23:09:04 +08:00
parent 4b1fb121b4
commit c1a2cbf1e4
5 changed files with 46 additions and 28 deletions

View File

@@ -40,6 +40,7 @@ hole-punch = { git = "https://github.com/tiann/hole-punch" }
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
sys-mount = { git = "https://github.com/tiann/sys-mount", branch = "loopfix" }
rustix = { version = "0.38", features = ["all-apis"] }
# some android specific dependencies which compiles under unix are also listed here for convenience of coding
android-properties = { version = "0.2.2", features = ["bionic-deprecated"] }
procfs = "0.16"