Repository navigation
Conversation
Quest-Claim: 849684300b525059
Drop moq_crypto::cpu::check and UnsupportedCpu, since rind 0.4 has no runtime CPU check, and move every caller to the adapters' upstream APIs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 12, 2026
Resolves the merge with main (upstream str0m with rind-str0m, moq-e2ee as its own crate) and follows what rind 0.4.0 now carries: no `wipe` feature, the per-algorithm signature modules, HKDF's fallible-in-FIPS extract and expand, rind-jsonwebtoken 12 with jsonwebtoken 12, rind-rcgen 0.14.5, and rind-str0m 0.25.3. Drops the CPU checks main added since, and the moq-crypto dependencies they alone needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixel-ai/rind#992 undid the adapters' double version bump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves MoQ to rind 0.4 and the adapter releases that publish with it (kixel-ai/rind#511), so
mainkeeps building the day they publish. Finishes quest/m0/rind-adapters.md.Problem
rind 0.4.0 is breaking, and every adapter MoQ uses moves to it in the same release: once they publish, the first
Cargo.lockupdate breaks MoQ's build. rind holds that release until this PR is ready, so the two land together.Approach
Cargo.toml:rind0.4.0 (itswipefeature is gone, since keys always wipe: kixel-ai/rind#609),rind-jsonwebtoken12.0.0 withjsonwebtoken12 (kixel-ai/rind#948),rind-object-store0.14.4,rind-rcgen0.14.4,rind-rustls0.23.4,rind-str0m0.25.3 (bringingrind-dimpl0.9.4).Cargo.lockstaysmain's: those versions are not on crates.io yet, so CI cannot resolve this branch until they publish.rind_rustls::default_provider(),rind_object_store::default_provider(), andrind_str0m::default_provider()lose their.unwrap()/.expect(..)/?;rind_jsonwebtoken::DEFAULT_PROVIDERis a static;KeyPair::generate(&alg)becomesgenerate_for(&alg);to_pkcs8().secret_pkcs8_der()becomesserialize_der()/serialized_der().rind::signature::{EcdsaKeyPair, Ed25519KeyPair, RsaKeyPair, sign}torind::{ecdsa, ed25519, rsa}. HKDF'sSalt::extractandPrk::expandnow return aResultthat rind documents as never failing (rind-fips, which shares the API, refuses an empty salt orinfo), so moq-quic and moq-e2ee.expectit; a length-only expand becomesPrk::fill. MoQ calls no ML-KEM (kixel-ai/rind#606).EncodingKey::from_secretandDecodingKey::from_secretrefuse an empty key and so return aResult, which moq-auth propagates; moq-auth already refuses an HMAC secret below its minimum at import, so no key it accepts changes.moq_crypto::cpu::checkandmoq_crypto::cpu::UnsupportedCpuare deleted;moq_crypto::cpukeeps only theDitre-export, and moq-crypto dropsthiserror.moq_crypto::provider::provider()returnsProviderandinstall_default()returns(), since neither can fail now.moq_tokio::cryptofollows, and itscheck/UnsupportedCpure-exports go.UnsupportedCpuerror variants go from moq-auth, moq-e2ee, moq-hls, moq-quic, moq-rtmp, moq-tokio (TLS, mdns, QUIC backend), moq-uring, moq-webrtc, and qmux, with the doc comments that named them. moq-webrtc's privatertc_config(),rtc_config_with_codecs, andrtc_with_codecslose theirResult.client,async).doc/bin/relay/index.mdno longer says an unsupported CPU fails startup.quest/m3/release/cut.md.Impact
Breaking (
!):cpu::checkandcpu::UnsupportedCpuremoved;provider::provider()returnsProviderinstead ofResult<Provider, UnsupportedCpu>;provider::install_default()returns().crypto::checkandcrypto::UnsupportedCpuremoved;crypto::provider()/install_default()as above;UnsupportedCpuvariants removed from its TLS, mdns, and QUIC backend errors.UnsupportedCpuvariant (moq-e2ee too, unpublished).Migration: drop calls to
cpu::check(), drop the?/.unwrap()afterprovider()andinstall_default(), and delete match arms onUnsupportedCpu. rind 0.4 requires only the CPU features its target enables at compile time, so there is nothing left to refuse at run time.Behavior: moq-auth's verify now refuses a token whose header has a
critnaming anything butb64, orb64: false, as jsonwebtoken 12 does and RFC 7515 requires; js/auth'sjosealready refuses them. jsonwebtoken 12's strictersub/iss/audchecks reach no MoQ path, since moq-auth validates those claims itself.Wire: none.
Alternatives
cpu::checkas a check that cannot fail: rejected, since aResultthat is neverErris the compatibility shim the guidelines forbid.Resultas a new error variant: rejected, since callers would match an error rind says cannot happen.Decisions
rind-rcgen0.14.4 ✅ (rejected: 0.14.5), since kixel-ai/rind#992 undid the adapters' double version bump and chore(moq-lite): release v0.6.1 #511 (headcc72a1ed94) now publishes 0.14.4.cpu::checkandUnsupportedCpu✅ (rejected: keep a check that cannot fail). That madeprovider()andinstall_default()infallible, which the quest's "moq_crypto::providerkeeps its signatures" did not anticipate..expectHKDF's never-failingResult✅ (rejected: a new error variant per crate), and accept jsonwebtoken 12'scritrefusal as is ✅ (rejected: working around it), since RFC 7515 requires it and js/auth already refuses.Validation
rind 0.4 is not published, so the branch was checked against kixel-ai/rind
main(1072fa4f7e) plus #511's version bumps, i.e. #511's headdb8643e97e, exported withgit archiveand patched in through an uncommitted[patch.crates-io]for rind, rind-rustls, rind-jsonwebtoken, rind-object-store, rind-rcgen, rind-str0m, and rind-dimpl.cargo treeresolves one rind, 0.4.0, and jsonwebtoken 12.0.0.Commands, run in the dev shell through
quest gate, with the[patch.crates-io]appended to the rootCargo.tomlandCargo.lockresolved against it (both restored before committing):cargo check --workspace --all-targets --all-features: passes with no warnings.CHECK_MODULES="rs rs_cross toml markdown quest text" just ci origin/main:check rs(fmt, clippy, shear, sort, hakari),check rs_cross, markdown, quest, text, and toml pass. Itstest rsstopped at fail-fast on two moq-net tests (late_lower_group::an_unfloored_lite05_join_drops_a_group_created_below_the_first_served_group,late_tail_reader::a_latest_reader_reads_a_finished_untimed_group) that timed out waiting on the host's test scheduler under load; moq-net does not depend on rind.just rs test --no-fail-fastover every crate that reaches rind (moq-auth, moq-crypto, moq-e2ee, moq-hls, moq-quic, moq-relay, moq-rtmp, moq-tokio, moq-webrtc, moq-cli, moq-uring, qmux, moq-archive, moq-bench): 3500 passed. Its first run caught a merge regression, the WHIP server building its str0m config without rind's provider (7 moq-webrtc failures,No crypto provider available), fixed by building it fromsession::rtc_config().just rs test --no-fail-fastover the rest that reach rind through them (hang, libmoq, moq-audio, moq-boy, moq-ffi, moq-gst, moq-interop, moq-mux, moq-rtsp, moq-srt, moq-transcode, moq-video): 3862 passed.After #992, the
rind-rcgen0.14.4 change was checked against #511's new headcc72a1ed94under the same uncommitted patch:cargo check --workspace --all-featurespasses and resolves rind 0.4.0 and rind-rcgen 0.14.4. Plaincargo check --workspacestops in moq-net, which does not depend on rind: itsfuzzmodule callsorigin::Config::new, which onlytest-supportbuilds;cargo check -p moq-net --features fuzzfails the same way, so the break is already onmain(moq-dev/moq#9505 fixes it). The tests were not rerun for this version-only change.Those tests drive the real surfaces end to end: the relay's TLS, QUIC, WebTransport, and JWT paths (
moq-relayintegration,auth_lifetime), WHIP/WHEP over DTLS on rind-str0m (whip_and_whep_round_trip_opus), and the archive's object-store clients.just ciover every module did not run here; it runs once the lockfile resolves.Waiting
cargo search rindshows 0.4.0 and that each adapter's release requires rind 0.4, fromhttps://crates.io/api/v1/crates/<crate>/<version>/dependencies; correct the requirements inCargo.tomlif a version moved, runcargo update -p rind -p rind-rustls -p rind-jsonwebtoken -p rind-object-store -p rind-rcgen -p rind-str0m -p jsonwebtoken, thencargo hakari generateandjust ci, and mark ready.Follow-ups
MIGRATE.mdfor moq-auth, moq-crypto, moq-hls, moq-rtmp, and moq-tokio still describe the unsupported-CPU error, and moq-auth's still links moq-dev/rind; the next release cut writes the migration above into them.Models
Size: M
Implementer: Claude Code, claude-opus-5-5, unknown effort
Implementer: Claude Code, claude-opus-5-5, high effort (iterate, M)
🤖 Generated with Claude Code
(Written by Claude Opus 5.5 with high)