1
Fork 0

Add documentation of the option into the unstable book

This commit is contained in:
Jakub Beránek 2025-02-20 21:34:11 +01:00
parent 9800eb2cab
commit a5057b786b

View file

@ -0,0 +1,3 @@
## `embed-metadata`
This option instructs `rustc` to include the full metadata in `rlib` and `dylib` crate types. The default value is `yes` (enabled). If disabled (`no`), only stub metadata will be stored in these files, to reduce their size on disk. When using `-Zembed-metadata=no`, you will probably want to use `--emit=metadata` to produce the full metadata into a separate `.rmeta` file.