Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
70 lines (58 loc) · 2.13 KB
/
Copy pathCargo.toml
File metadata and controls
70 lines (58 loc) · 2.13 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[package]
name = "aster-fs"
version = "0.1.0"
rust-version = "1.75.0"
authors = [
"AsterCommunity Contributors <contributors@astercosm.com>",
"Dan Burkert <dan@danburkert.com>",
"Al Liu <scygliu1@gmail.com>",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/AsterCommunity/AsterFs"
documentation = "https://docs.rs/aster-fs"
description = "Auditable cross-platform file locking, allocation, and filesystem utilities for sync and async Rust."
keywords = ["file", "filesystem", "lock", "preallocate", "async"]
categories = ["filesystem", "external-ffi-bindings", "asynchronous"]
edition = "2021"
[features]
default = ["sync"]
sync = []
async-std = ["dep:async-std"]
tokio = ["dep:tokio"]
smol = ["dep:smol"]
fs-err2 = ["dep:fs-err2", "fs-err2/io_safety"]
fs-err2-tokio = ["fs-err2", "fs-err2/tokio", "dep:tokio"]
fs-err3 = ["dep:fs-err3"]
fs-err3-tokio = ["fs-err3", "fs-err3/tokio", "dep:tokio"]
[target.'cfg(not(windows))'.dependencies]
rustix = { version = "1", features = ["fs"] }
[target.'cfg(target_vendor = "apple")'.dependencies]
libc = "0.2"
[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.61"
features = ["Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_IO"]
[dependencies]
async-std = { version = "1", optional = true }
fs-err2 = { package = "fs-err", version = "2", optional = true }
fs-err3 = { package = "fs-err", version = "3", optional = true }
smol = { version = "2", optional = true }
tokio = { version = "1", optional = true, default-features = false, features = ["fs", "rt"] }
[dev-dependencies]
async-std = { version = "1", features = ["attributes"] }
fs-err2 = { package = "fs-err", version = "2", features = ["io_safety", "tokio"] }
fs-err3 = { package = "fs-err", version = "3", features = ["tokio"] }
smol-potat = "1.1"
tempfile = "3"
tokio = { version = "1", features = ["full"] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[workspace]
[[test]]
name = "apple_preallocation"
path = "tests/apple_preallocation.rs"
required-features = ["sync"]
[[test]]
name = "apple_async_preallocation"
path = "tests/apple_async_preallocation.rs"
required-features = ["tokio"]