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);