| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Without this, the build fails with
cargo test --workspace --no-default-features --features=tokio,native-tls
|
| |\
| |
| |
| |
| | |
lints: Promote clippy::print_stderr and clippy::print_stdout
See merge request tpo/core/arti!1271
|
| | |
| |
| |
| |
| | |
I prepared 161b9844d against an earlier version of main without the
geoip crate. Run maint/add_warning again.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
(There are plenty of strings that convert into 2 bytes of UTF8
without being two ascii characters, and there are plenty of
sequences of two ascii characters that aren't printable.)
|
| |/
|
|
| |
We want to make sure that ?? is always None, never a CountryCode.
|
|
|
- This adds a new crate, `tor-geoip`, which can parse and perform
lookups in the GeoIP database C-tor already uses (generated by a
maintenance utility in the C-tor codebase).
- We embed a copy of C-tor's databases with the crate and use
`include_str!` to ship them with the binary, bloating its size
somewhat.
- This does, however, solve the problem of figuring out how to
distribute these.
- The plan is to gate this functionality behind a feature flag anyway,
so the cost should be nil unless explicitly opted into.
Part of tpo/core/onionmasq#47.
|