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

aws-ip-ranges

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

746 breaking releases

new 0.927.0 Nov 26, 2024
0.925.0 Nov 26, 2024
0.760.0 Jul 27, 2024
0.167.0 Mar 30, 2024
0.14.0 Nov 30, 2023

#586 in Network programming

Download history 1002/week @ 2024-08-06 1083/week @ 2024-08-13 1197/week @ 2024-08-20 736/week @ 2024-08-27 2022/week @ 2024-09-03 1966/week @ 2024-09-10 1671/week @ 2024-09-17 1065/week @ 2024-09-24 2092/week @ 2024-10-01 1927/week @ 2024-10-08 2759/week @ 2024-10-15 1426/week @ 2024-10-22 1325/week @ 2024-10-29 1290/week @ 2024-11-05 2020/week @ 2024-11-12 1881/week @ 2024-11-19

6,678 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