Skip to content

Remove the Aegisub wrapper's ffi-experiments dependency - #22

Merged
CoffeeFlux merged 4 commits into
masterfrom
remove-ffi-experiments
Sep 12, 2026
Merged

Remove the Aegisub wrapper's ffi-experiments dependency#22
CoffeeFlux merged 4 commits into
masterfrom
remove-ffi-experiments

Conversation

@CoffeeFlux

@CoffeeFlux CoffeeFlux commented Sep 12, 2026

Copy link
Copy Markdown
Member

SubInspector's Aegisub wrapper only needed ffi-experiments for requireffi. Replace that dependency with a local ffi.load helper that searches the existing SubInspector/Inspector/ locations under Lua/MoonScript include paths, then the system library search path. Windows, macOS, and Linux filenames are supported, and load failures retain the attempted paths and loader errors.

Remove the invalid default that appended fonts.conf to the full library filename. Font configuration now defaults to the platform's normal provider; callers can still supply an explicit path.

Adds tests for platform/path selection, missing libraries, DependencyControl and standalone loading, and rendering through the real staged native library. Native macOS ARM64, Windows x64, and both Linux jobs require these tests; the Intel macOS cross build retains its C tests through Rosetta. CI tool installation lives in tools/ci/setup-lua.py and uses MoonScript 0.7.0.

Local ARM64 rendering and wrapper tests pass, including compilation with MoonScript 0.7.0. All five hosted jobs pass, including the native LuaJIT wrapper tests and all artifact uploads. actionlint passes.

The live feed still serves the old released wrapper, so its ffi-experiments entry must remain until the next release updates the wrapper URL/checksum and removes that dependency. This PR changes the source wrapper without prematurely changing the published feed.

The release should also bump the module version and record the dependency removal and font configuration default change in its changelog.

@CoffeeFlux
CoffeeFlux marked this pull request as ready for review September 12, 2026 00:35
Address review feedback by requiring wrapper tests on all native CI jobs and normalizing the expected Windows library path. Remove the redundant nil constructor default.
@CoffeeFlux
CoffeeFlux merged commit cd0e4ae into master Sep 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant