Add rust
This commit is contained in:
34
pkg/universe.dagger.io/x/contact@kjuulh.io/rust/publish.cue
Normal file
34
pkg/universe.dagger.io/x/contact@kjuulh.io/rust/publish.cue
Normal file
@@ -0,0 +1,34 @@
|
||||
package rust
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
)
|
||||
|
||||
// Publish a rust binary
|
||||
#Publish: {
|
||||
// Source code
|
||||
source: dagger.#FS
|
||||
|
||||
// Target package to publish
|
||||
package: *"." | string
|
||||
|
||||
env: [string]: string
|
||||
|
||||
container: #Container & {
|
||||
"source": source
|
||||
"env": {
|
||||
env
|
||||
}
|
||||
command: {
|
||||
args: [package]
|
||||
flags: {
|
||||
publish: true
|
||||
"-o": "/output/"
|
||||
}
|
||||
}
|
||||
export: directories: "/output": _
|
||||
}
|
||||
|
||||
// Directory containing the output of the publish
|
||||
output: container.export.directories."/output"
|
||||
}
|
Reference in New Issue
Block a user