mirror of https://github.com/zkat/cacache-rs.git
fix: optional dependency on libc
This commit is contained in:
parent
f0cb8a4520
commit
41e9f9aa6d
|
|
@ -16,7 +16,6 @@ digest = "0.10.6"
|
|||
either = "1.6.1"
|
||||
futures = "0.3.17"
|
||||
hex = "0.4.3"
|
||||
libc = "0.2.144"
|
||||
memmap2 = { version = "0.5.8", optional = true }
|
||||
miette = "5.7.0"
|
||||
reflink = "0.1.3"
|
||||
|
|
@ -37,6 +36,9 @@ tokio = { version = "1.12.0", features = [
|
|||
tokio-stream = { version = "0.1.7", features = ["io-util"], optional = true }
|
||||
walkdir = "2.3.2"
|
||||
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
libc = { version = "0.2.144", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
async-attributes = { version = "1.1.2" }
|
||||
criterion = "0.4.0"
|
||||
|
|
@ -55,6 +57,6 @@ harness = false
|
|||
|
||||
[features]
|
||||
default = ["async-std", "mmap"]
|
||||
mmap = ["memmap2"]
|
||||
mmap = ["memmap2", "libc"]
|
||||
link_to = []
|
||||
tokio-runtime = ["tokio", "tokio-stream"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue