Ivan FB e6c09d25b1
fix Cross-file FFI exports silently disappear from bindings. genBindings() only sees procs registered in modules that were imported transitively before its call. A downstream
user who adds {.ffi.} in a sub-module that isn't pulled into the root file gets a successful build with missing methods. The README warns about this, but there's no
  compile-time diagnostic — the registry could at least error if genBindings() is called and the count looks suspicious, or expose a way to assert "I expect N exports."
2026-05-11 22:45:35 +02:00
2026-05-10 22:37:01 +02:00
2026-05-10 11:38:41 +02:00
2026-05-10 11:38:41 +02:00

nim-ffi

Allows exposing Nim projects to other languages

Example

examples/nim_timer is now a self-contained Nimble project that imports nim-ffi directly. Use cd examples/nim_timer && nimble install -y ../.. && nimble build to compile the example.

Description
Allows exposing Nim projects to other languages
Readme
Languages
Nim 93.7%
Smarty 6.3%