mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 23:27:22 +00:00
Get rid of the "use_modules" workaround
This doesn't seem to be needed anymore with newer rust version. As long as one symbol from the crate is used, all exported function from the crate are available. The reason why some symbols in some module were gone was a bug in rust that has been fixed, it seems
This commit is contained in:
parent
2023ebc9a9
commit
9afadf50be
6 changed files with 4 additions and 78 deletions
|
@ -10,14 +10,10 @@ use std::rc::Rc;
|
|||
#[cfg(feature = "experimental")]
|
||||
pub mod platform;
|
||||
|
||||
#[doc(hidden)]
|
||||
#[cold]
|
||||
pub fn use_modules() -> usize {
|
||||
#[cfg(feature = "slint-interpreter")]
|
||||
slint_interpreter::use_modules();
|
||||
i_slint_backend_selector::use_modules();
|
||||
i_slint_core::use_modules()
|
||||
}
|
||||
/// One need to make sure something from the crate is exported,
|
||||
/// otherwise its symbols are not going to be in the final binary
|
||||
#[cfg(feature = "slint-interpreter")]
|
||||
pub use slint_interpreter;
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn slint_windowrc_init(out: *mut WindowAdapterRcOpaque) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue