diff --git a/dylo-cli/src/init_template.rs b/dylo-cli/src/init_template.rs index 22e3f47..f1fe3e0 100644 --- a/dylo-cli/src/init_template.rs +++ b/dylo-cli/src/init_template.rs @@ -4,7 +4,7 @@ use dylo_runtime as _; /// /// See #[doc(hidden)] -#[export_name = "https://github.com/bearcove/dylo"] +#[export_name = "github.com_bearcove_dylo"] pub extern "Rust" fn awaken() -> &'static (dyn crate::Mod) { let m: crate::ModImpl = std::default::Default::default(); let m: std::boxed::Box = std::boxed::Box::new(m); diff --git a/dylo-runtime/src/details.rs b/dylo-runtime/src/details.rs index 1bea895..f4f4d73 100644 --- a/dylo-runtime/src/details.rs +++ b/dylo-runtime/src/details.rs @@ -325,7 +325,7 @@ pub fn load_mod(mod_name: &'static str) -> AnyModRef { // note: we never dlclose the handle, on purpose. - let symbol_name = CString::new("https://github.com/bearcove/dylo").unwrap(); + let symbol_name = CString::new("github.com_bearcove_dylo").unwrap(); let init_sym = unsafe { dlsym(handle, symbol_name.as_ptr()) }; if init_sym.is_null() { let err = unsafe { std::ffi::CStr::from_ptr(dlerror()) }