Dagger
Search

ci-dagger

No long description provided.

Installation

dagger install github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008

Entrypoint

Return Type
CiDagger
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
func (m *MyModule) Example() *dagger.CiDagger  {
	return dag.
			Cidagger()
}
@function
def example() -> dagger.CiDagger:
	return (
		dag.ci_dagger()
	)
@func()
example(): CiDagger {
	return dag
		.ciDagger()
}

Types

CiDagger 🔗

CiDagger is a collection of reusable Dagger-based CI primitives.

bun() 🔗

Bun runs a Bun project’s checks: bun install in each –install-dirs entry (frozen lockfile by default), then the –run script at the repo root. Node is present too (–node) because tools like jest run on node.

dagger call -m github.com/exowatt-oss/ci-dagger@main bun --src=. --repo=example-project --install-dirs=.,backend,frontend --frozen=false \
  --dep-include='backend/prisma/**' --apt=openssl \
  --run='cd backend && bunx prisma generate && cd .. && bun run lint && bun run test:backend'
Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
repoString !-

Repository name (“Owner/name” or “name”).

installDirs[String ! ] -

Directories to bun install in, in order (repo-relative).

bunString "1.3.14"

Bun version (npm package bun@, installed through –npm-registry when set).

nodeString "22"

Node major version of the base image (node:-bookworm-slim).

frozenBoolean true

bun install --frozen-lockfile (true) or plain bun install.

runString -

Bash script run after the install, at the repo root.

apt[String ! ] -No description provided
env[String ! ] -No description provided
depInclude[String ! ] -

