MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / getCacheDir

Function getCacheDir

ecgo/rust/wrapper/wrapper.go:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26const ABI_VERSION = 4
27
28func getCacheDir() (string, error) {
29 homeDir, err := os.UserHomeDir()
30 if err != nil {
31 return "", err
32 }
33 cacheDir := filepath.Join(homeDir, ".cache", "ExpanderCompilerCollection")
34 err = os.MkdirAll(cacheDir, 0755)
35 return cacheDir, err
36}
37
38var compilePtr unsafe.Pointer = nil
39var proveCircuitFilePtr unsafe.Pointer = nil

Callers 1

initCompilePtrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected