Sigil 0.24.7
A secure entry and dependency release. Secure-entry builds and declared static native providers are the foundation Ward uses for its privileged processes. Dependency installation and pruning are fixed, and Windows socket readiness no longer leaves a waiting fiber asleep after data has arrived.
Secure entry and declared native providers
An opt-in secure build compiles the application's source, entry hook and declared native providers into a Linux x86_64 musl static PIE. Entry checks establish the process state before application initialization. Each provider's module, exports, function pointers and arities are checked against its declared contract before entry and when compiled code references the bindings.
Secure public links work from an installed release CLI; the binary carries its own core proof and stages it privately for each link.
The build produces a separate runtime report tied to the exact executable and its selected inputs. The report identifies its assurance as provenance-unverified. Native C remains trusted, and each privileged application still needs its own qualification. The initial public profile uses the stock allocator and the pinned static toolchain.
Known limitation: Secure builds admit (sigil core) and (sigil secure-entry) plus project modules built from them. Other standard library modules, including (sigil struct), are refused at build time.
Dependency installation and pruning
A plain HTTPS from-git URL now gets its default package name from the last path segment, without .git. An explicit name: still wins. URLs without an unambiguous repository name ask for name: instead of guessing.
sigil deps prune keeps declared Git, registry and local-path dependencies, their transitive dependencies, and workspace member links. Scoped registry names and registry-backed aliases keep their identities. Prune removes unused symlinks while leaving regular files and directories intact.
A freshly bootstrapped compiler can now install from-pkg dependencies before the full HTTP, async and store libraries are available. Downloads still require the declared content hash and size to match. The CLI now takes sigil-ffi 0.16.6 from the registry as sigil/sigil-ffi. Release builds verify registry dependencies against their locked source archives as well as checking Git dependency revisions.
ZIP archives
The new (sigil archive zip) module reads bounded ZIP entry metadata and small stored entries without extracting files. It refuses malformed records, encrypted entries, ZIP64 archives and configured-bound violations. It doesn't check entry paths or symlink targets, so code that extracts files must.
Application release metadata
Application releases can describe macOS .app ZIP bundles alongside Linux and web assets. Compatible readers skip unsupported targets and formats while checking the shared release and file metadata.
Native fiber stacks
Native call-with-prompt bodies now run on 1 MiB guarded fiber stacks, replacing the 256 KiB unguarded stacks. This fixes crashes in Windows native programs. The garbage collector now keeps values held only in a suspended fiber's saved registers.
Windows socket readiness
Windows socket handles are no longer discarded just because their numeric value exceeds the size of a readiness set. Handles such as 160 and 152 could have data ready while the selector reported none. Socket and descriptor selection now preserve those handles so waiting fibers can resume.