Header generation control for Rust workspace monorepo #187
Unanswered
kriswuollett
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have three packages
my-error-codes
,my-logging
, andmy-runtime
. The latter packages both depend onmy-error-codes
and use one of its enum in return values forffi_export
functions. When I generate headers for eithermy-logging
ormy-runtime
the generated header includes things like enum types frommy-error-codes
as well as base types likeslice_ref_uint8
.I'd like to:
/external/safer_ffi/safer_ffi.h
Is this possible to implement, both from
safer_ffi
new feature perspective, as well as from the Rust build perspective that would let me mix and match libraries withffi_export
s to form a final static lib?Is my only choice at this moment just creating that final static lib package and copy and pasting
ffi_export
function "wrappers" for the dependencies' pure-Rust functions to get everything I want, except in a single header file?Beta Was this translation helpful? Give feedback.
All reactions