Interesting points. - *using breakpad* - was the problem that creating wrappers to access the c/c++ code was too tedious? Could bindgen help with that, if not it would be interesting gather some details about why it wouldn't work and file bugs against it. - *pingsender* - was something like https://hyper.rs/ not around when you were working on it or is this a case of finding the things you want can be difficult in rust-land? Either way it might be a good idea for us to put together a list of "sanctioned" crates for various tasks.
-e On Wed, Jul 12, 2017 at 1:36 AM, Gabriele Svelto <gsve...@mozilla.com> wrote: > On 10/07/2017 12:29, Nicholas Nethercote wrote: > > Hi, > > What are the obstacles? Here are some that I've heard. > > [...] > > Anything else? > > In the past year I wrote two tools (minidump-analyzer and pingsender) > that ship with Firefox but are separate executables so both were good > candidates for being written in Rust in the first place. I implemented > both in C++ because of different issues: > > - The minidump-analyzer relies on Google Breakpad machinery that is > currently C++. It's being rewritten in Rust but it's not there yet and > since we needed it to quickly get more crash information going the Rust > route would have simply taken too long. It is a good candidate for being > rewritten in Rust in the coming 12 months though. > > - The pingsender talks to our telemetry infrastructure so needs > HTTP/HTTPS functionality but without linking with libxul. In this case > if I had a crate that offered HTTP functionality I would have gone > straight to Rust but alas it wasn't there. So instead it's a blob of > platform-specific C++ that dlopen()s libcurl on Mac and Linux and relies > on WININET on Windows. > > Gabriele > > > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform