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

aws-ip-ranges

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

232 breaking releases

new 0.234.0 Apr 26, 2024
0.232.0 Apr 25, 2024
0.167.0 Mar 30, 2024
0.42.0 Dec 29, 2023
0.14.0 Nov 30, 2023

#994 in Network programming

Download history 183/week @ 2024-01-05 245/week @ 2024-01-12 215/week @ 2024-01-19 129/week @ 2024-01-26 103/week @ 2024-02-02 54/week @ 2024-02-09 1719/week @ 2024-02-16 1007/week @ 2024-02-23 1623/week @ 2024-03-01 1967/week @ 2024-03-08 1329/week @ 2024-03-15 1019/week @ 2024-03-22 2118/week @ 2024-03-29 2215/week @ 2024-04-05 2377/week @ 2024-04-12 1672/week @ 2024-04-19

8,498 downloads per month

MIT/Apache

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