Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ FormCite now builds into a desktop app for macOS, Windows and Linux, and the win
- **The Needs a title view** had lost the line height of its rows. They have it again.
- **On a Mac, if the system menu could not be built,** the window's own menu bar now opens in its place.
- **Stopping the engine now closes the dock's tabs and their tokens** instead of leaving them to the next start.
- **On a Mac with macOS 26 or newer, building FormCite stopped** right after the citation style engine was built: the engine could not load it ("mis-aligned LINKEDIT string pool"). The style engine is now built the way the family's other Rust parts are, so it loads.

### Known issues
- Each agent tab leaves a revoked token named after it, such as "Claude Code tab", in Connections after the tab closes. There is no way to delete one yet.
Expand Down
5 changes: 5 additions & 0 deletions native/formcite-style/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ serde_json = "1"
opt-level = 3
lto = "thin"
codegen-units = 16
strip = false

[profile.release.build-override]
strip = false
debug = false
7 changes: 7 additions & 0 deletions native/formcite-style/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# formcite-style HASHOUT_LOG

The living log of the citation style module (Rust, Hayagriva behind pyo3). The build and the regression gate are in `docs/STYLE_ENGINE_BUILD.md`.

## Cargo.toml · the release build is not stripped (v0.15.0) {#style-no-strip}

On the owner's Mac (macOS 26 or newer, rustc 1.97.1), `./build_app` built the module with `maturin develop --release` and the import then failed: `dlopen(... formcite_style.abi3.so): mis-aligned LINKEDIT string pool, fileOffset=0x0072AD3C`. Cargo's release profile strips debug information by default since 1.77, and on Apple targets rustc strips by rewriting the linked library with its bundled `rust-objcopy`, which can leave the LC_SYMTAB string pool 4 bytes off an 8-byte boundary; newer macOS dyld refuses such a library (rust-lang/rust#157750, fixed upstream in Rust 1.98). Apple's linker writes the pool aligned, so the release profile now sets `strip = false`, and `[profile.release.build-override]` sets `strip = false` and `debug = false` so the build scripts and proc macros rustc loads are never stripped either. This is the family's setting: FormVis's `native/formvis-kernels` and every app's `src-tauri` already carry it. The module carries no debug information either way; the library is somewhat larger with its symbols kept. Linux was rebuilt with the new profile (`cargo build --release --locked`, 2 m 13 s); the macOS load was not run here.
Loading