rust
A swiss army knife of functions for working with Rust projects.
Installation
dagger install github.com/purpleclay/daggerverse/rust@v0.1.0
Entrypoint
Return Type
Rust !
Arguments
Name | Type | Description |
---|---|---|
base | Container | a custom base image containing an installation of rust |
src | Directory ! | a path to a directory containing the projects source code |
Example
dagger -m github.com/purpleclay/daggerverse/rust@a2587ed0a05fd86b8db65c2914e8e1b483b1fa3d call \
--src DIR_PATH
func (m *myModule) example(src *Directory) *Rust {
return dag.
Rust(src)
}
@function
def example(src: dagger.Directory) -> dag.Rust:
return (
dag.rust(src)
)
@func()
example(src: Directory): Rust {
return dag
.rust(src)
}
Types
Rust 🔗
Rust dagger module
clippy() 🔗
Lint your Rust project with Clippy to detect common mistakes and to improve your Rust code
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
noDeps | Boolean | - | d |
Example
dagger -m github.com/purpleclay/daggerverse/rust@a2587ed0a05fd86b8db65c2914e8e1b483b1fa3d call \
--src DIR_PATH clippy
func (m *myModule) example(ctx context.Context, src *Directory) string {
return dag.
Rust(src).
Clippy(ctx)
}
@function
async def example(src: dagger.Directory) -> str:
return await (
dag.rust(src)
.clippy()
)
@func()
async example(src: Directory): Promise<string> {
return dag
.rust(src)
.clippy()
}