From b299d497309d17fbc780e8e2f3a10bc0d6069c54 Mon Sep 17 00:00:00 2001 From: David Bowman Date: Tue, 17 Nov 2026 22:27:18 +0000 Subject: [PATCH] Harden dependency provenance, operator surfaces, and runtime guards Dependency refresh carried in this change: - fancy-regex 0.20, sha2/sha1 0.11, md5 0.8, toml 1.2, toml_edit 0.25, unicode_names2 4.0, and the Eggup pin at fe763189 (zip 9.6.1). - Adapt config/Cargo inspection and text/calc call sites to the new APIs. Security audit follow-ups: - 006: allow-list the reviewed Eggup git source and add a fail-fast dependency-provenance preflight to the release gate; packaging stays intentionally blocked until 007. - 009 operator surface: resolve Windows PowerShell from %SystemRoot%, create Unix staging directories 0700 at creation, and render Windows claude/vscode setup as JSON config blocks. - 009 substrate: explicit fancy-regex limits (250k backtrack steps, 4 MiB delegate), propagate schema-pattern errors through config_preflight, and deny unsafe_code package-wide with two narrow allows. - Register 007 (blocked on an Eggup registry release) and 008 (ADR-0002-gated) with evidence. Plans 006/009 are implemented; 007 is blocked and 008 is proposed. Verified with fmt, generate-docs, clippy -D warnings, the full test suite (skip parity, 4 threads), doc tests, cargo-deny, and the provenance self-test. --- AGENTS.md | 6 +- CHANGELOG.md | 14 + Cargo.lock | 724 ++++++++++++------ Cargo.toml | 27 +- architecture/coding-agent-integration.md | 22 +- architecture/self-update.md | 42 +- architecture/text-library.md | 16 + deny.toml | 7 +- docs/cli.md | 6 +- docs/installation.md | 4 +- docs/release.md | 23 +- .../009-runtime-safety-guards.md | 340 ++++++++ ...dependency-provenance-and-source-policy.md | 351 +++++++++ .../007-eggup-registry-adoption.md | 307 ++++++++ ...ase-authenticity-signature-verification.md | 368 +++++++++ .../009-operator-surface-hardening.md | 332 ++++++++ plans/registry.md | 21 +- .../deterministic-tool-substrate-roadmap.md | 51 +- .../distribution-update-release-roadmap.md | 98 ++- scripts/check-dependency-provenance.py | 288 +++++++ scripts/release-check.sh | 9 + src/calc/normalize.rs | 115 +-- src/integrate.rs | 127 ++- src/mcp/budget.rs | 4 +- src/mcp/execution.rs | 1 + src/text/cargo.rs | 14 +- src/text/line_range.rs | 2 +- src/text/markdown.rs | 2 +- src/text/patch.rs | 2 +- src/text/regex_engine.rs | 73 +- src/text/replace.rs | 2 +- src/text/transform.rs | 12 +- src/text/unicode_policy.rs | 2 +- src/text/validate.rs | 62 +- src/tools/config.rs | 27 +- src/tools/json.rs | 2 +- src/tools/regex.rs | 11 + src/tools/repo.rs | 4 +- src/update.rs | 197 ++++- tests/mcp/test_composite_tools.rs | 51 +- tests/mcp/test_deterministic_real_use.rs | 27 + 41 files changed, 3385 insertions(+), 408 deletions(-) create mode 100644 plans/implementation/deterministic-tool-substrate/009-runtime-safety-guards.md create mode 100644 plans/implementation/distribution-update-release/006-dependency-provenance-and-source-policy.md create mode 100644 plans/implementation/distribution-update-release/007-eggup-registry-adoption.md create mode 100644 plans/implementation/distribution-update-release/008-release-authenticity-signature-verification.md create mode 100644 plans/implementation/distribution-update-release/009-operator-surface-hardening.md create mode 100755 scripts/check-dependency-provenance.py diff --git a/AGENTS.md b/AGENTS.md index 2034ce8..2489fa2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,7 +14,7 @@ cargo test --locked --doc Notes: - `--test-threads=4` is required for integration tests (Tokio blocking-pool starvation), not a product budget. `--lib`/doc tests don't need it. -- Parity is excluded from the merge-blocking `ci.yml` job (the scheduled `parity.yml` workflow still verifies it weekly from PyPI). Full local gate: `scripts/release-check.sh` (requires clean tree + `cargo-deny`; never publishes/tags). +- Parity is excluded from the merge-blocking `ci.yml` job (the scheduled `parity.yml` workflow still verifies it weekly from PyPI). Full local gate: `scripts/release-check.sh` (requires a clean tree, `cargo-deny`, and Python 3.11+; never publishes/tags). It fails fast on dependency provenance before running the test gate. Focused runs: @@ -62,7 +62,8 @@ Parity has 39 accepted failures (C1–C6) documented in `tests/fixtures/accepted - No per-call profile: `tools/call` takes no `profile`; server-wide `EGGCALC_MCP_PROFILE` applies. `Profile::from_str_opt` is strict (`None` on unknown); use `Profile::custom(name)` for custom. Model-facing code uses `available_tools_model_safe()` (`Model` excludes `HarnessOnly`+`Hidden`). - `Discovery` surface (`EGGSACT_MCP_SURFACE=discovery`) is presentation-only; search/invoke enforce the same profile/audience rules. Facades aren't `ToolSpec`s. If touching it, update `tests/mcp/test_discovery.rs`. - Context APIs: `call_json_with_execution_context()` clones `eval_ctx` (mutations don't persist). Use `evaluate_with_context()`/`run_with_context()` for calculator state. `..._context_mut` is deprecated; `with_current_eval_context()` for closure scope. Re-entrant mutable access panics. -- Regex is NOT PCRE2: `compile_regex()` (`src/text/regex_engine.rs`) picks `regex` vs `fancy-regex`; outputs report `engine_used`. +- Regex is NOT PCRE2: `compile_regex()` (`src/text/regex_engine.rs`) picks `regex` vs `fancy-regex`; outputs report `engine_used`. Fancy construction is centralized in `compile_fancy` with explicit limits (`backtrack_limit` 250k, `delegate_size_limit` 4 MiB); a limit failure surfaces as `execution_error` + `INTERNAL_ERROR`, never a no-match. `regex_safety` is advisory only. +- `[lints.rust] unsafe_code = "deny"` is package-wide. The only allows are the two documented sites (`src/mcp/budget.rs`, `src/mcp/execution.rs`); new `unsafe` fails the build. - YAML is heuristic-only: `config_file_inspect` has no YAML parser (`parse_ok` true if non-empty, naive `key: value` scan, `analysis_mode: "heuristic"`). Never treat as syntax validity; `config_preflight` excludes YAML. - Deterministic utils (`ip/cidr/codec/radix/datetime/cron`) use explicit inputs only — no clock, TZ db, env, net. Cron is Vixie/Cronie star syntax: if either DOM/DOW starts with `*` (incl. `*/n`) both must match, else either may; bare `*` is wildcard, explicit full ranges are not. - `serde_json` has `preserve_order` — key order is intentional. @@ -71,6 +72,7 @@ Parity has 39 accepted failures (C1–C6) documented in `tests/fixtures/accepted - `eggsact update` / `eggsact integrate list|detect|` are verified/read-only; they never install a daemon or edit client config. - Self-update transport is `eggup-core`/`eggup-eggfetch`/`eggup-acquisition`/`eggup-eggpack` 0.1.2 over `eggfetch-core` (in-process HTTP/1 + TLS, strict HTTPS-downgrade rejection, explicit env proxy, no external `curl` after install). `eggfetch-core` and `futures-util` are dev-dependencies. Bootstrap `packaging/install.*` still uses external download tooling. Do not add HTTP to the library/MCP API, retries, or extra fetch features without measurement. - Release candidates: `.cargo/config.toml` holds the only release link flags (`/BREPRO`, `/DEBUG:NONE` for `x86_64-pc-windows-msvc`) and is load-bearing for byte-identical rerun reuse. `[profile.release] strip` is a no-op for `windows-msvc` (rustc discards `-C strip` there). Never set `RUSTFLAGS` — it replaces, not extends, target rustflags. Guards: `check-release-contract.py` + `windows_release_link_flags_are_deterministic`; byte proof: `windows-reproducibility` in `maintenance.yml`. See `docs/release.md`. +- Dependency provenance: publishable dependencies must be registry-sourced with a `version`. The four Eggup crates are an interim exact-SHA exception — `deny.toml` allow-lists exactly that repository, and `scripts/check-dependency-provenance.py` (invoked first by `scripts/release-check.sh`) fails the release path until plan 007 lands. `cargo package` fails by design in this state. Never add `version` to a git dependency to make packaging pass: `cargo publish` would resolve the registry release instead of the pinned revision. - Binary releases are Eggpack-produced, not hand-written: `release-binaries.yml` is generated from `release/eggpack/` and is `workflow_dispatch`-only (requires an existing `release_tag`), not tag-triggered. Never hand-edit it — change the Eggpack config and regenerate, or `release-drift.yml` fails on push. Only the `stage` job holds `contents: write`; nothing publishes crates, tags, or the draft. See [cli-binaries.md](architecture/cli-binaries.md). ## Planning diff --git a/CHANGELOG.md b/CHANGELOG.md index 259a43f..215b95d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed (Operator-surface hardening, distribution Milestone 009) + +- Windows `integrate claude` and `integrate vscode` now print a JSON + configuration block plus its target file instead of a `cmd.exe` one-liner. + `cmd.exe` does not honor backslash quote escapes and expands `%VAR%` inside + double quotes, so the previous rendering could misparse an executable path + containing `%PATH%`, `&`, or `^`. Unix output is unchanged. +- The Windows update replacement now spawns PowerShell from the absolute + `%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe` path rather + than resolving `powershell.exe` through the OS search order. A missing + `SystemRoot` or PowerShell component fails closed with no `PATH` fallback. +- Unix update staging directories are created with mode `0700` atomically, + removing the window between `create_dir` and `set_permissions`. + ### Fixed (Deterministic Windows release artifacts, distribution Milestone 005a) - The `x86_64-pc-windows-msvc` release candidate is now byte-reproducible for diff --git a/Cargo.lock b/Cargo.lock index 6871201..c3a9f92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,9 +10,9 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "aho-corasick" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" dependencies = [ "memchr", ] @@ -26,15 +26,6 @@ dependencies = [ "as-slice", ] -[[package]] -name = "arbitrary" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" -dependencies = [ - "derive_arbitrary", -] - [[package]] name = "as-slice" version = "0.2.1" @@ -92,11 +83,26 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block-buffer" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "bumpalo" +version = "3.20.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db" + [[package]] name = "bytes" -version = "1.11.1" +version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" [[package]] name = "caseless" @@ -109,9 +115,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.4.6" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3eb0f42d6c360dc3f8a821f6bf2fdea7f72bfd36b3076eb0e6d1e9e0752fff4" +checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" dependencies = [ "find-msvc-tools", "shlex", @@ -119,9 +125,9 @@ dependencies = [ [[package]] name = "cfg-if" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" [[package]] name = "cfg_aliases" @@ -129,6 +135,21 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" +[[package]] +name = "const-oid" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a" + +[[package]] +name = "constant_time_eq" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eb6feb175df65d0a3ccd3e73484e940d0ac664e8034f0519fd49a93db3071d9" +dependencies = [ + "rustversion", +] + [[package]] name = "core-foundation" version = "0.10.1" @@ -154,11 +175,20 @@ dependencies = [ "libc", ] +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + [[package]] name = "crc32fast" -version = "1.5.0" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" dependencies = [ "cfg-if", ] @@ -173,6 +203,15 @@ dependencies = [ "typenum", ] +[[package]] +name = "crypto-common" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" +dependencies = [ + "hybrid-array", +] + [[package]] name = "cvt" version = "0.1.2" @@ -184,29 +223,29 @@ dependencies = [ [[package]] name = "deranged" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e" [[package]] -name = "derive_arbitrary" -version = "1.4.2" +name = "digest" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.117", + "block-buffer 0.10.4", + "crypto-common 0.1.7", ] [[package]] name = "digest" -version = "0.10.7" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" dependencies = [ - "block-buffer", - "crypto-common", + "block-buffer 0.12.1", + "const-oid", + "crypto-common 0.2.2", ] [[package]] @@ -217,21 +256,21 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] name = "eggfetch-core" -version = "0.2.0" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cd254b82aa20d1becb6e3e90a5103e8bcc2d7057bb13532096326e43cd98904" +checksum = "27463e41d20019d7f1dd877ab2e71d49db14a01e2781766ecc2ef112421e4055" dependencies = [ "base64", "bytes", "eggfetch-http-connect", "futures-core", "futures-util", - "getrandom", + "getrandom 0.2.17", "http", "http-body", "http-body-util", @@ -254,9 +293,9 @@ dependencies = [ [[package]] name = "eggfetch-http-connect" -version = "0.2.0" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b16f85a1fdbc2deb5c705001a1d8ec4c05934175262a62664e634bd09043fde0" +checksum = "dbc41df795f7b7152912bc8fccf424c58ceb76da83eed31096edaef2a9340d5f" dependencies = [ "base64", "thiserror", @@ -265,8 +304,9 @@ dependencies = [ [[package]] name = "eggpack-manifest" -version = "0.1.0" -source = "git+https://github.com/eggstack/eggpack.git?rev=678bbf04f5a02827003a1d9ab83ba4f0e6360e41#678bbf04f5a02827003a1d9ab83ba4f0e6360e41" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37" dependencies = [ "serde", "serde_json", @@ -291,7 +331,7 @@ dependencies = [ "serde", "serde_json", "sha1", - "sha2", + "sha2 0.11.1", "time", "tokio", "toml", @@ -308,33 +348,34 @@ dependencies = [ [[package]] name = "eggup-acquisition" -version = "0.1.2" -source = "git+https://github.com/eggstack/eggup.git?rev=e336b3203183aa84d174e7d7bfa087ce4b61b077#e336b3203183aa84d174e7d7bfa087ce4b61b077" +version = "0.2.0" +source = "git+https://github.com/eggstack/eggup.git?rev=fe763189e4cfe1e0e6d6c62d431717d82b69f9f5#fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" [[package]] name = "eggup-archive" -version = "0.1.2" -source = "git+https://github.com/eggstack/eggup.git?rev=e336b3203183aa84d174e7d7bfa087ce4b61b077#e336b3203183aa84d174e7d7bfa087ce4b61b077" +version = "0.2.0" +source = "git+https://github.com/eggstack/eggup.git?rev=fe763189e4cfe1e0e6d6c62d431717d82b69f9f5#fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" dependencies = [ "flate2", "fs_at", - "sha2", + "sha2 0.10.9", "tar", "zip", ] [[package]] name = "eggup-core" -version = "0.1.2" -source = "git+https://github.com/eggstack/eggup.git?rev=e336b3203183aa84d174e7d7bfa087ce4b61b077#e336b3203183aa84d174e7d7bfa087ce4b61b077" +version = "0.2.0" +source = "git+https://github.com/eggstack/eggup.git?rev=fe763189e4cfe1e0e6d6c62d431717d82b69f9f5#fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" dependencies = [ - "sha2", + "self-replace", + "sha2 0.10.9", ] [[package]] name = "eggup-eggfetch" -version = "0.1.2" -source = "git+https://github.com/eggstack/eggup.git?rev=e336b3203183aa84d174e7d7bfa087ce4b61b077#e336b3203183aa84d174e7d7bfa087ce4b61b077" +version = "0.2.0" +source = "git+https://github.com/eggstack/eggup.git?rev=fe763189e4cfe1e0e6d6c62d431717d82b69f9f5#fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" dependencies = [ "eggfetch-core", "eggup-acquisition", @@ -344,38 +385,53 @@ dependencies = [ [[package]] name = "eggup-eggpack" -version = "0.1.2" -source = "git+https://github.com/eggstack/eggup.git?rev=e336b3203183aa84d174e7d7bfa087ce4b61b077#e336b3203183aa84d174e7d7bfa087ce4b61b077" +version = "0.2.0" +source = "git+https://github.com/eggstack/eggup.git?rev=fe763189e4cfe1e0e6d6c62d431717d82b69f9f5#fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" dependencies = [ "eggpack-manifest", "eggup-acquisition", "eggup-archive", "eggup-core", - "sha2", ] [[package]] name = "equivalent" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] [[package]] name = "fancy-regex" -version = "0.18.0" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1e1dacd0d2082dfcf1351c4bdd566bbe89a2b263235a2b50058f1e130a47277" +checksum = "0a2e16b9a584b602f1e0e5e22c30ca0906786088c27500653e432d086def8b53" dependencies = [ "bit-set", "regex-automata", "regex-syntax", ] +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + [[package]] name = "filetime" -version = "0.2.29" +version = "0.2.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759" +checksum = "e1255e7a9f1902190d4c10a75f2f7f495d3d3ce13e9ba26e6c48683a0f4dbed7" dependencies = [ "cfg-if", "libc", @@ -383,20 +439,26 @@ dependencies = [ [[package]] name = "find-msvc-tools" -version = "0.1.12" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" [[package]] name = "flate2" -version = "1.1.10" +version = "1.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" dependencies = [ "crc32fast", "miniz_oxide", ] +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + [[package]] name = "form_urlencoded" version = "1.2.2" @@ -416,7 +478,7 @@ dependencies = [ "cfg-if", "cvt", "libc", - "nix", + "nix 0.29.0", "windows-sys 0.52.0", ] @@ -443,7 +505,7 @@ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -486,6 +548,19 @@ dependencies = [ "wasi", ] +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi", + "wasm-bindgen", +] + [[package]] name = "hashbrown" version = "0.17.1" @@ -537,15 +612,23 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" +[[package]] +name = "hybrid-array" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17" +dependencies = [ + "typenum", +] + [[package]] name = "hyper" -version = "1.11.1" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" dependencies = [ "atomic-waker", "bytes", - "futures-channel", "futures-core", "http", "http-body", @@ -559,9 +642,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.9" +version = "0.27.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" +checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53" dependencies = [ "http", "hyper", @@ -575,15 +658,16 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.20" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" dependencies = [ "bytes", "futures-channel", "futures-util", "http", "http-body", + "httparse", "hyper", "libc", "pin-project-lite", @@ -595,9 +679,9 @@ dependencies = [ [[package]] name = "icu_collections" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" dependencies = [ "displaydoc", "potential_utf", @@ -609,9 +693,9 @@ dependencies = [ [[package]] name = "icu_locale_core" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" dependencies = [ "displaydoc", "litemap", @@ -622,9 +706,9 @@ dependencies = [ [[package]] name = "icu_normalizer" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" dependencies = [ "icu_collections", "icu_normalizer_data", @@ -636,15 +720,15 @@ dependencies = [ [[package]] name = "icu_normalizer_data" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" [[package]] name = "icu_properties" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" dependencies = [ "displaydoc", "icu_collections", @@ -657,15 +741,15 @@ dependencies = [ [[package]] name = "icu_properties_data" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" [[package]] name = "icu_provider" -version = "2.3.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" dependencies = [ "displaydoc", "icu_locale_core", @@ -699,9 +783,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.14.0" +version = "2.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" dependencies = [ "equivalent", "hashbrown", @@ -709,15 +793,31 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" + +[[package]] +name = "js-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] [[package]] name = "libc" -version = "0.2.186" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "litemap" @@ -727,21 +827,21 @@ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" [[package]] name = "log" -version = "0.4.34" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" [[package]] name = "md5" -version = "0.7.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" +checksum = "7ebb8d8732c6a6df3d8f032a82911cfc747e00efb95cc46e8d0acd5b5b88570c" [[package]] name = "memchr" -version = "2.8.1" +version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "miniz_oxide" @@ -755,9 +855,9 @@ dependencies = [ [[package]] name = "mio" -version = "1.2.3" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8" +checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a" dependencies = [ "libc", "wasi", @@ -776,6 +876,18 @@ dependencies = [ "libc", ] +[[package]] +name = "nix" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77730ed34f01f4990cb2ea67fec715ecebc6fab9a6396cf83c5529b13f581bdc" +dependencies = [ + "bitflags", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "num-conv" version = "0.2.2" @@ -790,9 +902,9 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "openssl-probe" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" +checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" [[package]] name = "pem-rfc7468" @@ -864,9 +976,9 @@ dependencies = [ [[package]] name = "powerfmt" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" +checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958" [[package]] name = "ppv-lite86" @@ -879,27 +991,33 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.106" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.45" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "rand" -version = "0.8.6" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a" +checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" dependencies = [ "libc", "rand_chacha", @@ -922,14 +1040,14 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.17", ] [[package]] name = "regex" -version = "1.12.3" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" dependencies = [ "aho-corasick", "memchr", @@ -939,9 +1057,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.14" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" dependencies = [ "aho-corasick", "memchr", @@ -950,9 +1068,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" [[package]] name = "ring" @@ -962,17 +1080,30 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", - "getrandom", + "getrandom 0.2.17", "libc", "untrusted", "windows-sys 0.52.0", ] +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + [[package]] name = "rustls" -version = "0.23.45" +version = "0.23.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ "log", "once_cell", @@ -985,9 +1116,9 @@ dependencies = [ [[package]] name = "rustls-native-certs" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d" +checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4" dependencies = [ "openssl-probe", "rustls-pki-types", @@ -997,29 +1128,35 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.15.1" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +checksum = "102f35f7de7b06d8c61f1cff6592f5253e0dea431c74867aad5dfd70f44663fb" dependencies = [ "zeroize", ] [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "ring", "rustls-pki-types", "untrusted", ] +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + [[package]] name = "schannel" -version = "0.1.29" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" dependencies = [ "windows-sys 0.61.2", ] @@ -1047,11 +1184,22 @@ dependencies = [ "libc", ] +[[package]] +name = "self-replace" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "609c5606d9d357b26e4ee1a7a01beac396628d0fa01ebbade2a09cefb88e65af" +dependencies = [ + "fastrand", + "tempfile", + "windows-sys 0.61.2", +] + [[package]] name = "serde" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" dependencies = [ "serde_core", "serde_derive", @@ -1059,30 +1207,31 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn 2.0.117", + "syn 3.0.10", ] [[package]] name = "serde_json" -version = "1.0.150" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" dependencies = [ + "foldhash", "indexmap", "itoa", "memchr", @@ -1093,22 +1242,22 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.9" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782" dependencies = [ - "serde", + "serde_core", ] [[package]] name = "sha1" -version = "0.10.6" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214" dependencies = [ "cfg-if", - "cpufeatures", - "digest", + "cpufeatures 0.3.1", + "digest 0.11.3", ] [[package]] @@ -1118,8 +1267,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if", - "cpufeatures", - "digest", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "digest 0.11.3", ] [[package]] @@ -1136,9 +1296,9 @@ checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" [[package]] name = "siphasher" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" +checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256" [[package]] name = "slab" @@ -1148,9 +1308,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.16.1" +version = "1.16.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba467056f1b547ed52077911161fc86985becbc60e8e1857c8a144dab0def891" +checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" [[package]] name = "socket2" @@ -1176,9 +1336,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" -version = "2.0.117" +version = "2.0.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" dependencies = [ "proc-macro2", "quote", @@ -1187,9 +1347,9 @@ dependencies = [ [[package]] name = "syn" -version = "3.0.6" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" dependencies = [ "proc-macro2", "quote", @@ -1204,7 +1364,7 @@ checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -1217,24 +1377,37 @@ dependencies = [ "libc", ] +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + [[package]] name = "thiserror" -version = "2.0.20" +version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "2.0.20" +version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -1269,9 +1442,9 @@ dependencies = [ [[package]] name = "tinystr" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" dependencies = [ "displaydoc", "zerovec", @@ -1279,24 +1452,15 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" +version = "1.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" [[package]] name = "tokio" -version = "1.52.3" +version = "1.54.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" dependencies = [ "bytes", "libc", @@ -1309,20 +1473,20 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.7.0" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.117", + "syn 3.0.10", ] [[package]] name = "tokio-rustls" -version = "0.26.5" +version = "0.26.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c85f2c3ef0b1cd58b36682f4b17aaa995f0e5db534d85692b4903abce21f67" +checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db" dependencies = [ "rustls", "tokio", @@ -1330,44 +1494,55 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.23" +version = "1.2.1+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" +checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7" dependencies = [ - "serde", + "indexmap", + "serde_core", "serde_spanned", "toml_datetime", - "toml_edit", + "toml_parser", + "toml_writer", + "winnow", ] [[package]] name = "toml_datetime" -version = "0.6.11" +version = "1.1.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" dependencies = [ - "serde", + "serde_core", ] [[package]] name = "toml_edit" -version = "0.22.27" +version = "0.25.19+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" +checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218" dependencies = [ "indexmap", - "serde", - "serde_spanned", "toml_datetime", - "toml_write", + "toml_parser", + "toml_writer", "winnow", ] [[package]] -name = "toml_write" -version = "0.1.2" +name = "toml_parser" +version = "1.1.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +dependencies = [ + "winnow", +] + +[[package]] +name = "toml_writer" +version = "1.2.0+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" +checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a" [[package]] name = "tower-service" @@ -1400,6 +1575,12 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "typed-path" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e" + [[package]] name = "typenum" version = "1.20.1" @@ -1420,15 +1601,15 @@ checksum = "0b993bddc193ae5bd0d623b49ec06ac3e9312875fdae725a975c51db1cc1677f" [[package]] name = "unicode-ident" -version = "1.0.26" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" [[package]] name = "unicode-normalization" -version = "0.1.25" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8" +checksum = "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d" dependencies = [ "tinyvec", ] @@ -1441,9 +1622,9 @@ checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" [[package]] name = "unicode_names2" -version = "3.1.0" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82c3e18d850bb6ebd57735e5654f0af65e572b05c2397e7b2b1a7c6a792cc29c" +checksum = "8ba646312acace3c9ec35d7404b58214b6fbf17cbb0d040f35a88407c424447f" dependencies = [ "phf", "unicode_names2_generator", @@ -1451,9 +1632,9 @@ dependencies = [ [[package]] name = "unicode_names2_generator" -version = "3.1.0" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "849744a58c479122ff24910d7ca57f312b62613ef0412dc327776ae6b235d16a" +checksum = "3afbb72a8cff40859641ae4e56679215a15764e5c155a46f0f534611bdc08e0e" dependencies = [ "phf_codegen", "rand", @@ -1485,9 +1666,18 @@ checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" [[package]] name = "utf8_iter" -version = "1.0.4" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" [[package]] name = "version_check" @@ -1497,9 +1687,9 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "want" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b" dependencies = [ "try-lock", ] @@ -1510,20 +1700,64 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +[[package]] +name = "wasm-bindgen" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" +dependencies = [ + "cfg-if", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.10", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" +dependencies = [ + "unicode-ident", +] + [[package]] name = "webpki-roots" version = "0.26.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" dependencies = [ - "webpki-roots 1.0.9", + "webpki-roots 1.0.12", ] [[package]] name = "webpki-roots" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a" +checksum = "7265c9301c16a8711c992c2d8da90ee77ef54b1ed51482d6dfeb00dc756b1297" dependencies = [ "rustls-pki-types", ] @@ -1618,9 +1852,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.7.15" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" dependencies = [ "memchr", ] @@ -1633,9 +1867,9 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" [[package]] name = "yoke" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" dependencies = [ "stable_deref_trait", "yoke-derive", @@ -1644,34 +1878,34 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33811428bee40dbceb6d545e95754741d17a6aef9a4849f0fd62e2ba4f412a78" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", "synstructure", ] [[package]] name = "zerocopy" -version = "0.8.50" +version = "0.8.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b065d4f0e55f82fae73202e189638116a87c55ab6b8e6c2721e13dd9d854ad1" +checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.50" +version = "0.8.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b631b19d36a892ab55420c92dbc83ccd79274f25be714855d3074aa71cab639" +checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.117", + "syn 2.0.119", ] [[package]] @@ -1691,15 +1925,29 @@ checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", "synstructure", ] [[package]] name = "zeroize" -version = "1.9.0" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +checksum = "85ccff8a4805aba1eaa4cd4afcd49f7557dd2cf5fd79ffc37f8959466effc5aa" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] [[package]] name = "zerotrie" @@ -1714,9 +1962,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" dependencies = [ "yoke", "zerofrom", @@ -1725,30 +1973,36 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.6" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] name = "zip" -version = "6.0.0" +version = "9.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb2a05c7c36fde6c09b08576c9f7fb4cda705990f73b58fe011abf7dfb24168b" +checksum = "953a376f4930ed5af88e1e65948385f76866b45e7f75b21ac275327d0eeb9b46" dependencies = [ - "arbitrary", + "constant_time_eq", "crc32fast", "flate2", + "getrandom 0.4.3", "indexmap", + "libc", "memchr", + "nix 0.32.0", + "typed-path", + "windows-sys 0.61.2", + "zeroize", ] [[package]] name = "zmij" -version = "1.0.21" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/Cargo.toml b/Cargo.toml index 34c3412..4415951 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,27 +30,27 @@ base64 = { version = "0.23", default-features = false, features = ["std"] } time = { version = "0.3", default-features = false, features = ["std", "parsing", "formatting"] } serde = { version = "1.0", features = ["derive"] } serde_json = { version = "1.0", features = ["preserve_order"] } -fancy-regex = "0.18" -sha2 = "0.10" -sha1 = "0.10" -md5 = "0.7" +fancy-regex = "0.20" +sha2 = "0.11" +sha1 = "0.11" +md5 = "0.8" crc32fast = "1.4" regex = "1.10" urlencoding = "2.1" unicode-normalization = "0.1" unicode-segmentation = "1.11" unicode-bidi = { version = "0.3", default-features = false, features = ["std"] } -unicode_names2 = "3.1" +unicode_names2 = "4.0" unicode-general-category = "1.1" unicode-ident = "1.0" caseless = "0.2" -toml = "0.8" -toml_edit = "0.22" +toml = "1.2" +toml_edit = "0.25" tokio = { version = "1", features = ["rt", "macros", "io-std", "io-util", "sync", "time", "fs", "net"] } -eggup-acquisition = { git = "https://github.com/eggstack/eggup.git", rev = "e336b3203183aa84d174e7d7bfa087ce4b61b077" } -eggup-core = { git = "https://github.com/eggstack/eggup.git", rev = "e336b3203183aa84d174e7d7bfa087ce4b61b077" } -eggup-eggfetch = { git = "https://github.com/eggstack/eggup.git", rev = "e336b3203183aa84d174e7d7bfa087ce4b61b077" } -eggup-eggpack = { git = "https://github.com/eggstack/eggup.git", rev = "e336b3203183aa84d174e7d7bfa087ce4b61b077" } +eggup-acquisition = { git = "https://github.com/eggstack/eggup.git", rev = "fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" } +eggup-core = { git = "https://github.com/eggstack/eggup.git", rev = "fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" } +eggup-eggfetch = { git = "https://github.com/eggstack/eggup.git", rev = "fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" } +eggup-eggpack = { git = "https://github.com/eggstack/eggup.git", rev = "fe763189e4cfe1e0e6d6c62d431717d82b69f9f5" } [dev-dependencies] url = "2" @@ -82,3 +82,8 @@ harness = false strip = "symbols" lto = "thin" codegen-units = 1 + +# New `unsafe` is a reviewed event. The two sound sites carry narrow +# `#[allow(unsafe_code)]` attributes instead of a package-wide exception. +[lints.rust] +unsafe_code = "deny" diff --git a/architecture/coding-agent-integration.md b/architecture/coding-agent-integration.md index 01569e5..893f2a0 100644 --- a/architecture/coding-agent-integration.md +++ b/architecture/coding-agent-integration.md @@ -45,20 +45,26 @@ Append `--discovery` to a client name to render discovery-mode startup args. |---|---| | Zed | `context_servers.eggsact` JSON settings block | | Codex | `mcp_servers.eggsact` TOML block (the config shape `codex mcp add` consumes) | -| Claude Code | `claude mcp add eggsact -- --mcp` | +| Claude Code | Unix: `claude mcp add eggsact -- --mcp`; Windows: `.claude.json` / `.mcp.json` config block | | Cursor | `mcpServers.eggsact` JSON block | -| VS Code / Copilot | `code --add-mcp` JSON command | +| VS Code / Copilot | Unix: `code --add-mcp` JSON command; Windows: `.vscode\mcp.json` config block | | OpenCode v2 | `mcp.servers.eggsact` local-server JSONC block | These are renderers rather than a configuration abstraction. JSON renderers are parsed in unit tests, and all adapters are checked for the server name, resolved path, and stdio argument. Paths containing spaces are quoted for the -command form and JSON-escaped for config forms. - -Codex and Claude Code currently expose native registration CLIs, and VS Code -exposes `code --add-mcp`; Eggsact still prints those commands without running -them. A future explicit `--install` may use a verified native CLI, but direct -JSONC/TOML editing is intentionally out of scope. +Unix command form and JSON-escaped for config forms. + +Windows `claude` and `vscode` rendering deliberately emits a configuration +block instead of a shell command: `cmd.exe` does not honor backslash quote +escapes and expands `%VAR%` inside double quotes, so a path containing +`%PATH%`, `&`, or `^` could be reinterpreted. The block names its target file; +Eggsact still writes no files. + +Codex and Claude Code expose native registration CLIs, and VS Code exposes +`code --add-mcp`; on Unix Eggsact prints those commands without running them. +A future explicit `--install` may use a verified native CLI, but automatic +client-configuration editing is intentionally out of scope. ## Configuration examples diff --git a/architecture/self-update.md b/architecture/self-update.md index b2efa86..7e48852 100644 --- a/architecture/self-update.md +++ b/architecture/self-update.md @@ -43,7 +43,7 @@ eggsact update │ json → crate.max_stable_version → parse_stable_version ├─ is_already_current(latest <= current)? → print + exit 0 (update.rs:1209) │ (no manifest or artifact download happens at all) - ├─ unique_temp_dir("eggsact-update") → 0700 staging (update.rs:550) + ├─ unique_temp_dir("eggsact-update") → 0700 at creation (update.rs:586) │ └─ target_for_host(OS, ARCH)? (update.rs:150) │ @@ -67,7 +67,7 @@ eggsact update └─ Absent ──→ prepare_legacy_candidate_async (update.rs:995) exact 404 ONLY; asset + .sha256 sidecar, or Cargo │ - └─ commit: shared tail commit_artifact_set (update.rs:1091) + └─ commit: shared tail commit_artifact_set (update.rs:1190) root = current_exe.parent() InstallPlan::new(product, release, root, set) → prepare() (private staging) @@ -254,12 +254,15 @@ not the `M003 — Eggfetch 0.1.7 bump` milestone in ## Verification and safety -`commit_artifact_set` ([update.rs:1091](../src/update.rs)) is the shared tail for +`commit_artifact_set` ([update.rs:1190](../src/update.rs)) is the shared tail for both sources; only `ArtifactSet` construction differs. The order is fixed: 1. **Private staging.** `prepare()` stages outside the install root; the install root is `current_exe.parent()`, so canonical and renamed installations both - update in place. + update in place. The updater's own temp directory is created with mode + `0700` at creation time on Unix (`unique_temp_dir` / + `create_private_dir`), so no world-readable window exists between + `create_dir` and a permission change. 2. **SHA-256 integrity.** `verify_integrity()` enforces the `IntegrityRequirement` (manifest digest/size, legacy sidecar digest, or the Cargo self-measured digest). Under-sizing fails at adapter materialization; over-sizing is rejected during @@ -305,8 +308,14 @@ handed to the existing detached PowerShell helper rather than replaced inline. `replace_current` copies the candidate to a sibling path derived from the running executable's name (its extension replaced with `eggsact-update-.exe`), derives a status path the same way (`eggsact-update-.status`), and spawns -`powershell.exe -NoProfile -NonInteractive -Command