package rust
import (
"dagger.io/dagger"
"universe.dagger.io/docker"
)
#Container: {
// Container publisher
name: *"rust_publisher" | string
// Source code
source: dagger.#FS
// Rust image
_image: #Image
_sourcePath: "/src"
docker.#Run & {
input: *_image.output | docker.#Image
workdir: _sourcePath
mounts: "source": {
dest: _sourcePath
contents: source
}