xref: /freebsd/contrib/file/magic/Magdir/webassembly (revision e949ce9dc0e6fff26e83904f1008b76d36ba0a37)
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
130	string	\0asm		WebAssembly (wasm) binary
14>4	lelong	>0		version %#x
15>4	lelong	=1		(MVP module)
16>4	lelong	=0x1000d	(component)
17!:mime  application/wasm
18!:ext   wasm
19