maxmind-db-rust 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +104 -0
- data/CONTRIBUTING.md +32 -14
- data/Cargo.lock +398 -0
- data/Cargo.toml +8 -0
- data/README.md +28 -10
- data/ext/maxmind_db_rust/Cargo.toml +5 -2
- data/ext/maxmind_db_rust/extconf.rb +4 -1
- data/ext/maxmind_db_rust/src/convert.rs +61 -0
- data/ext/maxmind_db_rust/src/gvl.rs +76 -0
- data/ext/maxmind_db_rust/src/initialization.rs +59 -18
- data/ext/maxmind_db_rust/src/lib.rs +2 -0
- data/ext/maxmind_db_rust/src/metadata.rs +35 -2
- data/ext/maxmind_db_rust/src/path.rs +136 -62
- data/ext/maxmind_db_rust/src/reader.rs +1091 -371
- data/lib/maxmind/db/rust.rb +11 -1
- metadata +21 -4
- data/ext/maxmind_db_rust/lib/maxmind/db/rust.rb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ce69d40454e30ceed0bf88526e559d6cef494dd8594ad27978194da485f3945
|
|
4
|
+
data.tar.gz: d053b912f421a66c24040fa235c9705fb2f5f62b9856f8102574cd54bf6405cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e558e862e46c15512c16865d8e16578e5cb8bffd95c0f153cc4b196ec1795737bcb2319d39f7cc716dbddc25e514b5fa38ea251d34e726e114a263082c0710d5
|
|
7
|
+
data.tar.gz: 6ca7ff50e07f6f5a9bbd1dcdac9ab3ce636f9cb8fbabb37509c8ab06e974c3bff477f6628d051cd28d0ddedac8a3134dc97298b55c7bc3f9fb74110515710c0c
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,108 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.8.0] - 2026-11-25
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **Breaking:** Ruby 3.3 or later is now required. Ruby 3.2 is end of life,
|
|
13
|
+
and `magnus` 0.9 no longer builds against it.
|
|
14
|
+
- **Breaking:** Building from source now requires Rust 1.85 or later, because
|
|
15
|
+
`magnus` 0.9 does.
|
|
16
|
+
- **Breaking:** Lookups no longer call `to_s` on an argument that is neither a
|
|
17
|
+
String nor an `IPAddr`, such as a Symbol. They pass it to `IPAddr.new`, as the
|
|
18
|
+
`maxmind-db` gem does, which raises `IPAddr::AddressFamilyError`.
|
|
19
|
+
- **Breaking:** `get_many` and `get_many_path` now raise the closed-reader
|
|
20
|
+
`RuntimeError` if the reader is closed before the last lookup, as `get` does.
|
|
21
|
+
Previously they finished with the database that was open at the start.
|
|
22
|
+
- **Breaking:** `Reader.new` now converts the path as `File.open` does. A UTF-16
|
|
23
|
+
path raises `Encoding::CompatibilityError`, unless Ruby converts it because
|
|
24
|
+
`Encoding.default_internal` is set. On Linux, any other path that is not in
|
|
25
|
+
UTF-8 is converted to UTF-8 only if `Encoding.default_internal` is set.
|
|
26
|
+
- Upgraded the `maxminddb` crate from 0.32.0 to 0.33.0, which fixes network
|
|
27
|
+
iteration omitting some IPv6 networks and decoding of some four-byte data
|
|
28
|
+
pointers.
|
|
29
|
+
- Opening a reader now builds a prefix index, which makes lookups that find no
|
|
30
|
+
record about 25% faster. Opening in a memory-mapped mode takes longer. With a
|
|
31
|
+
111 MB GeoIP2 City database, it went from about 7 to 150 microseconds. Reuse
|
|
32
|
+
readers rather than opening one for each request.
|
|
33
|
+
- Upgraded `magnus` from 0.8 to 0.9 and updated other Rust dependencies.
|
|
34
|
+
- The source gem now includes `Cargo.lock` and the release build profile, so
|
|
35
|
+
installing from source builds the tested dependency versions with the same
|
|
36
|
+
optimizations as the native gems.
|
|
37
|
+
- `Reader#verify` and opening a database in `MODE_MEMORY` now release Ruby's
|
|
38
|
+
global VM lock while they work, so other Ruby threads are no longer stalled.
|
|
39
|
+
Verification still cannot be interrupted part way through.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- Fixed a possible crash or memory corruption when GC compaction moved the
|
|
44
|
+
internal string cache. The cache is now pinned so compaction cannot move it.
|
|
45
|
+
- `Reader#get_path` and `Reader#get_many_path` no longer deadlock when a path
|
|
46
|
+
element defines `to_str` or `to_int` and that method calls back into the
|
|
47
|
+
reader or releases the GVL.
|
|
48
|
+
Ruby conversion methods no longer run while the path cache lock is held.
|
|
49
|
+
- Anything an argument's `to_str`, `to_ary` or `to_int` raises or throws now
|
|
50
|
+
reaches the caller. Previously it was replaced with an `ArgumentError`, or
|
|
51
|
+
ignored when another conversion succeeded. Only these are still treated as an
|
|
52
|
+
argument of the wrong type: a `TypeError`, a number such as `Float::INFINITY`
|
|
53
|
+
that has no Integer value, and a `Numeric` without `to_i`.
|
|
54
|
+
- `Reader` now matches the `maxmind-db` gem in several more calls:
|
|
55
|
+
- `Reader.new` accepts a `Pathname` or any object with `to_path`, and its
|
|
56
|
+
options as a positional Hash as well as keywords.
|
|
57
|
+
- `Reader` can be subclassed. `new` returns an instance of the subclass and
|
|
58
|
+
calls its `initialize`.
|
|
59
|
+
- Errors opening or memory-mapping the database file raise the matching
|
|
60
|
+
`Errno` exception, such as `Errno::EACCES` or `Errno::EISDIR`, instead of
|
|
61
|
+
`IOError`. Their messages keep the encoding of the path.
|
|
62
|
+
- Invalid IP addresses raise `IPAddr::InvalidAddressError`, a subclass of
|
|
63
|
+
`ArgumentError`. Lookups accept CIDR strings such as `"1.2.3.4/32"` and
|
|
64
|
+
scoped IPv6 addresses such as `"fe80::1%eth0"`, as `IPAddr.new` does.
|
|
65
|
+
- `metadata` works after `close`.
|
|
66
|
+
- `Reader#each(nil)` now iterates over the whole database, as documented,
|
|
67
|
+
instead of raising `ArgumentError`. `each` now raises `ArgumentError` for
|
|
68
|
+
extra arguments, and checks the network when called without a block rather
|
|
69
|
+
than when the returned enumerator is first used.
|
|
70
|
+
- `get_many` and `get_many_path` now raise a `StopIteration` that a non-Array
|
|
71
|
+
input raises from its `each`. Previously they treated it as the end of the
|
|
72
|
+
input and returned a short result. A lookup error, such as an invalid IP,
|
|
73
|
+
now stops a non-Array input's `each` and is raised even if that `each`
|
|
74
|
+
rescues it. If a lookup never finishes, such as because `each` catches a
|
|
75
|
+
`throw` from it, they raise `RuntimeError` instead of returning a short
|
|
76
|
+
result.
|
|
77
|
+
- `Metadata#search_tree_size` no longer wraps to a wrong value, such as 0,
|
|
78
|
+
for databases whose search tree is 4 GiB or larger. It is now computed in
|
|
79
|
+
64 bits.
|
|
80
|
+
- Fixed a memory leak where an external enumerator from `Reader#each` that
|
|
81
|
+
was not run to the end kept the database mapped or in memory after `close`
|
|
82
|
+
and garbage collection.
|
|
83
|
+
- `require 'maxmind/db/rust'` no longer raises `LoadError` with the precompiled
|
|
84
|
+
gems. The gem now loads the extension from the Ruby version directory that
|
|
85
|
+
those gems use.
|
|
86
|
+
- `require 'maxmind/db/rust'` no longer fails if the application defines a
|
|
87
|
+
top-level `DB`, such as Sequel's usual `DB` constant. It also no longer skips
|
|
88
|
+
defining its own classes if there is a top-level `Reader`.
|
|
89
|
+
- The error raised for an IPv6 address in an IPv4-only database, and for an
|
|
90
|
+
`IPAddr` that claims to be IPv4 but holds a larger address, now builds its
|
|
91
|
+
message the way the `maxmind-db` gem does. An exception or `throw` from the
|
|
92
|
+
argument's `to_s` reaches the caller, and the message keeps the text's
|
|
93
|
+
encoding. Previously such an exception was ignored and the message showed
|
|
94
|
+
`#<IPAddr:0x...>` instead of the address.
|
|
95
|
+
|
|
96
|
+
## [0.7.0] - 2026-09-12
|
|
97
|
+
|
|
98
|
+
### Changed
|
|
99
|
+
|
|
100
|
+
- Upgraded the `maxminddb` crate from 0.30.0 to 0.32.0, adding resource
|
|
101
|
+
limits for decoding and verification of malformed databases, fixing
|
|
102
|
+
overflowing extended data types, and improving record decoding, search-tree
|
|
103
|
+
lookups, and selective path lookups.
|
|
104
|
+
- Databases that exceed the new decoding or verification limits now raise
|
|
105
|
+
`InvalidDatabaseError`, including databases that previously decoded successfully.
|
|
106
|
+
- Updated Rust and Ruby dependencies.
|
|
107
|
+
- Updated the MaxMind-DB test submodule and added coverage for the new resource
|
|
108
|
+
limits and expanded malformed database corpus.
|
|
109
|
+
|
|
8
110
|
## [0.6.0] - 2026-07-19
|
|
9
111
|
|
|
10
112
|
### Added
|
|
@@ -215,6 +317,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
215
317
|
- MODE_FILE support (use MODE_MMAP instead)
|
|
216
318
|
- File descriptor support in constructor
|
|
217
319
|
|
|
320
|
+
[0.8.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.7.0...v0.8.0
|
|
321
|
+
[0.7.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.6.0...v0.7.0
|
|
218
322
|
[0.6.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.5.0...v0.6.0
|
|
219
323
|
[0.5.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.4.0...v0.5.0
|
|
220
324
|
[0.4.0]: https://github.com/oschwald/maxmind-db-rust-ruby/compare/v0.3.0...v0.4.0
|
data/CONTRIBUTING.md
CHANGED
|
@@ -18,7 +18,7 @@ Thank you for your interest in contributing to maxmind-db-rust! This document pr
|
|
|
18
18
|
|
|
19
19
|
### Prerequisites
|
|
20
20
|
|
|
21
|
-
- Ruby 3.
|
|
21
|
+
- Ruby 3.3 or higher
|
|
22
22
|
- Rust toolchain (stable)
|
|
23
23
|
- Bundler
|
|
24
24
|
- Git
|
|
@@ -59,11 +59,16 @@ This will enable the pre-commit hook that runs `precious lint` on staged files b
|
|
|
59
59
|
bundle exec rake compile
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
This
|
|
62
|
+
This runs `build.sh`, which:
|
|
63
63
|
|
|
64
|
-
1.
|
|
65
|
-
2.
|
|
66
|
-
3.
|
|
64
|
+
1. Runs `cargo build --release --locked` in `ext/maxmind_db_rust`
|
|
65
|
+
2. Removes extensions in Ruby version directories, such as
|
|
66
|
+
`lib/maxmind/db/3.4/`, which `rust.rb` would load first
|
|
67
|
+
3. Copies the compiled extension from the workspace `target/` directory into
|
|
68
|
+
`lib/maxmind/db/`
|
|
69
|
+
|
|
70
|
+
`extconf.rb` is only used when the gem is installed from source and when
|
|
71
|
+
building the native gems in CI.
|
|
67
72
|
|
|
68
73
|
### Clean Build
|
|
69
74
|
|
|
@@ -75,17 +80,20 @@ bundle exec rake clean
|
|
|
75
80
|
bundle exec rake clobber compile
|
|
76
81
|
```
|
|
77
82
|
|
|
78
|
-
###
|
|
83
|
+
### Rust Dependencies
|
|
84
|
+
|
|
85
|
+
The workspace `Cargo.toml` (with the release profile) and `Cargo.lock` at the
|
|
86
|
+
repository root are shipped in the source gem, and builds use `--locked`.
|
|
87
|
+
After changing dependencies in `ext/maxmind_db_rust/Cargo.toml`, run
|
|
88
|
+
`cargo update -p <crate>` (or `cargo build`) and commit the updated lockfile.
|
|
79
89
|
|
|
80
|
-
|
|
90
|
+
### Rust Unit Tests
|
|
81
91
|
|
|
82
92
|
```bash
|
|
83
|
-
|
|
84
|
-
|
|
93
|
+
cd ext/maxmind_db_rust
|
|
94
|
+
cargo test --locked
|
|
85
95
|
```
|
|
86
96
|
|
|
87
|
-
Note: Debug builds are significantly slower at runtime but compile faster.
|
|
88
|
-
|
|
89
97
|
## Running Tests
|
|
90
98
|
|
|
91
99
|
### Test Organization
|
|
@@ -192,11 +200,20 @@ cargo fmt -- --check
|
|
|
192
200
|
|
|
193
201
|
```
|
|
194
202
|
maxmind-db-rust-ruby/
|
|
203
|
+
├── Cargo.toml # Cargo workspace and release profile
|
|
204
|
+
├── Cargo.lock # Locked dependency versions
|
|
195
205
|
├── ext/maxmind_db_rust/ # Rust extension code
|
|
196
206
|
│ ├── Cargo.toml # Rust dependencies
|
|
197
|
-
│ ├── extconf.rb #
|
|
207
|
+
│ ├── extconf.rb # Build configuration for source installs
|
|
198
208
|
│ └── src/
|
|
199
|
-
│
|
|
209
|
+
│ ├── lib.rs # Extension entry point and shared constants
|
|
210
|
+
│ ├── reader.rs # Reader class and lookups
|
|
211
|
+
│ ├── convert.rs # Argument type conversion
|
|
212
|
+
│ ├── decoder.rs # Decoding database values to Ruby objects
|
|
213
|
+
│ ├── gvl.rs # Running Rust work without the GVL
|
|
214
|
+
│ ├── metadata.rs # Metadata class
|
|
215
|
+
│ ├── path.rs # Path lookup support
|
|
216
|
+
│ └── initialization.rs # Ruby module and class setup
|
|
200
217
|
├── lib/ # Ruby integration layer
|
|
201
218
|
│ └── maxmind/
|
|
202
219
|
│ └── db/
|
|
@@ -227,7 +244,7 @@ maxmind-db-rust-ruby/
|
|
|
227
244
|
```
|
|
228
245
|
|
|
229
246
|
2. **Make your changes**:
|
|
230
|
-
- Rust code: `ext/maxmind_db_rust/src
|
|
247
|
+
- Rust code: `ext/maxmind_db_rust/src/`
|
|
231
248
|
- Ruby wrapper: `lib/maxmind/db/rust.rb`
|
|
232
249
|
- Tests: Add tests in `test/` directory
|
|
233
250
|
|
|
@@ -449,6 +466,7 @@ We follow [Semantic Versioning](https://semver.org/):
|
|
|
449
466
|
- `arm64-darwin` (macOS Apple Silicon)
|
|
450
467
|
- `x64-mingw-ucrt` (Windows)
|
|
451
468
|
- `x86_64-linux-musl` (Alpine Linux)
|
|
469
|
+
- Install and load each native gem on every supported Ruby version
|
|
452
470
|
- Build a source gem (fallback for unsupported platforms)
|
|
453
471
|
- Push all gems to RubyGems.org
|
|
454
472
|
|
data/Cargo.lock
ADDED
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.5"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "arc-swap"
|
|
16
|
+
version = "1.9.5"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "84a22b5d51209f6de83d37a0b33d320acb8da88823e42a94c075140708f032a5"
|
|
19
|
+
dependencies = [
|
|
20
|
+
"rustversion",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "bindgen"
|
|
25
|
+
version = "0.72.1"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
|
|
28
|
+
dependencies = [
|
|
29
|
+
"bitflags",
|
|
30
|
+
"cexpr",
|
|
31
|
+
"clang-sys",
|
|
32
|
+
"itertools",
|
|
33
|
+
"proc-macro2",
|
|
34
|
+
"quote",
|
|
35
|
+
"regex",
|
|
36
|
+
"rustc-hash",
|
|
37
|
+
"shlex",
|
|
38
|
+
"syn 2.0.119",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[[package]]
|
|
42
|
+
name = "bitflags"
|
|
43
|
+
version = "2.13.2"
|
|
44
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
46
|
+
|
|
47
|
+
[[package]]
|
|
48
|
+
name = "cexpr"
|
|
49
|
+
version = "0.6.0"
|
|
50
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
51
|
+
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
|
|
52
|
+
dependencies = [
|
|
53
|
+
"nom",
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
[[package]]
|
|
57
|
+
name = "cfg-if"
|
|
58
|
+
version = "1.0.5"
|
|
59
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
60
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
61
|
+
|
|
62
|
+
[[package]]
|
|
63
|
+
name = "clang-sys"
|
|
64
|
+
version = "1.9.1"
|
|
65
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
66
|
+
checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
|
|
67
|
+
dependencies = [
|
|
68
|
+
"glob",
|
|
69
|
+
"libc",
|
|
70
|
+
"libloading",
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
[[package]]
|
|
74
|
+
name = "either"
|
|
75
|
+
version = "1.19.0"
|
|
76
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
77
|
+
checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
|
|
78
|
+
|
|
79
|
+
[[package]]
|
|
80
|
+
name = "glob"
|
|
81
|
+
version = "0.3.4"
|
|
82
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
83
|
+
checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "ipnetwork"
|
|
87
|
+
version = "0.21.1"
|
|
88
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
89
|
+
checksum = "cf370abdafd54d13e54a620e8c3e1145f28e46cc9d704bc6d94414559df41763"
|
|
90
|
+
|
|
91
|
+
[[package]]
|
|
92
|
+
name = "itertools"
|
|
93
|
+
version = "0.13.0"
|
|
94
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
95
|
+
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
|
96
|
+
dependencies = [
|
|
97
|
+
"either",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "lazy_static"
|
|
102
|
+
version = "1.5.1"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
|
|
105
|
+
|
|
106
|
+
[[package]]
|
|
107
|
+
name = "libc"
|
|
108
|
+
version = "0.2.191"
|
|
109
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
110
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
111
|
+
|
|
112
|
+
[[package]]
|
|
113
|
+
name = "libloading"
|
|
114
|
+
version = "0.8.9"
|
|
115
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
116
|
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
|
117
|
+
dependencies = [
|
|
118
|
+
"cfg-if",
|
|
119
|
+
"windows-link",
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "magnus"
|
|
124
|
+
version = "0.9.3"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
|
|
127
|
+
dependencies = [
|
|
128
|
+
"magnus-macros",
|
|
129
|
+
"rb-sys",
|
|
130
|
+
"rb-sys-env",
|
|
131
|
+
"seq-macro",
|
|
132
|
+
]
|
|
133
|
+
|
|
134
|
+
[[package]]
|
|
135
|
+
name = "magnus-macros"
|
|
136
|
+
version = "0.9.1"
|
|
137
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
+
checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
|
|
139
|
+
dependencies = [
|
|
140
|
+
"proc-macro2",
|
|
141
|
+
"quote",
|
|
142
|
+
"syn 2.0.119",
|
|
143
|
+
]
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "maxmind_db_rust"
|
|
147
|
+
version = "0.1.0"
|
|
148
|
+
dependencies = [
|
|
149
|
+
"arc-swap",
|
|
150
|
+
"ipnetwork",
|
|
151
|
+
"magnus",
|
|
152
|
+
"maxminddb",
|
|
153
|
+
"memmap2",
|
|
154
|
+
"rb-sys",
|
|
155
|
+
"rustc-hash",
|
|
156
|
+
"self_cell",
|
|
157
|
+
"serde",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "maxminddb"
|
|
162
|
+
version = "0.33.0"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "317d6b918ba3893345af072f52cb56bcfcb532a9d0ebcf861ab3c25b37a316ac"
|
|
165
|
+
dependencies = [
|
|
166
|
+
"ipnetwork",
|
|
167
|
+
"memchr",
|
|
168
|
+
"serde",
|
|
169
|
+
"thiserror",
|
|
170
|
+
]
|
|
171
|
+
|
|
172
|
+
[[package]]
|
|
173
|
+
name = "memchr"
|
|
174
|
+
version = "2.8.3"
|
|
175
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
177
|
+
|
|
178
|
+
[[package]]
|
|
179
|
+
name = "memmap2"
|
|
180
|
+
version = "0.9.12"
|
|
181
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
182
|
+
checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157"
|
|
183
|
+
dependencies = [
|
|
184
|
+
"libc",
|
|
185
|
+
]
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "minimal-lexical"
|
|
189
|
+
version = "0.2.1"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
192
|
+
|
|
193
|
+
[[package]]
|
|
194
|
+
name = "nom"
|
|
195
|
+
version = "7.1.3"
|
|
196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
|
198
|
+
dependencies = [
|
|
199
|
+
"memchr",
|
|
200
|
+
"minimal-lexical",
|
|
201
|
+
]
|
|
202
|
+
|
|
203
|
+
[[package]]
|
|
204
|
+
name = "proc-macro2"
|
|
205
|
+
version = "1.0.107"
|
|
206
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
207
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
208
|
+
dependencies = [
|
|
209
|
+
"unicode-ident",
|
|
210
|
+
]
|
|
211
|
+
|
|
212
|
+
[[package]]
|
|
213
|
+
name = "quote"
|
|
214
|
+
version = "1.0.47"
|
|
215
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
216
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
217
|
+
dependencies = [
|
|
218
|
+
"proc-macro2",
|
|
219
|
+
]
|
|
220
|
+
|
|
221
|
+
[[package]]
|
|
222
|
+
name = "rb-sys"
|
|
223
|
+
version = "0.9.130"
|
|
224
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
+
checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb"
|
|
226
|
+
dependencies = [
|
|
227
|
+
"rb-sys-build",
|
|
228
|
+
]
|
|
229
|
+
|
|
230
|
+
[[package]]
|
|
231
|
+
name = "rb-sys-build"
|
|
232
|
+
version = "0.9.130"
|
|
233
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
234
|
+
checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694"
|
|
235
|
+
dependencies = [
|
|
236
|
+
"bindgen",
|
|
237
|
+
"lazy_static",
|
|
238
|
+
"proc-macro2",
|
|
239
|
+
"quote",
|
|
240
|
+
"regex",
|
|
241
|
+
"shell-words",
|
|
242
|
+
"syn 2.0.119",
|
|
243
|
+
]
|
|
244
|
+
|
|
245
|
+
[[package]]
|
|
246
|
+
name = "rb-sys-env"
|
|
247
|
+
version = "0.2.3"
|
|
248
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
249
|
+
checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
|
|
250
|
+
|
|
251
|
+
[[package]]
|
|
252
|
+
name = "regex"
|
|
253
|
+
version = "1.13.1"
|
|
254
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
255
|
+
checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
|
|
256
|
+
dependencies = [
|
|
257
|
+
"aho-corasick",
|
|
258
|
+
"memchr",
|
|
259
|
+
"regex-automata",
|
|
260
|
+
"regex-syntax",
|
|
261
|
+
]
|
|
262
|
+
|
|
263
|
+
[[package]]
|
|
264
|
+
name = "regex-automata"
|
|
265
|
+
version = "0.4.18"
|
|
266
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
+
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
|
|
268
|
+
dependencies = [
|
|
269
|
+
"aho-corasick",
|
|
270
|
+
"memchr",
|
|
271
|
+
"regex-syntax",
|
|
272
|
+
]
|
|
273
|
+
|
|
274
|
+
[[package]]
|
|
275
|
+
name = "regex-syntax"
|
|
276
|
+
version = "0.8.11"
|
|
277
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
278
|
+
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
279
|
+
|
|
280
|
+
[[package]]
|
|
281
|
+
name = "rustc-hash"
|
|
282
|
+
version = "2.1.3"
|
|
283
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
284
|
+
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
|
|
285
|
+
|
|
286
|
+
[[package]]
|
|
287
|
+
name = "rustversion"
|
|
288
|
+
version = "1.0.23"
|
|
289
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
290
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
291
|
+
|
|
292
|
+
[[package]]
|
|
293
|
+
name = "self_cell"
|
|
294
|
+
version = "1.3.0"
|
|
295
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
296
|
+
checksum = "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813"
|
|
297
|
+
|
|
298
|
+
[[package]]
|
|
299
|
+
name = "seq-macro"
|
|
300
|
+
version = "0.3.6"
|
|
301
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
302
|
+
checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
|
|
303
|
+
|
|
304
|
+
[[package]]
|
|
305
|
+
name = "serde"
|
|
306
|
+
version = "1.0.229"
|
|
307
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
308
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
309
|
+
dependencies = [
|
|
310
|
+
"serde_core",
|
|
311
|
+
"serde_derive",
|
|
312
|
+
]
|
|
313
|
+
|
|
314
|
+
[[package]]
|
|
315
|
+
name = "serde_core"
|
|
316
|
+
version = "1.0.229"
|
|
317
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
318
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
319
|
+
dependencies = [
|
|
320
|
+
"serde_derive",
|
|
321
|
+
]
|
|
322
|
+
|
|
323
|
+
[[package]]
|
|
324
|
+
name = "serde_derive"
|
|
325
|
+
version = "1.0.229"
|
|
326
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
327
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
328
|
+
dependencies = [
|
|
329
|
+
"proc-macro2",
|
|
330
|
+
"quote",
|
|
331
|
+
"syn 3.0.10",
|
|
332
|
+
]
|
|
333
|
+
|
|
334
|
+
[[package]]
|
|
335
|
+
name = "shell-words"
|
|
336
|
+
version = "1.1.1"
|
|
337
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
338
|
+
checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
|
|
339
|
+
|
|
340
|
+
[[package]]
|
|
341
|
+
name = "shlex"
|
|
342
|
+
version = "1.3.0"
|
|
343
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
344
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
345
|
+
|
|
346
|
+
[[package]]
|
|
347
|
+
name = "syn"
|
|
348
|
+
version = "2.0.119"
|
|
349
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
350
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
351
|
+
dependencies = [
|
|
352
|
+
"proc-macro2",
|
|
353
|
+
"quote",
|
|
354
|
+
"unicode-ident",
|
|
355
|
+
]
|
|
356
|
+
|
|
357
|
+
[[package]]
|
|
358
|
+
name = "syn"
|
|
359
|
+
version = "3.0.10"
|
|
360
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
361
|
+
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
362
|
+
dependencies = [
|
|
363
|
+
"proc-macro2",
|
|
364
|
+
"quote",
|
|
365
|
+
"unicode-ident",
|
|
366
|
+
]
|
|
367
|
+
|
|
368
|
+
[[package]]
|
|
369
|
+
name = "thiserror"
|
|
370
|
+
version = "2.0.21"
|
|
371
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
372
|
+
checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
|
|
373
|
+
dependencies = [
|
|
374
|
+
"thiserror-impl",
|
|
375
|
+
]
|
|
376
|
+
|
|
377
|
+
[[package]]
|
|
378
|
+
name = "thiserror-impl"
|
|
379
|
+
version = "2.0.21"
|
|
380
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
381
|
+
checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
|
|
382
|
+
dependencies = [
|
|
383
|
+
"proc-macro2",
|
|
384
|
+
"quote",
|
|
385
|
+
"syn 3.0.10",
|
|
386
|
+
]
|
|
387
|
+
|
|
388
|
+
[[package]]
|
|
389
|
+
name = "unicode-ident"
|
|
390
|
+
version = "1.0.27"
|
|
391
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
392
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
393
|
+
|
|
394
|
+
[[package]]
|
|
395
|
+
name = "windows-link"
|
|
396
|
+
version = "0.2.1"
|
|
397
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
398
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|