Crates.io | aws-ip-ranges |
lib.rs | aws-ip-ranges |
version | 0.660.0 |
source | src |
created_at | 2023-11-14 09:42:24.741288 |
updated_at | 2024-07-15 06:47:23.654892 |
description | https://ip-ranges.amazonaws.com/ip-ranges.json as const structs |
homepage | |
repository | https://github.com/Turbo87/aws-ip-ranges |
max_upload_size | |
id | 1034549 |
size | 1,843,093 |
https://ip-ranges.amazonaws.com/ip-ranges.json as const structs
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.
fn main() {
let ip_ranges = aws_ip_ranges::IP_RANGES;
println!("{ip_ranges:#?}");
}
This project is licensed under either of
Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.