๐Ÿ“ฆ Turbo87 / aws-ip-ranges

๐Ÿ“„ README.md ยท 44 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44aws-ip-ranges
==============================================================================

**โš ๏ธ DEPRECATED: This crate is no longer maintained. The crates.io project,
which was the primary user of this crate, no longer uses it. Consider fetching
the data directly from <https://ip-ranges.amazonaws.com/ip-ranges.json> instead.**

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

```rust
fn main() {
    let ip_ranges = aws_ip_ranges::IP_RANGES;
    println!("{ip_ranges:#?}");
}
```

License
------------------------------------------------------------------------------

This project is licensed under either of

- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
  <http://www.apache.org/licenses/LICENSE-2.0>)

- MIT license ([LICENSE-MIT](LICENSE-MIT) or
  <http://opensource.org/licenses/MIT>)

at your option.