xref: /freebsd/contrib/file/magic/Magdir/rust (revision 898496ee09ed2b7d25f6807edc4515628196ec0a)
1*898496eeSXin LI
2*898496eeSXin LI#------------------------------------------------------------------------------
3*898496eeSXin LI# $File: rust,v 1.2 2022/11/18 15:58:15 christos Exp $
4*898496eeSXin LI# Magic for Rust and related languages programs
5*898496eeSXin LI#
6*898496eeSXin LI
7*898496eeSXin LI# Rust compiler metadata
8*898496eeSXin LI# From: Alexandre Iooss <erdnaxe@crans.org>
9*898496eeSXin LI# URL: https://github.com/rust-lang/rust/blob/1.64.0/compiler/rustc_metadata/src/rmeta/mod.rs
10*898496eeSXin LI0	string		rust\x00\x00\x00
11*898496eeSXin LI>12	string		\014rustc\x20		Rust compiler metadata
12*898496eeSXin LI!:ext	rmeta
13*898496eeSXin LI>>7	byte		x			\b, version %d
14*898496eeSXin LI
15*898496eeSXin LI# Rust incremental compilation metadata
16*898496eeSXin LI# From: Alexandre Iooss <erdnaxe@crans.org>
17*898496eeSXin LI# URL: https://github.com/rust-lang/rust/blob/1.64.0/compiler/rustc_incremental/src/persist/file_format.rs
18*898496eeSXin LI0	string		RSIC
19*898496eeSXin LI>4	uleshort	=0			Rust incremental compilation metadata
20*898496eeSXin LI!:ext	bin
21*898496eeSXin LI>>6	pstring		x			\b, rustc %s
22