xref: /freebsd/contrib/file/magic/Magdir/webassembly (revision 1b10e191f341111fad7be32ead11484dfd09b800)
1#------------------------------------------------------------------------------
2# $File: webassembly,v 1.4 2022/08/16 11:16:39 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 module
14>4	lelong	=1	version %#x (MVP)
15!:mime  application/wasm
16!:ext   wasm
17>4	lelong	>1	version %#x
18