RSS Amplifier

Steven Kalt · Mar 10, 2024

Parsing docker image references for fun and 0 profit

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

The problem I wanted to parse docker-style container image references for a personal project I was writing in rust. Ideally, I’d use the authoritative parser, distribution/reference , which is written in Go. FFI between Go and rust is nontrivial; the examples I found involved a custom build.rs with C bindings , custom assembly , or embedding WASM into your binary. Rather than deal with any…

The problem

I wanted to parse docker-style container image references for a personal project I was writing in rust. Ideally, I’d use the authoritative parser, distribution/reference, which is written in Go. FFI between Go and rust is nontrivial; the examples I found involved a custom build.rs with C bindings, custom assembly, or embedding WASM into your binary. Rather than deal with any of those options, I decided to take the opportunity to have some fun and RiiR.

Read on /projects/container_image_dist_ref/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.