<div dir="ltr"><div>I packaged this in neon and it works fine for us. It does download dependencies at build time and at install time which will probably challenge some distro policies.</div><div><br></div><div>Jonathan</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 14 May 2023 at 22:36, Carl Schwan <<a href="mailto:carl@carlschwan.eu">carl@carlschwan.eu</a>> wrote:<br></div><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>
I'm planning to add a rust dependency to akonadi-search to parse html email in <br>
a safer way. Motivation for that is that I'm getting regularly crashed for the <br>
akonadi search indexer because it's parsing untrusted html emails from the <br>
internet. So instead of using QTextDocument which wasn't created for parsing <br>
untrusted html, it's using the html parser from servo which is spec compliant <br>
and better handle broken html. <br>
<br>
Here is the MR in question:<br>
<a href="https://invent.kde.org/pim/akonadi-search/-/merge_requests/20" rel="noreferrer" target="_blank">https://invent.kde.org/pim/akonadi-search/-/merge_requests/20</a><br>
<br>
This uses the Corrosion library to integrate with cmake and c++ which is also <br>
used by another Gear package: Angelfish for the adblock feature and I was <br>
thinking about also adding to NeoChat for providing search in e2ee rooms via <br>
the seshat library[1]. Dependency updates of the rust packaging is handled by <br>
gitlab-dependabot[2] which should ensure everything stays up to date for the <br>
rust dependencies.<br>
<br>
The dependency would be for now only recommanded but not required to give some <br>
times for distros too adapt their packaging. Hopefully since the kernel and <br>
many GNOME apps use rust, the infrastructure for packaging rust apps should be <br>
in place nowadays. I will also mark bug reports with backtrace pointing to <br>
crash inside QTextDocument (e.g. the one in the MR descritopn) as downstream <br>
issues, as their is little I can do to fix this sort of issues upstream.<br>
<br>
Cheers,<br>
Carl<br>
<br>
[1]: <a href="https://github.com/matrix-org/seshat" rel="noreferrer" target="_blank">https://github.com/matrix-org/seshat</a><br>
[2]: <a href="https://dependabot-gitlab.gitlab.io/dependabot/" rel="noreferrer" target="_blank">https://dependabot-gitlab.gitlab.io/dependabot/</a></blockquote></div>