Extra repo-relative globs the install needs (e.g. “backend/prisma/**” for a prisma generate postinstall). Every package.json, bun.lock(b), bunfig.toml and .npmrc is always included.

pgAdminUrlSecret -No description provided
databaseUrlSchemeString "postgresql"No description provided
databaseEnv[String ! ] -No description provided
shaString -No description provided
depCacheString -No description provided
depCacheUsernameString ""No description provided
depCachePasswordSecret -No description provided
npmRegistryString -

npm registry for the install (optional mirror).

testWorkersInteger 2

Max test workers (VITEST_MAX_WORKERS, CI_TEST_WORKERS); 0 = runner default.

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 bun --src DIR_PATH --repo string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string  {
	return dag.
			Cidagger().
			Bun(ctx, src, repo)
}
@function
async def example(src: dagger.Directory, repo: str) -> str:
	return await (
		dag.ci_dagger()
		.bun(src, repo)
	)
@func()
async example(src: Directory, repo: string): Promise<string> {
	return dag
		.ciDagger()
		.bun(src, repo)
}

containerRun() 🔗

ContainerRun is the generic escape hatch: any image (pinned by digest unless –allow-tag) + optional apt packages + an optional –setup script (cached, before the source: e.g. install helm) + the –run script on the checkout, in –dir, through –shell (default sh, for busybox images). Covers tools no toolchain primitive models (helm, promtool, cmake, …).

dagger call -m github.com/exowatt-oss/ci-dagger@main container-run --src=. --repo=example-project \
  --image=public.ecr.aws/docker/library/alpine:3.22@sha256:… \
  --setup='apk add --no-cache helm' --run='helm template charts/x >/dev/null'
Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
repoString !-

Repository name (“Owner/name” or “name”).

imageString !-

Image reference, pinned by digest (@sha256:<64 hex>).

runString !-

Script run on the checkout, in –dir.

allowTagBoolean -

Accept an unpinned tag for –image.

dirString "."

Working directory, relative to the repo root.

apt[String ! ] -

Debian/Ubuntu packages (only for apt-based images).

setupString -

Script run once in the image before the source is mounted (cached by the engine).

shellString "sh"

Shell for –run (“sh” or “bash”); errexit is always on. –setup always runs through sh.

env[String ! ] -No description provided
pgAdminUrlSecret -No description provided
databaseUrlSchemeString "postgresql"No description provided
databaseEnv[String ! ] -No description provided
shaString -No description provided
testWorkersInteger 2

Max test workers (CI_TEST_WORKERS etc.); 0 = unset.

gitIndexBoolean -

Synthesize a git repository from the checkout (needs git in the image).

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 container-run --src DIR_PATH --repo string --image string --run string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string, image string, run string) string  {
	return dag.
			Cidagger().
			Containerrun(ctx, src, repo, image, run)
}
@function
async def example(src: dagger.Directory, repo: str, image: str, run: str) -> str:
	return await (
		dag.ci_dagger()
		.containerrun(src, repo, image, run)
	)
@func()
async example(src: Directory, repo: string, image: string, run: string): Promise<string> {
	return dag
		.ciDagger()
		.containerRun(src, repo, image, run)
}

dropDb() 🔗

DropDb drops a database created by EphemeralDb. It refuses names outside the constrained ci_ form.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
pgAdminUrlSecret !-No description provided
nameString !-No description provided
Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 drop-db --pg-admin-url env:MYSECRET --name string
func (m *MyModule) Example(ctx context.Context, pgAdminUrl *dagger.Secret, name string)   {
	return dag.
			Cidagger().
			Dropdb(ctx, pgAdminUrl, name)
}
@function
async def example(pgadminurl: dagger.Secret, name: str) -> None:
	return await (
		dag.ci_dagger()
		.dropdb(pgadminurl, name)
	)
@func()
async example(pgAdminUrl: Secret, name: string): Promise<void> {
	return dag
		.ciDagger()
		.dropDb(pgAdminUrl, name)
}

ephemeralDb() 🔗

EphemeralDb creates an isolated database on a caller-provided PostgreSQL server using an admin role with CREATEDB. Pair it with DropDb when finished.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
pgAdminUrlSecret !-

PostgreSQL admin URL supplied as a Dagger secret.

repoString !-

Short repository identifier used in the database name.

shaString !-

Full commit SHA used to distinguish databases for different revisions.

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 ephemeral-db --pg-admin-url env:MYSECRET --repo string --sha string
func (m *MyModule) Example(ctx context.Context, pgAdminUrl *dagger.Secret, repo string, sha string) string  {
	return dag.
			Cidagger().
			Ephemeraldb(ctx, pgAdminUrl, repo, sha)
}
@function
async def example(pgadminurl: dagger.Secret, repo: str, sha: str) -> str:
	return await (
		dag.ci_dagger()
		.ephemeraldb(pgadminurl, repo, sha)
	)
@func()
async example(pgAdminUrl: Secret, repo: string, sha: string): Promise<string> {
	return dag
		.ciDagger()
		.ephemeralDb(pgAdminUrl, repo, sha)
}

go() 🔗

Go runs a Go module’s checks: the official golang image for go.mod’s toolchain/go version (or –go), a dependency layer (go mod download from go.mod/go.sum only), a persistent build cache, then –run (default go vet ./... && go test -race ./...) in –dir.

dagger call -m github.com/exowatt-oss/ci-dagger@main go --src=. --repo=example-project --run='go vet ./... && go test ./...'
Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
repoString !-

Repository name (“Owner/name” or “name”).

dirString "."

Module directory (holds go.mod), relative to the repo root.

goVersionString -

Go version (golang:-bookworm); empty = go.mod toolchain / go directive.

runString -

Bash script run in –dir (set -euo pipefail). Default: go vet ./… && go test -race ./…

apt[String ! ] -No description provided
env[String ! ] -No description provided
depInclude[String ! ] -

Extra repo-relative globs go mod download needs (replace targets outside –dir).

goproxyString -

GOPROXY for the download (default: Go’s default, proxy.golang.org).

pgAdminUrlSecret -No description provided
databaseUrlSchemeString "postgresql"No description provided
databaseEnv[String ! ] -No description provided
shaString -No description provided
depCacheString -No description provided
depCacheUsernameString ""No description provided
depCachePasswordSecret -No description provided
testWorkersInteger 2

Max test workers (GOFLAGS -p, CI_TEST_WORKERS); 0 = runner default.

gitIndexBoolean -

Synthesize a git repository from the checkout (git init + add -Afor tools that ask git which files are tracked. .git never enters the call.

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 go --src DIR_PATH --repo string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string  {
	return dag.
			Cidagger().
			Go(ctx, src, repo)
}
@function
async def example(src: dagger.Directory, repo: str) -> str:
	return await (
		dag.ci_dagger()
		.go(src, repo)
	)
@func()
async example(src: Directory, repo: string): Promise<string> {
	return dag
		.ciDagger()
		.go(src, repo)
}

npm() 🔗

Npm runs a Node/npm project’s checks: bounded npm ci (supports optional npm mirrors, git+ssh deps via –ssh-key), then npm run <script> for each –scripts entry, then the –run script, all in –dir. (Named npm, not node: node is a reserved GraphQL root field.)

dagger call -m github.com/exowatt-oss/ci-dagger@main npm --src=. --repo=example-project --dir=frontend --node=24 \
  --scripts=typecheck,lint,test,build --npm-registry=https://registry.npmjs.org/
Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
repoString !-

Repository name (“Owner/name” or “name”).

dirString "."

Project directory (holds package.json / package-lock.json).

nodeString "22"

Node major version (node:-bookworm-slim).

scripts[String ! ] -

npm scripts to run in order (npm run <name>), e.g. [“lint”,“typecheck”,“test”,“build”].

runString -

Bash script run after the scripts, in –dir.

apt[String ! ] -No description provided
env[String ! ] -No description provided
sshKeySecret -

Read-only deploy key for git+ssh dependencies (install step only).

depInclude[String ! ] -

Extra repo-relative globs the install needs (e.g. a postinstall’s inputs).

pgAdminUrlSecret -No description provided
databaseUrlSchemeString "postgresql"No description provided
databaseEnv[String ! ] -No description provided
shaString -No description provided
depCacheString -No description provided
depCacheUsernameString ""No description provided
depCachePasswordSecret -No description provided
npmRegistryString -

npm registry for the install (optional mirror), e.g. https://registry.npmjs.org/.

testWorkersInteger 2

Max test workers (VITEST_MAX_WORKERS, CI_TEST_WORKERS); 0 = runner default.

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 npm --src DIR_PATH --repo string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string  {
	return dag.
			Cidagger().
			Npm(ctx, src, repo)
}
@function
async def example(src: dagger.Directory, repo: str) -> str:
	return await (
		dag.ci_dagger()
		.npm(src, repo)
	)
@func()
async example(src: Directory, repo: string): Promise<string> {
	return dag
		.ciDagger()
		.npm(src, repo)
}

pnpm() 🔗

Pnpm runs a pnpm project’s checks: pnpm (the packageManager version from package.json, or –pnpm) installed from npm or a configured mirror, a dependency layer built by pnpm fetch from pnpm-lock.yaml alone, then a bounded, retried pnpm install --frozen-lockfile on the full checkout, pnpm run <script> for each –scripts entry and the –run script, all in –dir.

dagger call -m github.com/exowatt-oss/ci-dagger@main pnpm --src=. --repo=example-project --node=24 \
  --scripts=typecheck,test,lint,check:max-lines-ratchet --npm-registry=https://registry.npmjs.org/
Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-

Only the ROOT node_modules is left out: repos may commit vendored node_modules trees (e.g. native payloads under resources/), and a fresh CI clone has no other node_modules .

repoString !-

Repository name (“Owner/name” or “name”).

dirString "."

Project (workspace root) directory: holds package.json and pnpm-lock.yaml.

nodeString "22"

Node major version (node:-bookworm-slim).

pnpmString -

pnpm version; empty = package.json “packageManager” (as pnpm/action-setup).

frozenBoolean true

pnpm install --frozen-lockfile (true) or plain pnpm install.

installArgs[String ! ] -

Extra pnpm install arguments, e.g. [“–ignore-scripts”].

scripts[String ! ] -

Scripts to run in order (pnpm run <name>), e.g. [“typecheck”,“test”,“lint”].

runString -

Bash script run after the scripts, in –dir (set -euo pipefail).

apt[String ! ] -No description provided
env[String ! ] -No description provided
depInclude[String ! ] -

Extra repo-relative globs pnpm fetch needs (pnpm-lock.yaml, pnpm-workspace.yaml, .npmrc, .pnpmfile.cjs and patches/** of –dir are always included).

pgAdminUrlSecret -No description provided
databaseUrlSchemeString "postgresql"No description provided
databaseEnv[String ! ] -No description provided
shaString -No description provided
depCacheString -No description provided
depCacheUsernameString ""No description provided
depCachePasswordSecret -No description provided
npmRegistryString -

npm registry for pnpm itself and the install (optional mirror), e.g. https://registry.npmjs.org/.

testWorkersInteger 2

Max test workers (VITEST_MAX_WORKERS, CI_TEST_WORKERS); 0 = runner default.

gitIndexBoolean -

Synthesize a git repository from the checkout (git init + add -Afor tools that ask git which files are tracked. .git never enters the call.

nonRootBoolean -

Run the scripts and –run as an unprivileged user “ci” (uid 1000, owns /src and the store) instead of root, like a GitHub-hosted runner: tests that assert permission errors cannot fail as root .

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 pnpm --src DIR_PATH --repo string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string  {
	return dag.
			Cidagger().
			Pnpm(ctx, src, repo)
}
@function
async def example(src: dagger.Directory, repo: str) -> str:
	return await (
		dag.ci_dagger()
		.pnpm(src, repo)
	)
@func()
async example(src: Directory, repo: string): Promise<string> {
	return dag
		.ciDagger()
		.pnpm(src, repo)
}

pythonPlain() 🔗

PythonPlain runs a plain Python project (no uv project: requirements files or nothing at all): python:-slim-bookworm, pip install -r each –requirements file plus –pip packages (dependency layer keyed on those files), then –run in –dir. For uv projects use python-uv.

dagger call -m github.com/exowatt-oss/ci-dagger@main python-plain --src=. --repo=example-project --run='python -m unittest discover -s tests -v'
Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
repoString !-

Repository name (“Owner/name” or “name”).

dirString "."

Working directory, relative to the repo root.

pythonString "3.12"

Python version (python:-slim-bookworm).

requirements[String ! ] -

Requirement files (relative to –dir) installed with pip install -r.

pip[String ! ] -

Extra packages for pip install (e.g. [“miss_hit”, “pytest”]).

runString !-

Bash script run in –dir (set -euo pipefail).

apt[String ! ] -No description provided
env[String ! ] -No description provided
depInclude[String ! ] -

Extra repo-relative globs the install needs (constraint files, local wheels).

pgAdminUrlSecret -No description provided
databaseUrlSchemeString "postgresql"No description provided
databaseEnv[String ! ] -No description provided
shaString -No description provided
depCacheString -No description provided
depCacheUsernameString ""No description provided
depCachePasswordSecret -No description provided
pypiIndexString -

Python simple index for pip (optional mirror), e.g. https://pypi.org/simple/.

testWorkersInteger 2

Max test workers (PYTEST_XDIST_AUTO_NUM_WORKERS, CI_TEST_WORKERS); 0 = runner default.

gitIndexBoolean -

Synthesize a git repository from the checkout (git init + add -Afor tools that ask git which files are tracked (git ls-files). .git itself never enters the call.

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 python-plain --src DIR_PATH --repo string --run string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string, run string) string  {
	return dag.
			Cidagger().
			Pythonplain(ctx, src, repo, run)
}
@function
async def example(src: dagger.Directory, repo: str, run: str) -> str:
	return await (
		dag.ci_dagger()
		.pythonplain(src, repo, run)
	)
@func()
async example(src: Directory, repo: string, run: string): Promise<string> {
	return dag
		.ciDagger()
		.pythonPlain(src, repo, run)
}

pythonUv() 🔗

PythonUv runs a uv project’s checks: uv sync (supports optional PyPI mirrors), then the named –checks in order (ruff, ruff-format, pyright, mypy, pytest, alembic, alembic-check), then the –run script, all in –dir. With –pg-admin-url each run gets its own database on a caller-provided PostgreSQL server (never a Postgres container), exported as DATABASE_URL (scheme –database-url-scheme) and PG* variables, dropped at the end.

dagger call -m github.com/exowatt-oss/ci-dagger@main python-uv --src=. --repo=example-project --dir=backend \
  --pg-admin-url=env://PG_ADMIN_URL --checks=alembic,ruff,pytest \
  --dep-cache=registry.example.com/ci-cache --dep-cache-password=env://CACHE_PASSWORD
Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-

Repository checkout. Local caches/venvs and VCS metadata never enter the call.

repoString !-

Repository name (“Owner/name” or “name”): dep-cache path and database name.

dirString "."

Project directory (holds pyproject.toml / uv.lock), relative to the repo root.

pythonString "3.12"

Python version (python:-slim-bookworm). uv never downloads interpreters.

syncArgs[String ! ] -

Extra uv sync arguments, e.g. [“–extra”,“ercot”], [“–all-extras”], [“–frozen”].

checks[String ! ] -

Named checks, run in order: ruff, ruff-format, pyright, mypy, pytest, alembic, alembic-check.

runString -

Bash script run after the checks, in –dir (set -euo pipefail). For chains the presets don’t cover, e.g. “uv run alembic upgrade head && cd ../core && uv run –project ../backend pytest -q”.

apt[String ! ] -

Extra Debian packages (e.g. postgresql-client, qpdf, libgl1).

env[String ! ] -

Non-secret KEY=VALUE environment for the checks.

depInclude[String ! ] -

Extra repo-relative globs the dependency layer needs (path dependencies outside –dir, e.g. “clients/python/**”). Every pyproject.toml/uv.lock is always included.

pgAdminUrlSecret -

Admin URL of the native PostgreSQL (role with CREATEDB), e.g. env://PG_ADMIN_URL on the caller-provided PostgreSQL server. Omit for no database.

databaseUrlSchemeString "postgresql+psycopg"

URL scheme of the exported database URL (SQLAlchemy drivers: postgresql+psycopg, postgresql

databaseEnv[String ! ] -

Variables that receive the database URL (default DATABASE_URL).

shaString -

Commit SHA (part of the database name).

depCacheString -

Dependency-image cache “/” (see the README Configuration section).

depCacheUsernameString ""No description provided
depCachePasswordSecret -No description provided
pypiIndexString -

Python simple index for uv (optional mirror), e.g. https://pypi.org/simple/. Projects that pin their own [[tool.uv.index]] keep it.

testWorkersInteger 2

Max test workers (PYTEST_XDIST_AUTO_NUM_WORKERS, CI_TEST_WORKERS); 0 = runner default.

sshKey[Secret ! ] -

Read-only deploy keys for git+ssh dependencies (uv sources such as ssh://git@github.com/Owner/repo), repeatable. Secret mounts for uv sync and the checks/–run (a test may fetch one, e.g. uvx), never in the cached dependency layer.

sshKeyRepo[String ! ] -

GitHub “Owner/name” of each –ssh-key, same order; required with more than one key (GitHub binds a session to the first key it accepts).

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 python-uv --src DIR_PATH --repo string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string  {
	return dag.
			Cidagger().
			Pythonuv(ctx, src, repo)
}
@function
async def example(src: dagger.Directory, repo: str) -> str:
	return await (
		dag.ci_dagger()
		.pythonuv(src, repo)
	)
@func()
async example(src: Directory, repo: string): Promise<string> {
	return dag
		.ciDagger()
		.pythonUv(src, repo)
}

rust() 🔗

Rust runs a Cargo project’s checks: the official rust image (–rust, default the current stable “1”), the toolchain + components the checkout pins in rust-toolchain(.toml) (or –toolchain), optional cargo tools (–tools, e.g. cargo-deny), a dependency layer (cargo fetch from the manifests and Cargo.lock only), a per-repo target-dir cache, then –run (default cargo fmt --check && cargo clippy -D warnings && cargo test) in –dir.

dagger call -m github.com/exowatt-oss/ci-dagger@main rust --src=. --repo=example-project --tools=cargo-deny \
  --run='cargo fmt --all -- --check && cargo clippy --all-targets -- -D warnings && cargo test && cargo deny check'
Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
repoString !-

Repository name (“Owner/name” or “name”).

dirString "."

Workspace directory (holds Cargo.toml / Cargo.lock), relative to the repo root.

rustString "1"

Base image version (rust:-bookworm), e.g. “1” (current stable) or “1.89”; “-trixie” selects the Debian 13 image (glibc 2.41, e.g. for Verus release binaries).

toolchainChannelString -

Toolchain to install and use (overrides rust-toolchain.toml), e.g. “stable”, “1.89.0”.

components[String ! ] -

rustup components (default clippy, rustfmt; plus any rust-toolchain.toml lists).

tools[String ! ] -

Cargo tools installed with cargo install --locked into the cached layer, e.g. [“cargo-deny@0.18.3”].

runString -

Bash script run in –dir (set -euo pipefail). Default: cargo fmt –check, clippy -D warnings, cargo test.

apt[String ! ] -No description provided
env[String ! ] -No description provided
depInclude[String ! ] -

Extra repo-relative globs cargo fetch needs (path dependencies outside –dir).

pgAdminUrlSecret -No description provided
databaseUrlSchemeString "postgresql"No description provided
databaseEnv[String ! ] -No description provided
shaString -No description provided
depCacheString -No description provided
depCacheUsernameString ""No description provided
depCachePasswordSecret -No description provided
testWorkersInteger 2

Max test threads (RUST_TEST_THREADS, CI_TEST_WORKERS) and 2x build jobs; 0 = runner default.

gitIndexBoolean -

Synthesize a git repository from the checkout (git init + add -Afor tools that ask git which files are tracked. .git never enters the call.

verusString -

Verus version to provide to –run , e.g. 0.2026.10.26.d17fbd0. The pinned zip (–verus-url, default the x86-linux asset of the GitHub release release/) is fetched with its –verus-sha256 checked and unpacked into an immutable, content-addressed layer mounted read-only at /opt/verus: \(VERUS is the binary, \)VERUS_HOME its directory, and it is on PATH. No cache volume ever holds Verus.

verusSha256String -

sha256 (64 hex digits) of the Verus zip. Required with –verus.

verusUrlString -

https URL of the Verus zip (e.g. a third-party mirror). Default: the GitHub release asset verus--x86-linux.zip.

Example
dagger -m github.com/exowatt-oss/ci-dagger@eb1a344a9b237691b76a44b3fc01695666ea3008 call \
 rust --src DIR_PATH --repo string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, repo string) string  {
	return dag.
			Cidagger().
			Rust(ctx, src, repo)
}
@function
async def example(src: dagger.Directory, repo: str) -> str:
	return await (
		dag.ci_dagger()
		.rust(src, repo)
	)
@func()
async example(src: Directory, repo: string): Promise<string> {
	return dag
		.ciDagger()
		.rust(src, repo)
}