yglukhov / nim-jwt

JWT implementation for nim-lang
MIT License
51 stars 11 forks source link

Not GC safe error #13

Closed h3rald closed 2 years ago

h3rald commented 3 years ago

Hi!

I am using Nim v1.4.4 and trying to build my project (litestore) that uses jwt v0.2, but unfortunately I am getting a fatal error:

h3rald@h3raldbook:~/dev/litestore/src
$ nim c -d:release litestore
Hint: used config file '/Users/h3rald/.choosenim/toolchains/nim-1.4.4/config/nim.cfg' [Conf]
Hint: used config file '/Users/h3rald/.choosenim/toolchains/nim-1.4.4/config/config.nims' [Conf]
Hint: used config file 'litestore.nim.cfg' [Conf]
........................................................
/Users/h3rald/.nimble/pkgs/jwt-0.2/jwt/private/crypto.nim(52, 23) Error: cast[proc (ctx: pointer; pbytes: pointer; nbytes: int) {.cdecl, gcsafe,
    noSideEffect, raises: [].}](pkeyDecoderPush) is not GC safe

Any chance of a fix?

thanks a lot for providing jwt validation for Nim btw!

yglukhov commented 2 years ago

I'm pretty sure it is resolved by now. Please reopen otherwise.