Skip to content

Commit

Permalink
Merge pull request #91 from alexheretic/cache-package-pages
Browse files Browse the repository at this point in the history
Cache package pages
  • Loading branch information
w4 authored Nov 13, 2024
2 parents 619e035 + d67ece6 commit 044a8e0
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 53 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Support crate yanking by creating a `yanked` file on the release.
- Add `bust-cache` command, invoked via `ssh [registry] -- bust-cache [project] [crate-name] [crate-version]` to remove eligibility cache (ie. after a crate has been yanked)
- Update dependencies, require libsodium at build & runtime.
- Add package page caching. Controlled with config `cache-releases-older-than`.

# v0.1.4

Expand Down
79 changes: 59 additions & 20 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ shlex = "1.1"
smol_str = { version = "0.3", features = ["serde"] }
thrussh = "0.35.6"
thrussh-keys = "0.22"
time = { version = "0.3", features = ["serde", "parsing"] }
time = { version = "0.3", features = ["serde", "parsing", "formatting"] }
tokio = { version = "1.17", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] }
toml = "0.8"
Expand Down
1 change: 1 addition & 0 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub trait Cacheable: Serialize + Send + for<'a> Yokeable<'a> {
pub enum CacheKind {
Eligibility = 1,
CrateMetadata = 2,
PackagePage = 3,
}

/// A generic-erased `Cache`.
Expand Down
Loading

0 comments on commit 044a8e0

Please sign in to comment.