<div dir="ltr"><span style="font-size:16px">> I imagine that in order to make a type safe wrapper you'll have to deal </span><span style="font-size:16px">with connect_port automagically in the wrapper since it inherently </span><span style="font-size:16px">requires casting from untyped buffers...</span><div><span style="font-size:16px"><br></span></div><div><span style="font-size:16px">If you mean related to the buffer size, then I think I know what you mean. Rust has "slice" types, which are "views" into a block of memory represented as a pointer and a length. They panic e.g. if an out-of-bound read occurs. Setting that length may be problem, since it's not supplied with connect_port().</span></div><div><span style="font-size:16px"><br></span></div><div><div>Regards, Stefan</div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Sat, Dec 3, 2016 at 10:07 PM, David Robillard <span dir="ltr"><<a href="mailto:d@drobilla.net" target="_blank">d@drobilla.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="gmail-">On Sat, 2016-12-03 at 12:41 +0700, Stefan Riha wrote:<br>
> I was wondering if this mailing list is open to questions about plugin<br>
> development in the Rust programming language?<br>
><br>
> See e.g.:<br>
><br>
> <a href="http://stackoverflow.com/questions/40944524/safe-rust-interface-for-c-plugin-interface" rel="noreferrer" target="_blank">http://stackoverflow.com/<wbr>questions/40944524/safe-rust-<wbr>interface-for-c-plugin-<wbr>interface</a><br>
<br>
</span>All good, I'd love to see this taken further and find Rust very<br>
appealing in many ways, but haven't yet gotten any real experience<br>
working with it so can't be of much help on the idiomatic Rust side of<br>
things.<br>
<br>
I imagine that in order to make a type safe wrapper you'll have to deal<br>
with connect_port automagically in the wrapper since it inherently<br>
requires casting from untyped buffers...<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
--<br>
dr<br>
<br>
<br>
</font></span></blockquote></div><br></div></div></div>