cargo
No long description provided.
Installation
dagger install github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5Entrypoint
Return Type
Cargo Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
func (m *MyModule) Example() *dagger.Cargo {
return dag.
Cargo()
}@function
def example() -> dagger.Cargo:
return (
dag.cargo()
)@func()
example(): Cargo {
return dag
.cargo()
}Types
Cargo 🔗
ctr() 🔗
Return Type
Container ! Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
ctrfunc (m *MyModule) Example() *dagger.Container {
return dag.
Cargo().
Ctr()
}@function
def example() -> dagger.Container:
return (
dag.cargo()
.ctr()
)@func()
example(): Container {
return dag
.cargo()
.ctr()
}proj() 🔗
Return Type
Directory ! Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
projfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Cargo().
Proj()
}@function
def example() -> dagger.Directory:
return (
dag.cargo()
.proj()
)@func()
example(): Directory {
return dag
.cargo()
.proj()
}build() 🔗
Build the project
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
build --args string1 --args string2func (m *MyModule) Example(args []string) *dagger.Directory {
return dag.
Cargo().
Build(args)
}@function
def example(args: List[str]) -> dagger.Directory:
return (
dag.cargo()
.build(args)
)@func()
example(args: string[]): Directory {
return dag
.cargo()
.build(args)
}fmt() 🔗
Format the project
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
fmt --args string1 --args string2func (m *MyModule) Example(ctx context.Context, args []string) string {
return dag.
Cargo().
Fmt(ctx, args)
}@function
async def example(args: List[str]) -> str:
return await (
dag.cargo()
.fmt(args)
)@func()
async example(args: string[]): Promise<string> {
return dag
.cargo()
.fmt(args)
}test() 🔗
Test the project
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
test --args string1 --args string2func (m *MyModule) Example(ctx context.Context, args []string) string {
return dag.
Cargo().
Test(ctx, args)
}@function
async def example(args: List[str]) -> str:
return await (
dag.cargo()
.test(args)
)@func()
async example(args: string[]): Promise<string> {
return dag
.cargo()
.test(args)
}clippy() 🔗
Lint the project
Return Type
String ! Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
clippyfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Cargo().
Clippy(ctx)
}@function
async def example() -> str:
return await (
dag.cargo()
.clippy()
)@func()
async example(): Promise<string> {
return dag
.cargo()
.clippy()
}base() 🔗
Sets up the Container with a rust image
Return Type
Cargo !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String ! | - | No description provided |
Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
base --version stringfunc (m *MyModule) Example(version string) *dagger.Cargo {
return dag.
Cargo().
Base(version)
}@function
def example(version: str) -> dagger.Cargo:
return (
dag.cargo()
.base(version)
)@func()
example(version: string): Cargo {
return dag
.cargo()
.base(version)
}installFromGit() 🔗
Install a package from a git repository
Return Type
Cargo !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| url | String ! | - | No description provided |
| branch | String ! | - | No description provided |
| bin | String ! | - | No description provided |
| pkg | String ! | - | No description provided |
Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
install-from-git --url string --branch string --bin string --pkg stringfunc (m *MyModule) Example(url string, branch string, bin string, pkg string) *dagger.Cargo {
return dag.
Cargo().
InstallFromGit(url, branch, bin, pkg)
}@function
def example(url: str, branch: str, bin: str, pkg: str) -> dagger.Cargo:
return (
dag.cargo()
.install_from_git(url, branch, bin, pkg)
)@func()
example(url: string, branch: string, bin: string, pkg: string): Cargo {
return dag
.cargo()
.installFromGit(url, branch, bin, pkg)
}container() 🔗
Accessor for the Container
Return Type
Container ! Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Cargo().
Container()
}@function
def example() -> dagger.Container:
return (
dag.cargo()
.container()
)@func()
example(): Container {
return dag
.cargo()
.container()
}project() 🔗
Accessor for the Project
Return Type
Directory ! Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
projectfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Cargo().
Project()
}@function
def example() -> dagger.Directory:
return (
dag.cargo()
.project()
)@func()
example(): Directory {
return dag
.cargo()
.project()
}withProject() 🔗
Specify the Project to use in the module
Return Type
Cargo !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | No description provided |
Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
with-project --dir DIR_PATHfunc (m *MyModule) Example(dir *dagger.Directory) *dagger.Cargo {
return dag.
Cargo().
WithProject(dir)
}@function
def example(dir: dagger.Directory) -> dagger.Cargo:
return (
dag.cargo()
.with_project(dir)
)@func()
example(dir: Directory): Cargo {
return dag
.cargo()
.withProject(dir)
}withContainer() 🔗
Bring your own container
Return Type
Cargo !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/grouville/daggerverse/cargo@a40688acea4abce293087d5022f112551c0f42f5 call \
with-container --ctr IMAGE:TAGfunc (m *MyModule) Example(ctr *dagger.Container) *dagger.Cargo {
return dag.
Cargo().
WithContainer(ctr)
}@function
def example(ctr: dagger.Container) -> dagger.Cargo:
return (
dag.cargo()
.with_container(ctr)
)@func()
example(ctr: Container): Cargo {
return dag
.cargo()
.withContainer(ctr)
}