Closed
Description
The reference documents that exern crate has some documentation on linkage of dependencies, but appears to relate to Edition 2015 (or at least not mention linking without extern crate
).
We are considering use of extern "Rust"
and #[no_mangle]
for custom backends in getrandom (standalone demo), however before proceeding would like to know:
- if we can rely on this poorly documented aspect of the language
- why "multiple definition" errors are not always present when declaring multiple backend libs with
extern crate