There are many many many different ways of packaging rust applications into docker to make a nice workflow. Many of them have tons of annoying cache-caveats (some that only work on CI, some that only work locally).
I would like to have a good guide with some pros/cons discussions on deployment choices and that optimise for a few different metrics (parenthesised):
Most of these have some annoying side effects:
- rust image -> slow iteration time locally and on CI
- CI provided rust image -> faster on CI, but potential differences between local build and CI
- cargo-chef -> large, inscrutable docker images, and still awkward for local builds
- musl cross -> potential musl compat issues and static toolchain upgrade problems (C deps in image)
- arm cross -> ??? need to know more ??? looks very new
Additionally it would be nice to also discuss some stuff that can (probably) be used with most of the above choices:
With this we can probably close kube-rs/kube#332
There are many many many different ways of packaging rust applications into docker to make a nice workflow. Many of them have tons of annoying cache-caveats (some that only work on CI, some that only work locally).
I would like to have a good guide with some pros/cons discussions on deployment choices and that optimise for a few different metrics (parenthesised):
Most of these have some annoying side effects:
Additionally it would be nice to also discuss some stuff that can (probably) be used with most of the above choices:
With this we can probably close kube-rs/kube#332