upb
upb copied to clipboard
can not build for wasm because setjmp
to build with wasm32-unknown-wasi, need remove setjmp for wasm target
setjmp is a major part of upb's error handling. While eventual support for wasm is desired, this is not a thing we will be starting for a number of months.
If there is away to replace setjmp with a slow speed solution for wasm, please give some tips. disable error handing for wasm also acceptable.
with UPB tiny size, it is very suit for deploy protobuf into browser or other platform support wasm.
Disabling error handling is not acceptable for us. It would require significant code rework to avoid setjmp/longjmp here.
Ugh. The trend in upb is actually to move towards more setjmp/longjmp, not less, because of how much simpler and more efficient it makes everything else.