From fafd18327797cc9ef57411b68657356e4911efed Mon Sep 17 00:00:00 2001 From: Quinn Wilton Date: Fri, 6 Oct 2023 15:06:45 -0700 Subject: [PATCH] fix: re-export linkme to avoid requiring callers install it manually --- src/lib.rs | 3 +++ src/plugins.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fe84f447..bb728e91 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,6 +20,9 @@ pub mod store; pub mod time; pub mod ucan; +#[doc(hidden)] +pub use linkme; + /// A decentralized identifier. pub type Did = String; diff --git a/src/plugins.rs b/src/plugins.rs index 29227b6f..76944d57 100644 --- a/src/plugins.rs +++ b/src/plugins.rs @@ -220,7 +220,7 @@ pub fn register_plugin( #[macro_export] macro_rules! register_plugin { ($name:ident, $plugin:expr) => { - #[linkme::distributed_slice($crate::plugins::STATIC_PLUGINS)] + #[$crate::linkme::distributed_slice($crate::plugins::STATIC_PLUGINS)] static $name: &'static dyn Plugin< Resource = Box, Ability = Box,