@calcit/procs 0.13.55 → 0.13.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/build.rs CHANGED
@@ -579,6 +579,13 @@ fn main() {
579
579
  println!("cargo:rerun-if-env-changed=CARGO_CFG_PANIC");
580
580
  println!("cargo:rustc-env=CALCIT_FFI_BUILD_ID={}", ffi_build_id());
581
581
 
582
+ let target = env::var("TARGET").expect("Cargo must provide TARGET to build scripts");
583
+ if target.ends_with("apple-darwin") {
584
+ // Calcit executes directly on the process main thread on macOS so native
585
+ // AppKit event loops can own it. Match the worker stack used elsewhere.
586
+ println!("cargo:rustc-link-arg-bin=calcit=-Wl,-stack_size,0x2000000");
587
+ }
588
+
582
589
  let out_dir = env::var_os("OUT_DIR").unwrap();
583
590
  let dest_path = Path::new(&out_dir).join("calcit-core.rmp");
584
591
 
@@ -0,0 +1,10 @@
1
+ # macOS main-thread blocking FFI / macOS 主线程 blocking FFI
2
+
3
+ - On macOS, run the Calcit CLI on the process main thread so AppKit/winit event loops invoked through blocking FFI satisfy the platform contract.
4
+ - 在 macOS 上让 Calcit CLI 直接运行于进程主线程,使 blocking FFI 启动的 AppKit/winit 事件循环满足平台约束。
5
+ - Reserve a 32 MiB Mach-O main-thread stack, matching the worker stack used on other platforms and preserving preprocessing headroom.
6
+ - 为 Mach-O 主线程预留 32 MiB 栈,与其他平台的 CLI worker 一致,避免预处理递归空间退化。
7
+ - Verified with a real calcit-paint C-safe blocking-v1 window/callback/render smoke; the prior worker-thread build failed before EventLoop creation.
8
+ - 使用 calcit-paint C-safe blocking-v1 的真实窗口、回调和渲染 smoke 验证;旧 worker-thread 构建会在 EventLoop 创建前失败。
9
+ - Added a macOS CI build that checks the Mach-O `LC_MAIN` stack reservation and CLI startup.
10
+ - 新增 macOS CI 构建,持续检查 Mach-O `LC_MAIN` 栈预留与 CLI 启动。
@@ -0,0 +1,6 @@
1
+ # Release 0.13.56 / 发布 0.13.56
2
+
3
+ - Release the macOS process-main-thread CLI path and 32 MiB Mach-O main stack required by native AppKit/winit blocking FFI event loops.
4
+ - 发布 macOS 进程主线程 CLI 路径与 32 MiB Mach-O main stack,为原生 AppKit/winit blocking FFI 事件循环提供平台保证。
5
+ - This patch unblocks the calcit-paint C-safe blocking-v1 migration while preserving existing behavior on non-macOS platforms.
6
+ - 此补丁解除 calcit-paint C-safe blocking-v1 迁移阻塞,其他平台行为保持不变。
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.13.55",
3
+ "version": "0.13.56",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^25.7.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.13.55",
3
+ "version": "0.13.56",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^25.7.0",