Commit Graph
2 Commits
Author SHA1 Message Date
4d33021cbe chore: enforce warnings across build configurations (#1200)
* Treat Rust warnings as errors

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix deny-warnings all-target checks

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Enforce warnings across build configurations

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix cross-platform deny-warnings CI

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Limit foreground argv probing to supported platforms

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix Windows warnings denied by CI

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix Windows test warnings under deny-warnings

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix Windows settings test compilation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Gate Windows-unused diff probe helper

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Migrate updater to async ZIP read1 API

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Handle invalid ZIP entry names in read1 API

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Avoid moving ZIP entry name during extraction

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* ci: deny warnings in CI only, keep local builds lenient

Move -D warnings out of .cargo/config.toml so an in-progress local edit
still compiles. The build & test job passes it with --config, which is
appended to the Windows +crt-static rustflags instead of replacing them
the way RUSTFLAGS would. Nightly and release builds no longer fail on
lints; CI gates them. Restore the backdrop parameter name in theme.rs.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com>
2026-10-22 18:25:11 +08:00
l0ng-ai e60bf9f12c fix(mobile): resolve relays behind DNS that sets an EDNS Z flag (#1092)
simple-dns 0.12.0 reads the EDNS OPT record's TTL at the wrong offsets: it
takes the extended RCODE from the low byte, where RFC 6891 puts the DO/Z
flags. A resolver that sets a Z bit -- a Clash-style fake-IP DNS on the
router does -- turns every NOERROR answer into RCODE 16, so iroh resolves
nothing. The gateway never reaches a relay, pairing codes carry none, and
a phone off the LAN cannot connect ("It didn't answer").

Vendor simple-dns 0.12.0 with the offsets fixed and patch it in for both
the desktop and the mobile workspace. tests/edns_z_flag.rs drives iroh's
resolver against a nameserver that sets the flag, from the root package so
CI's default `cargo test` runs it and fails if the patch stops applying.
2026-10-04 16:10:36 +08:00