Skip to content

Commit

Permalink
feat: geoip improvements (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
heilhead authored Sep 29, 2023
1 parent 4120127 commit c5d0d06
Show file tree
Hide file tree
Showing 13 changed files with 442 additions and 453 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ alloc = ["dep:alloc"]
analytics = ["dep:analytics"]
collections = ["dep:collections"]
future = ["dep:future"]
geoblock = ["dep:geoblock", "dep:geoip"]
geoblock = ["geoip/middleware"]
geoip = ["dep:geoip"]
http = []
metrics = ["dep:metrics", "future/metrics", "alloc/metrics", "http/metrics"]
Expand All @@ -39,7 +39,6 @@ alloc = { path = "./crates/alloc", optional = true }
analytics = { path = "./crates/analytics", optional = true }
collections = { path = "./crates/collections", optional = true }
future = { path = "./crates/future", optional = true }
geoblock = { path = "./crates/geoblock", optional = true }
geoip = { path = "./crates/geoip", optional = true }
http = { path = "./crates/http", optional = true }
metrics = { path = "./crates/metrics", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/analytics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ anyhow = "1"
tap = "1.0"

chrono = { version = "0.4" }
aws-sdk-s3 = "0.25"
bytes = "1.2"
aws-sdk-s3 = "0.31"
bytes = "1.5"
parquet = { git = "https://github.com/WalletConnect/arrow-rs.git", rev = "99a1cc3", default-features = false, features = ["flate2"] }
parquet_derive = { git = "https://github.com/WalletConnect/arrow-rs.git", rev = "99a1cc3" }
24 changes: 0 additions & 24 deletions crates/geoblock/Cargo.toml

This file was deleted.

264 changes: 0 additions & 264 deletions crates/geoblock/src/lib.rs

This file was deleted.

21 changes: 18 additions & 3 deletions crates/geoip/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@ name = "geoip"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
full = ["middleware"]
middleware = ["dep:tower", "dep:tower-layer", "dep:axum-client-ip", "dep:http-body"]

[dependencies]
tower = { version = "0.4", optional = true }
tower-layer = { version = "0.3", optional = true }
http-body = { version = "0.4", optional = true }
axum-client-ip = { version = "0.4", optional = true }
bitflags = "2.4"
hyper = "0.14"
tracing = "0.1"
thiserror = "1.0"
futures = "0.3"
bytes = "1.5"
aws-sdk-s3 = "0.31.0"
aws-sdk-s3 = "0.31"
maxminddb = "0.23"
thiserror = "1.0"

[dev-dependencies]
tokio = { version = "1", features = ["full"] }
axum = "0.6"
Loading

0 comments on commit c5d0d06

Please sign in to comment.