Open
Description
Existence or lack of --crate-type=bin
may influence output of other crate-type
outputs. In general libfoo.a
output by --crate-type=bin,staticlib
and --crate-type=staticlib
might be completely different.
For example using this foo.rs
, this is the list of a few first symbols when built with --crate-type=bin,staticlib
and this, when bin
crate-type is absent.
This is a quirk in rust’s entry point semantics and how current middle/entry.rs
is implemented.