webassembly 693 B

123456789101112131415161718
  1. #------------------------------------------------------------------------------
  2. # $File: webassembly,v 1.5 2025/06/08 15:37:23 christos Exp $
  3. # webassembly: file(1) magic for WebAssembly modules
  4. #
  5. # WebAssembly is a virtual architecture developed by a W3C Community
  6. # Group at https://webassembly.org/. The file extension is .wasm, and
  7. # the MIME type is application/wasm.
  8. #
  9. # https://webassembly.org/docs/binary-encoding/ is the main
  10. # document describing the binary format.
  11. # From: Pip Cet <pipcet@gmail.com> and Joel Martin
  12. 0 string \0asm WebAssembly (wasm) binary
  13. >4 lelong >0 version %#x
  14. >4 lelong =1 (MVP module)
  15. >4 lelong =0x1000d (component)
  16. !:mime application/wasm
  17. !:ext wasm