Add native scripting APIs and managed resource cleanup - #491
Draft
lukewilliamboswell wants to merge 1 commit into
Draft
Add native scripting APIs and managed resource cleanup#491lukewilliamboswell wants to merge 1 commit into
lukewilliamboswell wants to merge 1 commit into
Conversation
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.
Basic-cli scripts currently need external tools for directory copying and temporary workspaces, and cannot retain listener ports or manage child-process pipes and deadlines. This adds native filesystem helpers, managed commands, TCP listeners, and monotonic timing for those workflows.
This changes the host ABI and prepares version 0.23.0. Existing command helpers share the new process engine; captured output now defaults to a combined 16 MiB budget. The compiler pin and generated glue are updated together. Contributor instructions refer to the pin rather than duplicating its value.
Validation: 51 Rust tests pass; generated glue is current; the full Linux source/build/native example suite and three glibc/Valgrind ownership fixtures pass. ARM Linux and both macOS hosts cross-build, and Windows GNU passes a compile check. Native macOS/Windows/ARM execution remains for CI.
Closes #484, closes #485, closes #486, closes #487, closes #488, closes #489.
Also addresses #440, #162, and #476.