logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: 13cd147ee3aa09e18976e1292301e1057125c5f8
parent 6499893da2c28e07410018581faa6e8ea48e8321
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 21 Feb 2024 09:35:49 +0100

notes/rust-issues: crates.io URL mangling outage

Diffstat:

Mnotes/rust-issues.xhtml6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/notes/rust-issues.xhtml b/notes/rust-issues.xhtml @@ -41,6 +41,12 @@ <li>Grabs some C and Assembly code from BoringSSL, which no one except Google should be using as it doesn't have versions nor security notices</li> <li><code>x86_{32,64}</code> and <code>arm{32,64}</code> only due to it using assembly and released versions not supporting a fallback to portable code. So for other architectures like ppc64, riscv, … you need to mangle the dependency tree to use patches / forks or the latest git.</li> </ul> + + <h2>Extra: Crates.io outage due to bad URL mangling</h2> + <p> + <a href="https://blog.rust-lang.org/inside-rust/2023/07/21/crates-io-postmortem.html">crates.io Postmortem: Broken Crate Downloads</a> + </p> + <p>The real bug is formatting URLs in the code of your application with string formatting. URLs are a structure, therefore they should be properly encoded and decoded as such regardless of them being somewhat text-based. There's prior art for this in <a href="https://hexdocs.pm/elixir/1.15.4/URI.html#__struct__/0">Elixir</a> and <a href="https://docs.harelang.org/net/uri">Hare</a>.</p> </main> <!--#include file="/templates/en/footer.shtml" --> </body>