c2rust
c2rust copied to clipboard
`json2cbor.c` fails to build on macOS 10.15
tools/json2cbor/json2cbor.c:201:9: error: implicit declaration of function 'asprintf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (asprintf(&metadatakey, "%s%s", item->string, meta_data_marker) < 0 || metadatakey == NULL)
This looks like a duplicate of #353, which has been fixed (but not in a released version, it seems). Can you try building from git (or one of the other workarounds mentioned in discussion on #353)?
Building from git seems to help but I run into #676