Repository navigation
Conversation
Add `Esi::query_with_headers`, like `query` but also returning the response headers, for the data that only travels there (`Last-Modified`, `ETag`). When the answer comes from the response cache, the headers are those stored with it. Add `UniverseGroup::get_system_kills_snapshot` and `SystemKillsSnapshot`: the kills per system of the last hour together with the `Last-Modified` and `ETag` of the answer. ESI refreshes this answer once an hour, so `Last-Modified` marks the end of the hour the data covers and lets two hourly answers be told apart and stored without counting one twice. Tests in `tests/cache.rs` check that the headers survive a cached answer and that the snapshot carries both of them. Docs: * CHANGELOG: add the missing 0.2.1 section (dependency requirements relaxed to semver ranges, mitigating CVE-2026-111497 and the eMudhra certificate problem) and date 0.2.2. * README: mention `query_with_headers` and the snapshot. * TODO: add the 0.2.1 and 0.2.2 items to the release housekeeping. Bump to 0.2.2.
…e update dependencies PR its approved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prepares release 0.2.2. It adds a way to read the response headers of an ESI call and uses it to expose the hourly kills per system together with the moment ESI computed them. It also brings the docs up to date: the changelog was missing the 0.2.1 release.
What changes
API
Esi::query_with_headersworks likequerybut also returns the response headers (forLast-Modified,ETag). When the answer comes from the response cache, the headers are those stored with it.UniverseGroup::get_system_kills_snapshotreturns aSystemKillsSnapshot: the kills per system of the last hour, plus theLast-ModifiedandETagof the answer.Last-Modifiedmarks the end of the hour the data covers. Two hourly answers can be told apart and stored without counting one twice.EsiBuilder::enable_cache), calls made before the hour is up cost no request.get_system_killsis unchanged.Tests
tests/cache.rs: the headers survive a cached answer (a single request for two calls), and the snapshot carriesLast-ModifiedandETag.Docs
CHANGELOG.md: adds the missing 0.2.1 section (2026-10-26, dependency update) and dates 0.2.2.README.md: mentionsquery_with_headersand the snapshot.TODO.md: adds the 0.2.1 and 0.2.2 items to the release housekeeping.Cargo.toml: version 0.2.2.Compatibility
SystemKillsSnapshotkeeps the date as the string ESI sent (an HTTP date), like the rest of the crate.Before publishing
cargo fmt --checkcargo clippy --all-targets -- -D warningscargo testcargo deny check