Repository navigation
Bundle 3: registry facades and zero-unsafe UATs for zstd, libarchive, freetype, glfw - #3664
Merged
Merged
Conversation
added 8 commits
November 27, 2026 16:36
…k_thread, skip ambiguous multi-resource drafts
…libs from CMake configs
…es and emit registry value-only calls
Contributor
Author
|
Seed-driven battery GREEN on
|
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 #3136
Closes #3140
Closes #3155
Closes #3158
Summary
Bundled registry facades and supporting compiler/toolchain fixes verified under a single seed-driven battery:
Compiler & Toolchain Fixes
render.with/CiFacts.with/CiFacadeDraft.with:unsafequalifier when renderingNK_TYPE_FNandNK_TYPE_EXTERN_FNAST nodes so facade wrappers returning raw C function pointers (e.g.glfwSetKeyCallbackreturningOption[unsafe extern "C" fn(...)]) match C'sCALLABLE_UNSAFEtype (§16.11).callback_threadfree-function stanzas from registryfacts.withinto drafted contracts.fn/fromstanzas that take a C record wrapped by multiple registry resources (fd_is_ambiguous_record), avoiding ambiguous contract drafts while keeping explicitly assignedof <Resource>stanzas andbzip2'sBZFILEHandleintact.ConanClient.with:ZLIB::ZLIB) that leak into generated.pcLibs.privatefields (the dependency is already inrequires)..tbdlibraries from installed CMakeINTERFACE_LINK_LIBRARIES(e.g.libhvf.tbdlinked by FreeType 2.15.0 on macOS) when omitted from.pcfiles.Registry Facades & Zero-Unsafe UATs
c.zstd(#3136):registry/c/zstd/facts.with(CCtx,DCtx,CDict,DDict, one-shot/context/dictionary compression & decompression) +uat/zstd.uat+uat/fixtures/zstd_main.with(pass: 7 steps, 25.9s).c.libarchive(#3140):registry/c/libarchive/facts.with(ArchiveReader,ArchiveWriter,archive_write_disk_new, filters/formats, entry I/O) +uat/libarchive.uat+uat/fixtures/libarchive_main.with(write.tar.gz+.zip, read.tar.gz, extract to disk; pass: 7 steps, 82.2s).c.freetype(#3155):registry/c/freetype/facts.with(Library,Face, version, charmap/glyph/kerning/render operations) +uat/freetype.uat+uat/fixtures/freetype_main.with(self-contained ASCII BDF font,Library.init,new_face,select_size,char_index,load_char(FT_LOAD_RENDER), strict Face/Library teardown; pass: 7 steps, 29.9s).c.glfw(#3158):registry/c/glfw/facts.with(Window,Cursor, headless windowing, input queries, stateless callbacks) +uat/glfw.uat+uat/fixtures/glfw_main.with(headlessGLFW_PLATFORM_NULL,Window.create, error/key/framebuffer callbacks, size/key queries,glfwPollEvents, clean Window/Terminate teardown; pass: 7 steps, 28.4s).Verification
zstd,libarchive,freetype,glfw,bzip2regression check): ALL PASSWITH=$PWD/src/main with run tools/battery.with): starting now; verdict will be posted before marking ready.