Repository navigation
Bundle 2: registry facades and zero-unsafe UATs for libcurl, sqlite3, sdl, raylib - #3662
Merged
Merged
Conversation
added 8 commits
November 27, 2026 15:25
…registry hints; update err_3129 for D246
Contributor
Author
|
Seed-driven battery verdict ( Marking ready and merging. |
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.
Closes #3143
Closes #3111
Closes #3146
Closes #3157
Closes #3159
Summary
Bundled registry facades and supporting compiler foundations verified under a single seed-driven battery:
Compiler Foundations
828cd77ae): Carryc facts NAME error E:, top-leveldomain/preserves domain/handle/message(D216), rich pointer-resource clauses (from f(out param N),abandon,ok,message,borrows,independent,thread,requires domain),fncontract clauses (rename,preserves,callbacks none,present cases,valid on failed,null status,consumes ... destroyed_by,callback ... userdata/argv,user_data,returns borrow ...), and bufferedvariadiccase tables from registryfacts.withinto drafted contracts.of <Resource>disambiguation (4b82caeb9): Delegated under D237 — allow borrow-only child resources (e.g.,libcurl'sPart wraps *mut curl_mimepart) withreturns borrow R from param Nrendering onlyBorrowed<R>[Origin]and itslendmethods; narrow ambiguous multi-resource C representations (*mut CURLvs*mut CURLSH, both*mut c_void) usingof <Resource>.Option/Resultpayload extraction (300ce6160): Track callback/userdata pairs per slot inForeignPairStateso multiple callback pairs on one resource (WRITEFUNCTION/WRITEDATA+HEADERFUNCTION/HEADERDATA) retain independent types and origins without clobbering one another; initializeFOREIGN_PAIR_CREATEwhen extracting a resource from a non-resource container (let Some(h) = Easy.new()).Registry Facades & Zero-Unsafe UATs
c.sdl(#3157,105b4a945):registry/c/sdl/facts.with(Window,Renderer,Surface,Texture,message Event wraps SDL_Event, rendering & window methods); removed inline contract fromuat/sdl.uatand expandeduat/fixtures/sdl_main.withwithEvent.poll()loop (pass: 11 steps).c.sqlite3(#3146,7475c99cb):registry/c/sqlite3/facts.with(Database,Statement,Context,Value,open/open_v2,prepare,exec/exec_with,create_function_v2, bindings, columns,errmsg); removed inline contract fromuat/sqlite3.uatand expandeduat/fixtures/sqlite3_main.withwith transactions, bound statements, UDF, and error messages (pass: 7 steps).c.libcurl(#3143,#3111,177019e9b):registry/c/libcurl/facts.with(Easy,HeaderList,Mime, borrow-onlyPart,setoptvariadic cases includingWRITEFUNCTION/HEADERFUNCTION/HTTPHEADER/MIMEPOST,getinfofillscases,version_info); removed inline contract fromuat/libcurl.uatand expandeduat/fixtures/libcurl_main.with(pass: 7 steps).c.raylib(#3159,f7ea113ee): Expandedregistry/c/raylib/facts.with(LoadTextureFromImage,FontData,ShaderData,AudioStreamData) anduat/fixtures/raylib_spiral_main.with(texture upload/draw/unload, default fontDrawTextEx,IsKeyDown, audio stream lifecycle, explicit unload order; pass: 10 steps).Verification
behav_d246_borrow_only_resource,err_3114,foreign_pair_*, all callback-pair compile-error tests): PASSsdl,sqlite3,libcurl,raylib_spiral): ALL PASSWITH=$PWD/src/main with run tools/battery.with): running now; verdict will be posted before marking ready.