rust
This module provides a set of functions to build, test, and run clippy on a Rust project 🦀
Installation
dagger install github.com/fluent-ci-templates/rust-pipeline@v0.10.4
Entrypoint
Return Type
Rust
Example
dagger -m github.com/fluent-ci-templates/rust-pipeline@08ab07c6dd884e07e561515de8a6e12b0a5ceec7 call \
func (m *myModule) example() *Rust {
return dag.
Rust()
}
@function
def example() -> dag.Rust:
return (
dag.rust()
)
@func()
example(): Rust {
return dag
.rust()
}
Types
Rust 🔗
clippy() 🔗
Run clippy
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/rust-pipeline@08ab07c6dd884e07e561515de8a6e12b0a5ceec7 call \
clippy
func (m *myModule) example() *File {
return dag.
Rust().
Clippy()
}
@function
def example() -> dagger.File:
return (
dag.rust()
.clippy()
)
@func()
example(): File {
return dag
.rust()
.clippy()
}
llvmCov() 🔗
Generate llvm coverage report
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/rust-pipeline@08ab07c6dd884e07e561515de8a6e12b0a5ceec7 call \
llvm-cov
func (m *myModule) example() *File {
return dag.
Rust().
LlvmCov()
}
@function
def example() -> dagger.File:
return (
dag.rust()
.llvm_cov()
)
@func()
example(): File {
return dag
.rust()
.llvmCov()
}
test() 🔗
Run tests
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
options | [String ! ] | [] | No description provided |
Example
dagger -m github.com/fluent-ci-templates/rust-pipeline@08ab07c6dd884e07e561515de8a6e12b0a5ceec7 call \
test
func (m *myModule) example(ctx context.Context) string {
return dag.
Rust().
Test(ctx)
}
@function
async def example() -> str:
return await (
dag.rust()
.test()
)
@func()
async example(): Promise<string> {
return dag
.rust()
.test()
}
build() 🔗
Build the project
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
packageName | String | - | No description provided |
target | String | "x86_64-unknown-linux-gnu" | No description provided |
options | [String ! ] | [] | No description provided |
Example
dagger -m github.com/fluent-ci-templates/rust-pipeline@08ab07c6dd884e07e561515de8a6e12b0a5ceec7 call \
build
func (m *myModule) example() *Directory {
return dag.
Rust().
Build()
}
@function
def example() -> dagger.Directory:
return (
dag.rust()
.build()
)
@func()
example(): Directory {
return dag
.rust()
.build()
}