14 Commits

Author SHA1 Message Date
Ivan FB
e86b136e79
use 0.1.5 in ffi.nimble 2026-06-18 11:47:22 +02:00
Ivan FB
d4c87c1f94
feat(build): enforce -d:noSignalHandler at compile time
A nim-ffi library is loaded into a foreign host (Go/Rust/...) that must
own OS signal handling; if the Nim runtime installs its own handlers it
clobbers the host's (e.g. Go's SIGSEGV -> sigpanic recovery, stack
growth, goroutine preemption), turning recoverable faults into hard
process crashes. The flag can only be set on the consumer's final build
command, so a dependency cannot inject it -- but it CAN refuse to
compile without it. Add a compile-time guard so any consumer that omits
-d:noSignalHandler fails the build with an actionable message instead of
crashing at runtime (the cause of a real status-go regression).
Standalone Nim binaries (nim-ffi's own tests) build with
-d:ffiAllowSignalHandler.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 23:47:30 +02:00
Ivan FB
f6a3a338c0
update changelog and ffi.nimble for v0.1.5 2026-06-08 18:23:03 +02:00
Ivan FB
1285badcaa
create v0.1.4 2026-06-02 22:53:47 +02:00
Gabriel Cruz
81c62c263e
fix: context buffer overflow (#21) 2026-05-11 19:21:40 -03:00
Ivan FB
a52c4facd9
Simplified FFI authoring with auto-generated C++ and Rust bindings (#15) 2026-05-11 23:28:17 +02:00
Gabriel Cruz
e99eb60fd1
chore: run tests with refc (#20)
* chore: run tests with refc

* chore: split ci jobs

* chore: fix tests
2026-05-09 10:47:37 -03:00
Ivan FB
e3eca63236
first ci version (#12) 2026-04-29 23:48:36 +02:00
Ivan FB
df2277e726
Fix memleaks (#11)
* protect against mem leak in case of failures sending requests to ffi thread
* better cleanup if failures in createFFIContext
* avoid dangling cstring in handleRes under ARC/ORC
* better resource cleanup in destroyFFIContext
* invoke onNotResponding if failure in destroyFFIContext
* correct seq copy in alloc
* make sure the lock is init before cleanUpResources
* better possible exception handling in processReq
* guard allocSharedSeq if given seq is empty
* enhance error handling in ffi_context
* add new tests and some corrections
2026-04-27 21:22:45 +02:00
Ivan Folgueira Bande
06111de155
properly importing and exporting chronicles 2026-01-23 17:55:43 +01:00
Ivan Folgueira Bande
d3fe7b4389
properly exposing chronicles and tables when importing ffi 2026-01-23 17:34:01 +01:00
Ivan Folgueira Bande
bb8ed28ab0
add require chronicles taskpools and import std tables 2026-01-23 15:01:08 +01:00
Darshan
c2cc2d7ea1
identation error (#5) 2026-01-07 00:01:17 +05:30
Ivan Folgueira Bande
bbddf6925b
First commit 2025-09-17 14:37:11 +02:00