#aws #github-actions #const #structs #data #json #update

aws-ip-ranges

https://ip-ranges.amazonaws.com/ip-ranges.json as const structs

871 breaking releases

new 0.1052.0 Feb 28, 2025
0.1050.0 Feb 27, 2025
0.964.0 Dec 27, 2024
0.928.0 Nov 29, 2024
0.14.0 Nov 30, 2023

#384 in Network programming

Download history 1250/week @ 2024-11-01 2108/week @ 2024-11-08 1551/week @ 2024-11-15 1678/week @ 2024-11-22 1677/week @ 2024-11-29 1694/week @ 2024-12-06 1183/week @ 2024-12-13 607/week @ 2024-12-20 222/week @ 2024-12-27 403/week @ 2025-01-03 1515/week @ 2025-01-10 2146/week @ 2025-01-17 1592/week @ 2025-01-24 1769/week @ 2025-01-31 1182/week @ 2025-02-07 791/week @ 2025-02-14

5,578 downloads per month

MIT/Apache

93KB
135 lines

aws-ip-ranges

https://ip-ranges.amazonaws.com/ip-ranges.json as const structs

Description

If the data from https://ip-ranges.amazonaws.com/ip-ranges.json is used in a Rust program, it can be slow to fetch it every time. This crate provides the data as const structs, so it can be compiled into the program.

An hourly GitHub Actions workflow updates the data in this crate automatically and releases a new version of the crate if the data has changed.

Usage

fn main() {
  let ip_ranges = aws_ip_ranges::IP_RANGES;
  println!("{ip_ranges:#?}");
}

License

This project is licensed under either of

at your option.

No runtime deps