Open
Description
I'm creating a bunch of #[no_mangle] pub extern fn
that will be callable from C code. Sometimes I forget to put them in my toplevel lib.rs
as pub use
. This is the warning I get:
warning: function is marked #[no_mangle], but not exported
--> src/state.rs:436:1
|
436 | pub extern "C" fn rsvg_state_rust_parse_style_pair(
| ^
| |
| _help: try making it public: `pub `
At first sight, that function is already pub
! The warning should say that I need to export it from the crate via pub use
.