Skip to content

Add stable mod logging API - #15

Merged
logdot merged 6 commits into
mainfrom
stable-mod-logging
Aug 27, 2026
Merged

Add stable mod logging API#15
logdot merged 6 commits into
mainfrom
stable-mod-logging

Conversation

@logdot

@logdot logdot commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a versioned C ABI for host services and a Rust adapter that keeps mods on the standard log macros
  • route mod records through loader-owned contexts for trusted attribution, centralized formatting, filtering, and output
  • add Modloader/config/logging.json with default and per-mod levels, including off
  • replace the Rust-ABI setup_logger lookup without preventing older mods from loading
  • update proxygen to the modern fork and clean up current Rust ABI/compiler warnings
  • add locked Windows CI that checks, tests, builds bass.dll, and uploads it as a workflow artifact without publishing releases

Compatibility

  • old mods still load under the new loader but do not receive host logging
  • new mods still load under old loaders but do not have their logging bridge installed
  • the FFI surface uses only repr(C) records, fixed numeric values, pointers/lengths, and extern "C" callbacks

Verification

  • cargo check --workspace --tests --locked --target x86_64-pc-windows-msvc
  • cargo test --locked -p highfleet-mod-api --target aarch64-apple-darwin
  • cargo clippy --locked -p highfleet-mod-api --target aarch64-apple-darwin --all-targets -- -D warnings
  • host routing, formatting, and configuration tests passed in an isolated host-compatible harness
  • Highfleet QOL release checks passed for both 1_151 and 1_163 using the new bridge

@logdot
logdot merged commit 9b64b34 into main Aug 27, 2026
1 check 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