Skip to content

build: require rustler_precompiled 0.10.1 and move to OTP 29.1.2 and Elixir 1.20.5 - #48

Merged
shahryarjb merged 5 commits into
mainfrom
chore/otp-29-header-fix-and-deps
Oct 30, 2026
Merged

shahryarjb merged 5 commits into
mainfrom
chore/otp-29-header-fix-and-deps

Conversation

@shahryarjb

@shahryarjb shahryarjb commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

OTP 29.0.6+ :httpc rejects GitHub's larger redirect headers; rustler_precompiled 0.10.1 raises the limit, so the NIF downloads on the latest OTP again.

  • Requires rustler_precompiled >= 0.10.1; .tool-versions → Erlang 29.1.2, Elixir 1.20.5, Rust 1.99.1; every Hex dep at its latest (sobelow 0.18.1; rustler stays 0.38.0, newest on Hex); Cargo.lock and proptest 1.12 updated, biome stays 0.5.8 (rowan 0.7.0 does not compile with it).
  • Local on OTP 29.1.2: the precompiled NIF downloads and loads, the source build passes, 374 tests and 449 cargo tests pass.
    🤖 Generated with Claude Code

shahryarjb and others added 5 commits October 30, 2026 19:44
rustler_precompiled 0.10.1 raises the :httpc max_header_size option to 65536.
Earlier releases cannot download the precompiled NIF on OTP 29.0.6 and newer,
where :httpc rejects response headers over 10240 bytes and GitHub's release
redirects now exceed that. The requirement is now "~> 0.10 and >= 0.10.1" so
no resolution can fall back to a release with the problem.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The project no longer has to stay on an older OTP to download precompiled
NIFs, so .tool-versions moves to the newest stable Erlang/OTP 29 and
Elixir 1.20 release, and to the newest stable Rust toolchain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Every other Hex dependency was already at its newest release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Direct: proptest 1.11.0 -> 1.12.0 (dev; requirement raised from "1" to "1.12").

Transitive, via cargo update: addr2line 0.25.1 -> 0.27.1, backtrace 0.3.76 ->
0.3.77, bit-set 0.8.0 -> 0.11.1, bit-vec 0.8.0 -> 0.10.1, bitflags 2.13.1 ->
2.13.2, bpaf 0.9.27 -> 0.9.28, cfg-if 1.0.4 -> 1.0.5, equivalent 1.0.2 ->
1.0.3, gimli 0.32.3 -> 0.34.0, inventory 0.3.24 -> 0.3.25, libc 0.2.189 ->
0.2.191, miniz_oxide 0.8.9 -> 0.9.1, object 0.37.3 -> 0.40.0, rand 0.9.5 ->
0.10.3, rand_core 0.9.5 -> 0.10.1, rand_xorshift 0.4.0 -> 0.5.0, rustix 1.1.4
-> 1.1.6, serde_json 1.0.151 -> 1.0.154, smallvec 1.16.0 -> 1.16.4, syn 3.0.5
-> 3.0.9, unicode-ident 1.0.24 -> 1.0.27. The proptest and rustler dependency
trees also gained borsh, bytes, cfg_aliases, chacha20, core_detect, cpufeatures,
foldhash, proc-macro-crate, toml_datetime, toml_edit, toml_parser and winnow, and
dropped getrandom 0.3, ppv-lite86, r-efi, rand_chacha, wasip2, wit-bindgen and
zerocopy.

Kept: rustler =0.38.0, which must equal the Hex rustler 0.38.0 (crate 0.39.0 is
not on Hex), and biome_css_parser, biome_css_syntax and biome_rowan =0.5.8.
biome_rowan 0.7.0 is published, but biome_css_parser and biome_css_syntax 0.5.8
are the newest and require biome_rowan ^0.5.7; with 0.7.0 the crate fails to
compile (26 errors, two incompatible biome_rowan versions). The Cargo.toml
comment now says so.

Verified with these exact versions: cargo fmt, cargo clippy -D warnings and
cargo test (449 passed), then mix compile --warnings-as-errors, mix test (374
passed), mix format and mix credo --strict with the NIF built from source.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shahryarjb
shahryarjb merged commit 9e21150 into main Oct 30, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant