Thread (5 messages) 5 messages, 3 authors, 2021-12-19

Re: [PATCH V2 1/4] libgpiod: Generate rust FFI bindings

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2021-12-17 10:49:24

On 17-12-21, 11:38, Miguel Ojeda wrote:
Having optional pre-generated bindings may be good for some users,
e.g. libsqlite3-sys does it. I guess the main question is whether you
are willing to support/maintain it. Also consider cross-compilation.

But I wouldn't only provide pre-generated ones if you are using
`bindgen` anyway.
The pre-generated ones are normally good for kernel headers, where the userspace
ABI is stable and so we don't need to change the generated bindings soon.

But in our case here, the ABI isn't that stable and will likely change soon
again for the first few months after v2.0 is released for libgpiod.

Perhaps, we should make it compile-only for the time being. Once the ABI is
stable enough, we can think of committing something to the source tree.
In any case, I am not a Rust expert, so please take that with a grain of salt :)
:)

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help