You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# at import-timefrom .._libimportfoo1lib_f=ctypes.util.find_library("pqc_fips202")
lib=foo1.ffi.dlopen(lib_f) # ??? WILL THIS WORK?? https://stackoverflow.com/a/30824152/1874170
...
The text was updated successfully, but these errors were encountered:
I looked into SWIG as an alternative (it would allow actually dynamically linking the common deps, and would also allow us to avoid the extra unnecessary copy when converting a mutable FFI allocation into a bytes for return by constructing the object in-place, which would be AWESOME), but *golly* their tooling is just awful; I couldn't figure it out
James-E-A
changed the title
Cleaner dependency injection
Don't statically link the "common" deps?
Jan 11, 2024
As it stands, the "hard-coded"
def_extern()
calls at import-time are messy and awkward.It looks like maybe "out-of-line ABI mode" could be used for a cleaner, more modularized solution.
Something like this might work:
The text was updated successfully, but these errors were encountered: