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

aws-ip-ranges

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

817 breaking releases

new 0.998.0 Jan 24, 2025
0.996.0 Jan 24, 2025
0.964.0 Dec 27, 2024
0.928.0 Nov 29, 2024
0.14.0 Nov 30, 2023

#685 in Network programming

Download history 2193/week @ 2024-10-06 2552/week @ 2024-10-13 1760/week @ 2024-10-20 1318/week @ 2024-10-27 1343/week @ 2024-11-03 2005/week @ 2024-11-10 1898/week @ 2024-11-17 1011/week @ 2024-11-24 2392/week @ 2024-12-01 1121/week @ 2024-12-08 1253/week @ 2024-12-15 374/week @ 2024-12-22 61/week @ 2024-12-29 883/week @ 2025-01-05 1802/week @ 2025-01-12 1770/week @ 2025-01-19

4,554 downloads per month

MIT/Apache

92KB
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