actionidmap-updater 0.2.0

A HashMap that can be updated from a URL. Intended to be used to keep reverse-engineered API's in use even as private referenced ID's get updated.
Documentation
  • Coverage
  • 85.71%
    6 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 23.73 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 999.89 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 31s Average build duration of successful builds.
  • all releases: 31s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sigaloid

ActionIDMap

A HashMap that can be updated from a URL. Intended to be used to keep reverse-engineered API's in use even as private referenced ID's get updated, so end users don't need to update.

Generate example code below.


let mut actionmap = ActionIDMap::new("https://gist.githubusercontent.com/[..]".into(), 86400).unwrap();
let bar = actionmap.get("foo")?;

if actionmap.needs_refresh() {
    actionmap.refresh();
}

The URL can be, for example, a GitHub Gist or Raw file that contains a serialized HashMap ({"key":"value"}).