In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/egcargo"

func CacheDirectory

func CacheDirectory(dirs ...string) string

func Env

func Env() ([]string, error)

attempt to build the rust environment that sets up the cargo environment for caching.

func Runtime

func Runtime() shell.Command

Create a shell runtime that properly sets up the cargo environment for caching.