I think you want to use some combination of the #:fail argument to ffi-lib and make-not-available with define-ffi-definer to make the relevant functions error when called rather than when the modules are required.
1 Like