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

aws-ip-ranges

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

310 breaking releases

new 0.312.0 May 25, 2024
0.310.0 May 24, 2024
0.167.0 Mar 30, 2024
0.42.0 Dec 29, 2023
0.14.0 Nov 30, 2023

#995 in Network programming

Download history 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 2162/week @ 2024-04-19 2181/week @ 2024-04-26 2140/week @ 2024-05-03 2054/week @ 2024-05-10 2975/week @ 2024-05-17

9,779 downloads per month

MIT/Apache

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