Skip to content

Commit c6b8e62

Browse files
committed
treewide: Use Rust
This is: - About 4x faster (~25ms to `-p` on my machine vs. ~100ms) - About 6x lower in memory usage (~5MB vs. ~30MB) This is more or less a 1:1 reimplementation, with only a few changes: - contrib/09-timezone is gone. The script was never maintained by upstream, relies a lot on somewhat suspect parsing of gdbus/w/who output, and generally could use some love. No objection to something like this being in here in future, but it should avoid manual parsing of things like gdbus. - --print-system-timezone is gone. As far as I know it was only used for that contrib script. - --debug is now RUST_LOG=tzupdate=... - The short name for --ip is now -i, not -a (...remind me why it was -a again?) - IP-API does not support HTTPS freely, so remove it and only use services which do. - Use HTTPS for worldtimeapi. - FreeGeoIP now does a 301 to https://api.ipbase.com/v1/json/, so just go to there directly. - Added services: reallyfreegeoip and ipwho.is.
1 parent ed74231 commit c6b8e62

20 files changed

+1054
-1037
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)