Add gcsafe pragma

This commit is contained in:
Arnaud 2024-12-26 07:14:28 +01:00
parent daadffe30a
commit d6b1781b34
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
4 changed files with 10 additions and 10 deletions

View File

@ -43,7 +43,7 @@ proc zkeyFilePath(config: CodexConf): string =
proc initializeFromCircuitDirFiles(
config: CodexConf,
utils: BackendUtils): ?!AnyBackend =
utils: BackendUtils): ?!AnyBackend {.gcsafe.} =
if fileExists(config.r1csFilePath) and
fileExists(config.wasmFilePath) and
fileExists(config.zkeyFilePath):

View File

@ -8,5 +8,5 @@ method initializeCircomBackend*(
r1csFile: string,
wasmFile: string,
zKeyFile: string
): AnyBackend {.base.} =
): AnyBackend {.base, gcsafe.}=
CircomCompat.init(r1csFile, wasmFile, zKeyFile)

View File

@ -112,13 +112,13 @@ method ensureExpiry*(
raiseAssert("Not implemented!")
method delBlock*(self: BlockStore, cid: Cid): Future[?!void] {.base.} =
method delBlock*(self: BlockStore, cid: Cid): Future[?!void] {.base, gcsafe.} =
## Delete a block from the blockstore
##
raiseAssert("delBlock not implemented!")
method delBlock*(self: BlockStore, treeCid: Cid, index: Natural): Future[?!void] {.base.} =
method delBlock*(self: BlockStore, treeCid: Cid, index: Natural): Future[?!void] {.base, gcsafe.} =
## Delete a block from the blockstore
##

View File

@ -26,22 +26,22 @@ type
name*: string
NodeProcessError* = object of CatchableError
method workingDir(node: NodeProcess): string {.base.} =
method workingDir(node: NodeProcess): string {.base, gcsafe.} =
raiseAssert "not implemented"
method executable(node: NodeProcess): string {.base.} =
method executable(node: NodeProcess): string {.base, gcsafe.} =
raiseAssert "not implemented"
method startedOutput(node: NodeProcess): string {.base.} =
method startedOutput(node: NodeProcess): string {.base, gcsafe.} =
raiseAssert "not implemented"
method processOptions(node: NodeProcess): set[AsyncProcessOption] {.base.} =
method processOptions(node: NodeProcess): set[AsyncProcessOption] {.base, gcsafe.} =
raiseAssert "not implemented"
method outputLineEndings(node: NodeProcess): string {.base.} =
method outputLineEndings(node: NodeProcess): string {.base, gcsafe.} =
raiseAssert "not implemented"
method onOutputLineCaptured(node: NodeProcess, line: string) {.base.} =
method onOutputLineCaptured(node: NodeProcess, line: string) {.base, gcsafe.} =
raiseAssert "not implemented"
method start*(node: NodeProcess) {.base, async.} =