Skip to content

Commit

Permalink
cache: Add crate
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmacarthur committed Feb 24, 2024
1 parent 1050921 commit f5f4fc0
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 10 deletions.
197 changes: 187 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ categories = ["command-line-utilities"]

[workspace.dependencies]
powerpack = { version = "0.5.0", path = "." }
powerpack-cache = { version = "0.5.0", path = "crates/cache" }
powerpack-detach = { version = "0.5.0", path = "crates/detach" }
powerpack-env = { version = "0.5.0", path = "crates/env" }

Expand All @@ -30,6 +31,7 @@ keywords.workspace = true
categories.workspace = true

[dependencies]
powerpack-cache = { workspace = true, optional = true }
powerpack-detach = { workspace = true, optional = true }
powerpack-env = { workspace = true, optional = true }
serde = { version = "1.0.193", features = ["derive"] }
Expand All @@ -40,6 +42,7 @@ goldie = "0.4.3"

[features]
default = ["env"]
cache = ["dep:powerpack-cache"]
detach = ["dep:powerpack-detach"]
env = ["dep:powerpack-env"]

Expand Down
23 changes: 23 additions & 0 deletions crates/cache/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "powerpack-cache"
version.workspace = true
authors.workspace = true
edition.workspace = true
description = "⚡ Cache management for your Alfred workflow"
readme = "README.md"
repository.workspace = true
license.workspace = true
keywords.workspace = true
categories.workspace = true

[dependencies]
anyhow = "1.0.56"
chrono = "0.4.19"
fmutex = "0.1.0"
home = "0.5.3"
log = { version = "0.4.16", features = ["std"] }
powerpack-detach.workspace = true
powerpack-env.workspace = true
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
thiserror = "1.0.57"
Loading

0 comments on commit f5f4fc0

Please sign in to comment.