Skip to content

Conversation

@Ivansete-status
Copy link
Collaborator

@Ivansete-status Ivansete-status commented Dec 11, 2025

Far from being ideal, this PR represents step further in having a shared ffi environment for Nim

Changes

  • New {.ffi.} pragma is created
  • Use of generics in FFIContext:
type FFIContext*[T] = object
  myLib*: T
  ...

Notice that myLib is an instance of the object/library to be exposed, e.g., LogosMessagingNim; LibP2P; LogosChat; SDS; etc.

Related PR

( cc @fryorcraken @NagyZoltanPeter @plopezlpz @richard-ramos @arnetheduck .)

@Ivansete-status Ivansete-status merged commit 75251fb into master Dec 11, 2025
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.

2 participants