Skip to content

Commit 9c0ff79

Browse files
chore: reduce visitor_id length, switch to the config crate
Signed-off-by: Henry <mail@henrygressmann.de>
1 parent 416517f commit 9c0ff79

17 files changed

Lines changed: 364 additions & 447 deletions

Cargo.lock

Lines changed: 82 additions & 191 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ quick_cache={version="0.6", features=["ahash"]}
2828

2929
# encoding
3030
hex={version="0.4"}
31-
bs58="0.5"
3231
serde={version="1.0", features=["derive"]}
3332
serde_json={version="1.0"}
3433
md-5={version="0.11.0"}
@@ -47,7 +46,7 @@ argh={version="0.1", default-features=false, features=["help"]}
4746
anyhow={version="1.0"}
4847
rand={version="0.10", default-features=false, features=["std", "thread_rng"]}
4948
chrono={version="0.4", default-features=false, features=["std", "now", "serde"]}
50-
figment={version="0.10", features=["toml", "env"]}
49+
config={version="0.15", default-features=false, features=["toml"]}
5150
tracing={version="0.1", default-features=false, features=["std"]}
5251
tracing-subscriber={version="0.3", features=["env-filter"]}
5352
ahash="0.8"
@@ -96,11 +95,11 @@ maxminddb={version="0.27", optional=true, features=["simdutf8"]}
9695
mimalloc={version="0.1", features=["v3"]}
9796

9897
[dev-dependencies]
99-
figment={version="*", features=["test"]}
98+
tempfile={version="3"}
10099
cookie={version="*", default-features=false}
101100
tower={version="*", features=["util"]}
102101
axum-test={version="20"}
103-
criterion={version="0.5", default-features=false}
102+
criterion={version="0.8", default-features=false}
104103

105104
[features]
106105
default=["geoip"]

benches/reports.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn configure_group(group: &mut criterion::BenchmarkGroup<'_, criterion::measurem
1212
}
1313

1414
fn benchmark_reports(c: &mut Criterion) {
15-
let config = Config::load(None).expect("failed to load config");
15+
let config = Config::load(None, std::env::vars()).expect("failed to load config");
1616
let app = Liwan::try_new(config).expect("failed to initialize app");
1717

1818
let project = app

data/images/liwan-desktop-dark.png

119 KB
Loading
136 KB
Loading

data/images/liwan-desktop-full.png

133 KB
Loading

data/images/liwan-desktop.png

116 KB
Loading

data/licenses-cargo.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/licenses-npm.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/spammers.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ iblogpress.xyz
10041004
iceton.net
10051005
ico.re
10061006
ideayz.com
1007+
ieamblog.online
10071008
ieeeoutlet.xyz
10081009
igadgetsworld.com
10091010
igamingtop.com
@@ -1060,6 +1061,7 @@ jabug.xyz
10601061
jacblog.xyz
10611062
jackonline.store
10621063
janemill.xyz
1064+
jariblog.online
10631065
jav-fetish.com
10641066
jav-fetish.site
10651067
jav-idol.com
@@ -1797,6 +1799,7 @@ shoppingmiracles.co.uk
17971799
shoprybalka.ru
17981800
shops-ru.ru
17991801
shopsellcardsdumps.com
1802+
shsupplychain.com
18001803
shtaketniki.ru
18011804
shtormmall.xyz
18021805
shulepov.ru

0 commit comments

Comments
 (0)