From 48533953dfe2fdbc038b424b5e2a9181ea06703e Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Sat, 16 Jul 2022 03:29:13 +0800 Subject: [PATCH] Forgot to add #[no_mangle] --- README.md | 2 +- crates/plugins/src/shim.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5dacf490..092d2308 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ After you've installed [the Rust compiler][rustup] and cloned this repo, you will want to compile a model. ```console -$ cargo build -p cuboid --release +$ cargo build --release --package cuboid $ ls target/release/*.so target/release/libcuboid.so ``` diff --git a/crates/plugins/src/shim.rs b/crates/plugins/src/shim.rs index 76ecda25..dc42bb36 100644 --- a/crates/plugins/src/shim.rs +++ b/crates/plugins/src/shim.rs @@ -84,6 +84,8 @@ impl crate::Host for Host { #[macro_export] macro_rules! register_plugin { ($init:expr) => { + #[no_mangle] + #[doc(hidden)] pub fn fornjot_plugin_init(host: &mut dyn $crate::Host) { let init: fn(&mut dyn $crate::Host) = $init; init(host);