rust
No long description provided.
Installation
dagger install github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4Entrypoint
Return Type
ExtractArchiveComposer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| destination | String | - | No description provided |
| stripComponents | Boolean | - | No description provided |
Example
Function ExtractArchiveComposer.Constructor is not accessible from the rust moduleFunction ExtractArchiveComposer.Constructor is not accessible from the rust moduleFunction ExtractArchiveComposer.Constructor is not accessible from the rust moduleFunction ExtractArchiveComposer.Constructor is not accessible from the rust moduleEntrypoint
Return Type
ExtractToolComposer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| stripComponents | Boolean | - | No description provided |
Example
Function ExtractToolComposer.Constructor is not accessible from the rust moduleFunction ExtractToolComposer.Constructor is not accessible from the rust moduleFunction ExtractToolComposer.Constructor is not accessible from the rust moduleFunction ExtractToolComposer.Constructor is not accessible from the rust moduleEntrypoint
Return Type
VersionReplacer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String ! | - | No description provided |
| key | String | - | No description provided |
Example
Function VersionReplacer.Constructor is not accessible from the rust moduleFunction VersionReplacer.Constructor is not accessible from the rust moduleFunction VersionReplacer.Constructor is not accessible from the rust moduleFunction VersionReplacer.Constructor is not accessible from the rust moduleEntrypoint
Return Type
CargoChef !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | - | No description provided |
| container | Container ! | - | No description provided |
Example
Function CargoChef.Constructor is not accessible from the rust moduleFunction CargoChef.Constructor is not accessible from the rust moduleFunction CargoChef.Constructor is not accessible from the rust moduleFunction CargoChef.Constructor is not accessible from the rust moduleEntrypoint
Return Type
Replacers !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| replacers | [Interface ! ] ! | - | No description provided |
Example
Function Replacers.Constructor is not accessible from the rust moduleFunction Replacers.Constructor is not accessible from the rust moduleFunction Replacers.Constructor is not accessible from the rust moduleFunction Replacers.Constructor is not accessible from the rust moduleEntrypoint
Return Type
CargoCommand !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| locked | Boolean | - | Assert that `Cargo.lock` will remain unchanged. |
| offline | Boolean | - | Run without accessing the network. |
| frozen | Boolean | - | Equivalent to specifying both --locked and --offline. |
Example
Function CargoCommand.Constructor is not accessible from the rust moduleFunction CargoCommand.Constructor is not accessible from the rust moduleFunction CargoCommand.Constructor is not accessible from the rust moduleFunction CargoCommand.Constructor is not accessible from the rust moduleEntrypoint
Return Type
ExtractFilterComposer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| include | [String ! ] ! | - | No description provided |
| stripComponents | Boolean | - | No description provided |
Example
Function ExtractFilterComposer.Constructor is not accessible from the rust moduleFunction ExtractFilterComposer.Constructor is not accessible from the rust moduleFunction ExtractFilterComposer.Constructor is not accessible from the rust moduleFunction ExtractFilterComposer.Constructor is not accessible from the rust moduleEntrypoint
Return Type
ArchReplacer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| key | String | - | No description provided |
Example
Function ArchReplacer.Constructor is not accessible from the rust moduleFunction ArchReplacer.Constructor is not accessible from the rust moduleFunction ArchReplacer.Constructor is not accessible from the rust moduleFunction ArchReplacer.Constructor is not accessible from the rust moduleEntrypoint
Return Type
GitHubDownloader !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repository | String ! | - | No description provided |
| fileName | String ! | - | No description provided |
| version | String | - | No description provided |
| replacer | Interface | - | No description provided |
Example
Function GitHubDownloader.Constructor is not accessible from the rust moduleFunction GitHubDownloader.Constructor is not accessible from the rust moduleFunction GitHubDownloader.Constructor is not accessible from the rust moduleFunction GitHubDownloader.Constructor is not accessible from the rust moduleEntrypoint
Return Type
BinaryComposer ! Example
Function BinaryComposer.Constructor is not accessible from the rust moduleFunction BinaryComposer.Constructor is not accessible from the rust moduleFunction BinaryComposer.Constructor is not accessible from the rust moduleFunction BinaryComposer.Constructor is not accessible from the rust moduleEntrypoint
Return Type
CargoBuildDownloader !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | No description provided |
| name | String ! | - | No description provided |
| version | String | - | No description provided |
Example
Function CargoBuildDownloader.Constructor is not accessible from the rust moduleFunction CargoBuildDownloader.Constructor is not accessible from the rust moduleFunction CargoBuildDownloader.Constructor is not accessible from the rust moduleFunction CargoBuildDownloader.Constructor is not accessible from the rust moduleEntrypoint
Return Type
Installer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| downloader | Interface ! | - | No description provided |
| composer | Interface ! | - | No description provided |
Example
Function Installer.Constructor is not accessible from the rust moduleFunction Installer.Constructor is not accessible from the rust moduleFunction Installer.Constructor is not accessible from the rust moduleFunction Installer.Constructor is not accessible from the rust moduleEntrypoint
Return Type
Rust !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| workspace | Workspace | - | No description provided |
| version | String | - | Version (image tag) to use from the official image repository as a base container. |
| container | Container | - | Custom container to use as a base container. |
| targets | [String ! ] | - | Targets to install for cross-compilation. |
| tools | [String ! ] | - | Tools to install. |
| preferDist | Boolean | - | Prefer installing tool dependencies from pre-built binaries (if available) instead of building from source. |
| useCargoChef | Boolean | - | Whether to use cargo-chef for dependency caching. Recommended for maximum cache efficiency. Note: requires curl or wget to be installed in the base container. |
| cargoChefVersion | String | - | Version of cargo-chef to use. |
| noCache | Boolean | - | Whether to disable automatically mounted cache volumes. Useful if you want to mount cache volumes manually or use a different cache volume strategy. |
| sourceDateEpoch | String | - | Override the source date epoch for reproducible builds. If not set, the epoch is determined from the git log (if available). |
| cargoRegistryIndexCache | CacheVolume | - | Cache volume for cargo registry index. |
| cargoRegistryArchiveCache | CacheVolume | - | Cache volume for cargo registry archive. |
| cargoGitDbCache | CacheVolume | - | Cache volume for cargo git db. |
| cargoTargetCache | CacheVolume | - | Cache volume for cargo target. |
| rustupToolchainCache | CacheVolume | - | Cache volume for rustup toolchains. |
| rustupDownloadCache | CacheVolume | - | Cache volume for rustup downloads. |
Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
func (m *MyModule) Example() *dagger.Rust {
return dag.
Rust()
}@function
def example() -> dagger.Rust:
return (
dag.rust()
)@func()
example(): Rust {
return dag
.rust()
}Types
ExtractArchiveComposer 🔗
destination() 🔗
Return Type
String ! Example
Function RustExtractArchiveComposer.destination is not accessible from the rust moduleFunction RustExtractArchiveComposer.destination is not accessible from the rust moduleFunction RustExtractArchiveComposer.destination is not accessible from the rust moduleFunction RustExtractArchiveComposer.destination is not accessible from the rust modulestripComponents() 🔗
Return Type
Boolean ! Example
Function RustExtractArchiveComposer.stripComponents is not accessible from the rust moduleFunction RustExtractArchiveComposer.stripComponents is not accessible from the rust moduleFunction RustExtractArchiveComposer.stripComponents is not accessible from the rust moduleFunction RustExtractArchiveComposer.stripComponents is not accessible from the rust modulecompose() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | File ! | - | No description provided |
Example
Function RustExtractArchiveComposer.compose is not accessible from the rust moduleFunction RustExtractArchiveComposer.compose is not accessible from the rust moduleFunction RustExtractArchiveComposer.compose is not accessible from the rust moduleFunction RustExtractArchiveComposer.compose is not accessible from the rust moduleExtractToolComposer 🔗
name() 🔗
Return Type
String ! Example
Function RustExtractToolComposer.name is not accessible from the rust moduleFunction RustExtractToolComposer.name is not accessible from the rust moduleFunction RustExtractToolComposer.name is not accessible from the rust moduleFunction RustExtractToolComposer.name is not accessible from the rust modulestripComponents() 🔗
Return Type
Boolean ! Example
Function RustExtractToolComposer.stripComponents is not accessible from the rust moduleFunction RustExtractToolComposer.stripComponents is not accessible from the rust moduleFunction RustExtractToolComposer.stripComponents is not accessible from the rust moduleFunction RustExtractToolComposer.stripComponents is not accessible from the rust modulecompose() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | File ! | - | No description provided |
Example
Function RustExtractToolComposer.compose is not accessible from the rust moduleFunction RustExtractToolComposer.compose is not accessible from the rust moduleFunction RustExtractToolComposer.compose is not accessible from the rust moduleFunction RustExtractToolComposer.compose is not accessible from the rust moduleVersionReplacer 🔗
version() 🔗
Return Type
String ! Example
Function RustVersionReplacer.version is not accessible from the rust moduleFunction RustVersionReplacer.version is not accessible from the rust moduleFunction RustVersionReplacer.version is not accessible from the rust moduleFunction RustVersionReplacer.version is not accessible from the rust modulekey() 🔗
Return Type
String ! Example
Function RustVersionReplacer.key is not accessible from the rust moduleFunction RustVersionReplacer.key is not accessible from the rust moduleFunction RustVersionReplacer.key is not accessible from the rust moduleFunction RustVersionReplacer.key is not accessible from the rust modulereplace() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| s | String ! | - | No description provided |
Example
Function RustVersionReplacer.replace is not accessible from the rust moduleFunction RustVersionReplacer.replace is not accessible from the rust moduleFunction RustVersionReplacer.replace is not accessible from the rust moduleFunction RustVersionReplacer.replace is not accessible from the rust moduleCargoChef 🔗
recipe() 🔗
Generates a cargo-chef recipe from the source tree.
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| workspacePath | String | - | No description provided |
Example
Function RustCargoChef.recipe is not accessible from the rust moduleFunction RustCargoChef.recipe is not accessible from the rust moduleFunction RustCargoChef.recipe is not accessible from the rust moduleFunction RustCargoChef.recipe is not accessible from the rust moduleReplacers 🔗
replacers() 🔗
Return Type
[Interface ! ] ! Example
Function RustReplacers.replacers is not accessible from the rust moduleFunction RustReplacers.replacers is not accessible from the rust moduleFunction RustReplacers.replacers is not accessible from the rust moduleFunction RustReplacers.replacers is not accessible from the rust modulereplace() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| s | String ! | - | No description provided |
Example
Function RustReplacers.replace is not accessible from the rust moduleFunction RustReplacers.replace is not accessible from the rust moduleFunction RustReplacers.replace is not accessible from the rust moduleFunction RustReplacers.replace is not accessible from the rust moduleCargoCommand 🔗
generic() 🔗
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| command | String ! | - | No description provided |
Example
Function RustCargoCommand.generic is not accessible from the rust moduleFunction RustCargoCommand.generic is not accessible from the rust moduleFunction RustCargoCommand.generic is not accessible from the rust moduleFunction RustCargoCommand.generic is not accessible from the rust modulebuild() 🔗
Compile a local package and all of its dependencies.
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| package | [String ! ] | - | Package to build. |
| all | Boolean | - | Build all packages in the workspace. |
| exclude | [String ! ] | - | Exclude packages from the build. |
| lib | Boolean | - | Build only this package's library. |
| bins | Boolean | - | Build all binaries. |
| bin | [String ! ] | - | Build only the specified binary. |
| examples | Boolean | - | Build all examples. |
| example | [String ! ] | - | Build only the specified example. |
| tests | Boolean | - | Build all targets that have `test = true` set. |
| test | [String ! ] | - | Build only the specified test target. |
| benches | Boolean | - | Build all targets that have `bench = true` set. |
| bench | [String ! ] | - | Build only the specified bench target. |
| allTargets | Boolean | - | Build all targets. |
| target | [String ! ] | - | Build for the target triple. |
| allFeatures | Boolean | - | Activate all available features. |
| feature | [String ! ] | - | List of features to activate. |
| noDefaultFeatures | Boolean | - | Do not activate the `default` feature. |
| release | Boolean | - | Build artifacts in release mode, with optimizations. |
| profile | String | - | Build artifacts with the specified profile. |
| keepGoing | Boolean | - | Do not abort the build as soon as there is an error. |
Example
Function RustCargoCommand.build is not accessible from the rust moduleFunction RustCargoCommand.build is not accessible from the rust moduleFunction RustCargoCommand.build is not accessible from the rust moduleFunction RustCargoCommand.build is not accessible from the rust moduletest() 🔗
Execute all unit and integration tests and build examples of a local package.
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| testName | String | - | If specified, only run tests containing this string in their names. |
| args | [String ! ] | - | Arguments for the test binary. |
| noFailFast | Boolean | - | Run all tests regardless of failure. |
| package | [String ! ] | - | Package to run tests for. |
| all | Boolean | - | Test all packages in the workspace. |
| exclude | [String ! ] | - | Exclude packages from the test. |
| lib | Boolean | - | Test only this package's library. |
| bins | Boolean | - | Test all binaries. |
| bin | [String ! ] | - | Test only the specified binary. |
| examples | Boolean | - | Test all examples. |
| example | [String ! ] | - | Test only the specified example. |
| tests | Boolean | - | Test all targets that have `test = true` set. |
| test | [String ! ] | - | Test only the specified test target. |
| benches | Boolean | - | Test all targets that have `bench = true` set. |
| bench | [String ! ] | - | Test only the specified bench target. |
| allTargets | Boolean | - | Test all targets (does not include doctests). |
| target | [String ! ] | - | Build for the target triple. |
| doc | Boolean | - | Test only this library's documentation. |
| allFeatures | Boolean | - | Activate all available features. |
| feature | [String ! ] | - | List of features to activate. |
| noDefaultFeatures | Boolean | - | Do not activate the `default` feature. |
| release | Boolean | - | Build artifacts in release mode, with optimizations. |
| profile | String | - | Build artifacts with the specified profile. |
Example
Function RustCargoCommand.test is not accessible from the rust moduleFunction RustCargoCommand.test is not accessible from the rust moduleFunction RustCargoCommand.test is not accessible from the rust moduleFunction RustCargoCommand.test is not accessible from the rust moduledoc() 🔗
Build a package’s documentation.
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| noDeps | Boolean | - | Don't build documentation for dependencies. |
| package | [String ! ] | - | Package to run tests for. |
| all | Boolean | - | Test all packages in the workspace. |
| exclude | [String ! ] | - | Exclude packages from the test. |
| lib | Boolean | - | Test only this package's library. |
| bins | Boolean | - | Test all binaries. |
| bin | [String ! ] | - | Test only the specified binary. |
| examples | Boolean | - | Test all examples. |
| example | [String ! ] | - | Test only the specified example. |
| allFeatures | Boolean | - | Activate all available features. |
| feature | [String ! ] | - | List of features to activate. |
| noDefaultFeatures | Boolean | - | Do not activate the `default` feature. |
| release | Boolean | - | Build artifacts in release mode, with optimizations. |
| profile | String | - | Build artifacts with the specified profile. |
Example
Function RustCargoCommand.doc is not accessible from the rust moduleFunction RustCargoCommand.doc is not accessible from the rust moduleFunction RustCargoCommand.doc is not accessible from the rust moduleFunction RustCargoCommand.doc is not accessible from the rust moduleExtractFilterComposer 🔗
include() 🔗
Return Type
[String ! ] ! Example
Function RustExtractFilterComposer.include is not accessible from the rust moduleFunction RustExtractFilterComposer.include is not accessible from the rust moduleFunction RustExtractFilterComposer.include is not accessible from the rust moduleFunction RustExtractFilterComposer.include is not accessible from the rust modulestripComponents() 🔗
Return Type
Boolean ! Example
Function RustExtractFilterComposer.stripComponents is not accessible from the rust moduleFunction RustExtractFilterComposer.stripComponents is not accessible from the rust moduleFunction RustExtractFilterComposer.stripComponents is not accessible from the rust moduleFunction RustExtractFilterComposer.stripComponents is not accessible from the rust modulecompose() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | File ! | - | No description provided |
Example
Function RustExtractFilterComposer.compose is not accessible from the rust moduleFunction RustExtractFilterComposer.compose is not accessible from the rust moduleFunction RustExtractFilterComposer.compose is not accessible from the rust moduleFunction RustExtractFilterComposer.compose is not accessible from the rust moduleArchReplacer 🔗
key() 🔗
Return Type
String ! Example
Function RustArchReplacer.key is not accessible from the rust moduleFunction RustArchReplacer.key is not accessible from the rust moduleFunction RustArchReplacer.key is not accessible from the rust moduleFunction RustArchReplacer.key is not accessible from the rust modulereplace() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| s | String ! | - | No description provided |
Example
Function RustArchReplacer.replace is not accessible from the rust moduleFunction RustArchReplacer.replace is not accessible from the rust moduleFunction RustArchReplacer.replace is not accessible from the rust moduleFunction RustArchReplacer.replace is not accessible from the rust moduleGitHubDownloader 🔗
download() 🔗
Return Type
File ! Example
Function RustGitHubDownloader.download is not accessible from the rust moduleFunction RustGitHubDownloader.download is not accessible from the rust moduleFunction RustGitHubDownloader.download is not accessible from the rust moduleFunction RustGitHubDownloader.download is not accessible from the rust moduleBinaryComposer 🔗
compose() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | File ! | - | No description provided |
Example
Function RustBinaryComposer.compose is not accessible from the rust moduleFunction RustBinaryComposer.compose is not accessible from the rust moduleFunction RustBinaryComposer.compose is not accessible from the rust moduleFunction RustBinaryComposer.compose is not accessible from the rust moduleCargoBuildDownloader 🔗
download() 🔗
Return Type
File ! Example
Function RustCargoBuildDownloader.download is not accessible from the rust moduleFunction RustCargoBuildDownloader.download is not accessible from the rust moduleFunction RustCargoBuildDownloader.download is not accessible from the rust moduleFunction RustCargoBuildDownloader.download is not accessible from the rust moduleInstaller 🔗
downloader() 🔗
Return Type
Interface ! Example
Function RustInstaller.downloader is not accessible from the rust moduleFunction RustInstaller.downloader is not accessible from the rust moduleFunction RustInstaller.downloader is not accessible from the rust moduleFunction RustInstaller.downloader is not accessible from the rust modulecomposer() 🔗
Return Type
Interface ! Example
Function RustInstaller.composer is not accessible from the rust moduleFunction RustInstaller.composer is not accessible from the rust moduleFunction RustInstaller.composer is not accessible from the rust moduleFunction RustInstaller.composer is not accessible from the rust moduleinstall() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | No description provided |
Example
Function RustInstaller.install is not accessible from the rust moduleFunction RustInstaller.install is not accessible from the rust moduleFunction RustInstaller.install is not accessible from the rust moduleFunction RustInstaller.install is not accessible from the rust moduleRust 🔗
container() 🔗
Return Type
Container ! Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Rust().
Container()
}@function
def example() -> dagger.Container:
return (
dag.rust()
.container()
)@func()
example(): Container {
return dag
.rust()
.container()
}buildContainer() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| epoch | String | - | No description provided |
Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
build-containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Rust().
BuildContainer()
}@function
def example() -> dagger.Container:
return (
dag.rust()
.build_container()
)@func()
example(): Container {
return dag
.rust()
.buildContainer()
}build() 🔗
Compile a local package and all of its dependencies.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| package | [String ! ] | - | Package to build. |
| all | Boolean | - | Build all packages in the workspace. |
| exclude | [String ! ] | - | Exclude packages from the build. |
| lib | Boolean | - | Build only this package's library. |
| bins | Boolean | - | Build all binaries. |
| bin | [String ! ] | - | Build only the specified binary. |
| examples | Boolean | - | Build all examples. |
| example | [String ! ] | - | Build only the specified example. |
| tests | Boolean | - | Build all targets that have `test = true` set. |
| test | [String ! ] | - | Build only the specified test target. |
| benches | Boolean | - | Build all targets that have `bench = true` set. |
| bench | [String ! ] | - | Build only the specified bench target. |
| allTargets | Boolean | - | Build all targets. |
| target | [String ! ] | - | Build for the target triple. |
| allFeatures | Boolean | - | Activate all available features. |
| feature | [String ! ] | - | List of features to activate. |
| noDefaultFeatures | Boolean | - | Do not activate the `default` feature. |
| release | Boolean | - | Build artifacts in release mode, with optimizations. |
| profile | String | - | Build artifacts with the specified profile. |
| keepGoing | Boolean | - | Do not abort the build as soon as there is an error. |
| sourceDateEpoch | String | - | Override the source date epoch for reproducible builds. If not set, the epoch is determined from the git log (if available). |
Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
buildfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Rust().
Build()
}@function
def example() -> dagger.Directory:
return (
dag.rust()
.build()
)@func()
example(): Directory {
return dag
.rust()
.build()
}test() 🔗
Execute all unit and integration tests and build examples of a local package.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| testName | String | - | If specified, only run tests containing this string in their names. |
| args | [String ! ] | - | Arguments for the test binary. |
| noFailFast | Boolean | - | Run all tests regardless of failure. |
| package | [String ! ] | - | Package to run tests for. |
| all | Boolean | - | Test all packages in the workspace. |
| exclude | [String ! ] | - | Exclude packages from the test. |
| lib | Boolean | - | Test only this package's library. |
| bins | Boolean | - | Test all binaries. |
| bin | [String ! ] | - | Test only the specified binary. |
| examples | Boolean | - | Test all examples. |
| example | [String ! ] | - | Test only the specified example. |
| tests | Boolean | - | Test all targets that have `test = true` set. |
| test | [String ! ] | - | Test only the specified test target. |
| benches | Boolean | - | Test all targets that have `bench = true` set. |
| bench | [String ! ] | - | Test only the specified bench target. |
| allTargets | Boolean | - | Test all targets (does not include doctests). |
| target | [String ! ] | - | Build for the target triple. |
| doc | Boolean | - | Test only this library's documentation. |
| allFeatures | Boolean | - | Activate all available features. |
| feature | [String ! ] | - | List of features to activate. |
| noDefaultFeatures | Boolean | - | Do not activate the `default` feature. |
| release | Boolean | - | Build artifacts in release mode, with optimizations. |
| profile | String | - | Build artifacts with the specified profile. |
| sourceDateEpoch | String | - | Override the source date epoch for reproducible builds. If not set, the epoch is determined from the git log (if available). |
Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
testfunc (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()
}audit() 🔗
Audit Cargo.lock files for vulnerable crates.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| deny | Enum | - | Exit with an error on any violation. |
| ignore | [String ! ] | - | Advisory id to ignore (can be specified multiple times). |
| db | Directory | - | Directory containing the advisory database. |
Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
auditfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Rust().
Audit(ctx)
}@function
async def example() -> str:
return await (
dag.rust()
.audit()
)@func()
async example(): Promise<string> {
return dag
.rust()
.audit()
}fmt() 🔗
Checks Rust source formatting with cargo fmt --check.
Return Type
String ! Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
fmtfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Rust().
Fmt(ctx)
}@function
async def example() -> str:
return await (
dag.rust()
.fmt()
)@func()
async example(): Promise<string> {
return dag
.rust()
.fmt()
}clippy() 🔗
Checks a package to catch common mistakes and improve your Rust code.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| noDeps | Boolean | - | Run Clippy only on the given crate, without linting the dependencies. |
| warn | [String ! ] | - | Set lint warnings. |
| allow | [String ! ] | - | Set lint allowed. |
| deny | [String ! ] | - | Set lint denied. |
| forbid | [String ! ] | - | Set lint forbidden. |
Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
clippyfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Rust().
Clippy(ctx)
}@function
async def example() -> str:
return await (
dag.rust()
.clippy()
)@func()
async example(): Promise<string> {
return dag
.rust()
.clippy()
}doc() 🔗
Build a package’s documentation.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| noDeps | Boolean | - | Don't build documentation for dependencies. |
| package | [String ! ] | - | Package to run tests for. |
| all | Boolean | - | Test all packages in the workspace. |
| exclude | [String ! ] | - | Exclude packages from the test. |
| lib | Boolean | - | Test only this package's library. |
| bins | Boolean | - | Test all binaries. |
| bin | [String ! ] | - | Test only the specified binary. |
| examples | Boolean | - | Test all examples. |
| example | [String ! ] | - | Test only the specified example. |
| allFeatures | Boolean | - | Activate all available features. |
| feature | [String ! ] | - | List of features to activate. |
| noDefaultFeatures | Boolean | - | Do not activate the `default` feature. |
| release | Boolean | - | Build artifacts in release mode, with optimizations. |
| profile | String | - | Build artifacts with the specified profile. |
| sourceDateEpoch | String | - | Override the source date epoch for reproducible builds. If not set, the epoch is determined from the git log (if available). |
Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
docfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Rust().
Doc(ctx)
}@function
async def example() -> str:
return await (
dag.rust()
.doc()
)@func()
async example(): Promise<string> {
return dag
.rust()
.doc()
}fix() 🔗
Runs a fixer and returns a changeset that can be inspected or applied.
Return Type
Changeset !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| tool | [Enum ! ] | - | Tool to run. |
Example
dagger -m github.com/sagikazarmark/jwk-simple/dagger/rust@2f743be9f52526591576e6c84e4d8abc8df04bc4 call \
fixfunc (m *MyModule) Example() *dagger.Changeset {
return dag.
Rust().
Fix()
}@function
def example() -> dagger.Changeset:
return (
dag.rust()
.fix()
)@func()
example(): Changeset {
return dag
.rust()
.fix()
}