dependabot[bot]
68ddff2da0
chore(deps): bump the cargo-dependencies group across 1 directory with 12 updates
...
Bumps the cargo-dependencies group with 12 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [jixel](https://github.com/awxkee/jixel ) | `0.3.4` | `0.5.10` |
| [log](https://github.com/rust-lang/log ) | `0.4.34` | `0.4.35` |
| [crc32fast](https://github.com/srijs/rust-crc32fast ) | `1.5.3` | `1.5.5` |
| [candle-core](https://github.com/huggingface/candle ) | `0.9.2` | `0.11.1` |
| [candle-nn](https://github.com/huggingface/candle ) | `0.9.2` | `0.11.1` |
| [wgpu](https://github.com/gfx-rs/wgpu ) | `30.0.1` | `30.0.2` |
| [rfd](https://github.com/PolyMeilex/rfd ) | `0.17.2` | `0.18.0` |
| [harfrust](https://github.com/harfbuzz/harfrust ) | `0.13.3` | `0.16.0` |
| [rustls-rustcrypto](https://github.com/RustCrypto/rustls-rustcrypto ) | `0.0.2-alpha` | `0.1.0-pre.0` |
| [webpki-roots](https://github.com/rustls/webpki-roots ) | `1.0.10` | `1.0.12` |
| [flate2](https://github.com/rust-lang/flate2-rs ) | `1.1.10` | `1.1.11` |
| [brotli](https://github.com/dropbox/rust-brotli ) | `9.0.0` | `9.1.3` |
Updates `jixel` from 0.3.4 to 0.5.10
- [Release notes](https://github.com/awxkee/jixel/releases )
- [Commits](https://github.com/awxkee/jixel/compare/0.3.4...0.5.10 )
Updates `log` from 0.4.34 to 0.4.35
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.34...v0.4.35 )
Updates `crc32fast` from 1.5.3 to 1.5.5
- [Commits](https://github.com/srijs/rust-crc32fast/compare/v1.5.3...v1.5.5 )
Updates `candle-core` from 0.9.2 to 0.11.1
- [Changelog](https://github.com/huggingface/candle/blob/main/CHANGELOG.md )
- [Commits](https://github.com/huggingface/candle/commits )
Updates `candle-nn` from 0.9.2 to 0.11.1
- [Changelog](https://github.com/huggingface/candle/blob/main/CHANGELOG.md )
- [Commits](https://github.com/huggingface/candle/commits )
Updates `wgpu` from 30.0.1 to 30.0.2
- [Release notes](https://github.com/gfx-rs/wgpu/releases )
- [Changelog](https://github.com/gfx-rs/wgpu/blob/trunk/CHANGELOG.md )
- [Commits](https://github.com/gfx-rs/wgpu/compare/wgpu-v30.0.1...wgpu-v30.0.2 )
Updates `rfd` from 0.17.2 to 0.18.0
- [Release notes](https://github.com/PolyMeilex/rfd/releases )
- [Changelog](https://github.com/PolyMeilex/rfd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PolyMeilex/rfd/compare/0.17.2...0.18.0 )
Updates `harfrust` from 0.13.3 to 0.16.0
- [Release notes](https://github.com/harfbuzz/harfrust/releases )
- [Changelog](https://github.com/harfbuzz/harfrust/blob/main/CHANGELOG.md )
- [Commits](https://github.com/harfbuzz/harfrust/compare/0.13.3...0.16.0 )
Updates `rustls-rustcrypto` from 0.0.2-alpha to 0.1.0-pre.0
- [Changelog](https://github.com/RustCrypto/rustls-rustcrypto/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RustCrypto/rustls-rustcrypto/compare/v0.0.2-alpha...v0.1.0-pre.0 )
Updates `webpki-roots` from 1.0.10 to 1.0.12
- [Release notes](https://github.com/rustls/webpki-roots/releases )
- [Commits](https://github.com/rustls/webpki-roots/compare/v/1.0.10...v/1.0.12 )
Updates `flate2` from 1.1.10 to 1.1.11
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Changelog](https://github.com/rust-lang/flate2-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.1.10...v1.1.11 )
Updates `brotli` from 9.0.0 to 9.1.3
- [Release notes](https://github.com/dropbox/rust-brotli/releases )
- [Commits](https://github.com/dropbox/rust-brotli/compare/9.0.0...9.1.3 )
---
updated-dependencies:
- dependency-name: brotli
dependency-version: 9.1.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-dependencies
- dependency-name: candle-core
dependency-version: 0.11.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-dependencies
- dependency-name: candle-nn
dependency-version: 0.11.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-dependencies
- dependency-name: crc32fast
dependency-version: 1.5.5
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-dependencies
- dependency-name: flate2
dependency-version: 1.1.11
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-dependencies
- dependency-name: harfrust
dependency-version: 0.16.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-dependencies
- dependency-name: jixel
dependency-version: 0.5.7
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-dependencies
- dependency-name: log
dependency-version: 0.4.35
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-dependencies
- dependency-name: rfd
dependency-version: 0.18.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-dependencies
- dependency-name: rustls-rustcrypto
dependency-version: 0.1.0-pre.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-dependencies
- dependency-name: webpki-roots
dependency-version: 1.0.12
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-dependencies
- dependency-name: wgpu
dependency-version: 30.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-11-19 04:33:41 +00:00
Dylan M. Taylor
c1a4fddca4
security: O(width) box-blur priming, case-insensitive download names, stats walk skips directory links ( #3729 )
...
* security: box blur window sum in O(width), case-insensitive download name uniqueness, stats walk does not follow directory links
* address review: skip the last-pixel term when the radius does not reach it
2026-11-11 14:34:25 -05:00
aiongg
8329733e84
Merge PR #3283 : Refuse a signed or malformed Content-Length in HTTP responses
2026-10-31 02:06:44 +00:00
aiongg
f6d9821561
Merge PR #3234 : Reject signed numbers in Content-Range parsing
2026-10-31 02:06:44 +00:00
aiongg
4a491c34e3
Merge PR #3233 : Reject signed ports in Url::parse
2026-10-31 02:06:44 +00:00
NetterSilver and Claude Haiku 5.5
04a6224dab
Refuse a signed or malformed Content-Length in HTTP responses
...
Found while testing crates/fetch/src/http.rs:598 (get)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-29 00:06:22 +00:00
NetterSilver and Claude Haiku 5.5
73f0d25405
Reject signed numbers in Content-Range parsing
...
Found while testing crates/fetch/src/lib.rs:465 (parse_content_range)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-28 09:09:41 +00:00
NetterSilver and Claude Haiku 5.5
13849307a9
Reject signed ports in Url::parse
...
Found while testing crates/fetch/src/http.rs:140 (Url::parse)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-28 08:57:39 +00:00
NetterSilver and Claude Haiku 5.5
d2e6222a22
Reject signed chunk sizes in the HTTP chunked decoder
...
Found while testing crates/fetch/src/http.rs:522
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-25 06:57:27 +01:00
aiongg
2ba2c38d3f
Merge PR #2431 : Keep file name and query for fragment-only redirect Location
2026-10-22 02:38:11 +00:00
aiongg
f0951e819c
Merge PR #2410 : Match URL schemes case-insensitively in Url::parse and Url::join
...
crates/fetch/src/http.rs: keeps #2406 's remove_dot_segments and #2410 's strip_scheme helpers; tests keep all three PRs' cases
2026-10-22 02:38:10 +00:00
aiongg
4438e2bb64
Merge PR #2406 : Remove dot segments when resolving redirect Locations
...
crates/fetch/src/http.rs: tests keep #2404 's join_query_only_keeps_file_name and #2406 's join_removes_dot_segments
2026-10-22 02:37:54 +00:00
NetterSilver and Claude Haiku 5.5
c3a5d9b7f1
Keep file name and query for fragment-only redirect Location
...
Found while testing crates/fetch/src/http.rs:139 (Url::join)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-21 01:13:10 +00:00
NetterSilver and Claude Haiku 5.5
dee5f7910a
Match URL schemes case-insensitively in Url::parse and Url::join
...
Found while testing crates/fetch/src/http.rs:71 (Url::parse), also Url::join at :115
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-20 19:17:55 +02:00
NetterSilver and Claude Haiku 5.5
cee9349658
Remove dot segments when resolving redirect Locations
...
Found while testing crates/fetch/src/http.rs:136 (Url::join)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-20 15:21:33 +00:00
NetterSilver and Claude Haiku 5.5
78f0e6e650
Keep file name when a redirect Location is query-only
...
Found while testing crates/fetch/src/http.rs:139 (Url::join)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-20 17:03:00 +02:00
Brandon Thomas
d43dd1fc8f
Merge PR #1778 : Model downloads: Time out and cancel the name lookup ( #1532 )
2026-10-18 10:05:47 -04:00
Michael Anderson
19008bdee9
Test cancelling a name lookup while it waits
2026-10-18 08:36:24 -05:00
Brandon Thomas
2c60d2ab27
Merge PR #1778 : Model downloads: Time out and cancel the name lookup ( #1532 )
2026-10-18 09:22:41 -04:00
NetterSilver and Claude Haiku 5.5
edc369565e
Reject trailing text after a bracketed IPv6 host in Url::parse
...
Found while testing crates/fetch/src/http.rs:87-102
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com >
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-17 04:17:46 +02:00
Michael Anderson
ef216d2110
Merge remote-tracking branch 'upstream/main' into fix/1532-dns-deadline
...
# Conflicts:
# docs/whats-new.md
2026-10-14 23:29:27 -05:00
Michael Anderson
e65b97e239
Model downloads: Time out and cancel the name lookup ( #1532 )
...
The host name lookup blocked with no deadline before the cancel check, and each address then got the full connect timeout. The lookup now runs on a helper thread under the connect deadline, which all addresses share.
2026-10-14 13:56:34 -05:00
Michael Anderson
bb9d3d4022
Catalog and downloads: Don't write through a link at a temp file's name ( #1502 )
2026-10-14 13:13:27 -05:00
MarekSpodBiedry
4a91a1c218
Fetch: refuse a redirect from https to http ( #1531 )
2026-10-13 16:35:28 +02:00
Claude
cab6af8608
Fetch: say where the bearer token goes ( #259 )
...
The token_env comment said the token goes to the first mirror's host; it
goes to every configured mirror's own host (never to a redirect's).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01912WaK6Rmew3wxZuPyX7E8
2026-10-08 17:55:31 +00:00
Daniel Voshart and Claude Opus 5.5
8dd3afce51
Fetch: validate caller-supplied names, sizes and hashes; FileSpec borrows its strings; download_url for an exact address
...
The fetch crate is about to serve downloads whose file names, sizes and addresses come from a user-editable list,
so it checks them before touching the disk: an ordinary, unique file name (no separators, drive or stream
syntax, control characters, trailing dots, Windows device names or .part suffix), a non-zero size within the
caller's bound, a well-formed SHA-256, bounded file, mirror and attempt counts, and URLs capped at 16 KiB.
FileSpec now borrows its strings (callers with static names are unchanged) so a name read from a file needs no
leaking. download_url fetches one file from an exact address, query string included, for signed links.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-07 22:59:22 -04:00
Daniel Voshart and Claude Sonnet 5.5
4b57d5dc5a
Fetch: a bearer token is sent only when the caller names its variable
...
Options::token_env (default none) replaces the hard-coded LIGHTCRAFT_SAM3_TOKEN, so a download of one model can
never send another model's token to its host. SAM 3 names its variable through lightcraft_segment::fetch::options().
The decision (non-empty, https, the host the download began at) is a small function with its own test.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-07 22:59:01 -04:00
Brandon Thomas and Claude Opus 5.5
f0632e7022
Fetch: crate root forbids unsafe and denies panicking lints, like every other crate
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-07 19:56:42 -04:00
Daniel Voshart and Claude Sonnet 5.5
7fa7506db4
Fetch: the model downloader is its own crate, lightcraft-fetch
...
The downloader in lightcraft-segment (mirrors, resume, pinned SHA-256, pure-Rust
HTTPS) was already generic apart from four SAM 3 constants. Move it to
crates/fetch (L0, native only) so other model features can use it without
depending on the SAM 3 inference code. lightcraft-segment keeps SAM3_FILES,
DEFAULT_MIRRORS, MIRRORS_ENV and wraps mirrors(); no behaviour change. The
downloader's 13 tests moved with it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-07 12:07:24 -04:00