[package]
name = "wasmtime-cache"
version.workspace = true
authors.workspace = true
description = "Support for automatic module caching with Wasmtime"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime"
documentation = "https://docs.rs/wasmtime-cache/"
edition.workspace = true

[dependencies]
anyhow = { workspace = true }
base64 = "0.21.0"
bincode = "1.1.4"
directories-next = "2.0"
log = { workspace = true }
serde = "1.0.188"
serde_derive = "1.0.188"
sha2 = "0.10.2"
toml = "0.5.5"
zstd = { version = "0.11.1", default-features = false }

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
workspace = true
features = [
  "Win32_System_Threading",
]

[target.'cfg(not(target_os = "windows"))'.dependencies]
rustix = { workspace = true, features = ["process"] }

[dev-dependencies]
filetime = "0.2.7"
once_cell = { workspace = true }
pretty_env_logger = { workspace = true }
tempfile = "3"
