forked from al8n/fs4-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
47 lines (41 loc) · 1.44 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[package]
name = "fs4"
# NB: When modifying, also modify html_root_url in lib.rs
version = "0.7.0"
authors = ["Dan Burkert <[email protected]>", "Al Liu <[email protected]>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/al8n/fs4-rs"
documentation = "https://docs.rs/fs4"
description = "No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix."
keywords = ["file", "fs2", "lock", "duplicate", "flock"]
categories = ["filesystem", "external-ffi-bindings", "asynchronous"]
edition = "2021"
[features]
default = ["sync"]
sync = []
async-std = ["dep:async-std", "async-trait"]
tokio = ["dep:tokio", "async-trait"]
smol = ["dep:smol", "async-trait"]
[target.'cfg(not(windows))'.dependencies]
rustix = { version = "0.38", features = ["fs"] }
[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.48.0"
features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
"Win32_System_IO"
]
[dependencies]
async-trait = { version = "0.1", optional = true }
async-std = { version = "1.12", optional = true }
smol = { version = "1.3", optional = true }
tokio = { version = "1.32", optional = true, default-features = false, features = ["fs"] }
[dev-dependencies]
async-std = { version = "1.12", features = ["attributes"] }
smol-potat = "1.1"
tempdir = "0.3"
tokio = { version = "1.19", features = ["full"]}
libc = "0.2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]