<div dir="ltr"><div dir="ltr">On Fri, Sep 11, 2020 at 1:13 AM Rémi Denis-Courmont <<a href="mailto:remi@remlab.net">remi@remlab.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> Hi,<br>
<br>
Manually wrapping the API sounds like a lose-lose proposition, as not all core <br>
developers know Rust in general, and/or Rust C bindings in particular, and you <br>
cannot expect/require them to update Rust code. This raises two separate <br>
questions:<br>
<br>
1) Why are the bindings not generated automatically? Rust has tools <br>
specifically for this purpose. VLC is not particularly heavy on preprocessor <br>
macros so automatic binding generators should work just fine - or then, *they* <br>
need to be fixed.<br>
<br></blockquote><div>The intent is to generate the bindings automatically using bindgen. However, there are a couple of fixes required after bindgen does its work (relating to va_list). Also, these bindings have been generated automatically by bindgen and then modified manually as required. </div><div><br></div><div>Also, there is the question should the bindings be generated automatically during the build or when the developer wants to. clang is required to auto generate the bindings that may or may not be an issue.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2) Who's in charge of updating the Rust modules when the core API changes? We <br>
can't expect all developers of core patches to know Rust, and know it well <br>
enough to update Rust code properly. FWIW, I believe that only a minority of <br>
the TC knows Rust well at this point in time even, not to speak of the broader <br>
vlc-devel active membership.<br>
<br>
Professional (sponsored) developers may or may not be granted the time and <br>
material to train any time soon. And hobbbyists - in particular, but not <br>
limited, to TC members David, Denis and myself* - are potentially in an even <br>
worse position. And this problem is _not_ on the same level of difficulty as <br>
with C++ and Objectionable C.<br>
<br>
(*) I did buy a Rust book out of my own pocket, but it's unclear if/when I'll <br>
have the time to actually read and assimilate it, regardless of motivation.<br>
<br>
-- <br>
Реми Дёни-Курмон<br>
<a href="http://www.remlab.net/" rel="noreferrer" target="_blank">http://www.remlab.net/</a><br>
<br>
<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a></blockquote></div></div>