Skip to content

Commit

Permalink
fix: re-export linkme to avoid requiring callers install it manually
Browse files Browse the repository at this point in the history
  • Loading branch information
QuinnWilton committed Oct 6, 2023
1 parent 3c088bd commit fafd183
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub fn register_plugin<R, A, C, E>(
#[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<dyn $crate::semantics::resource::Resource>,
Ability = Box<dyn $crate::semantics::ability::Ability>,
Expand Down

0 comments on commit fafd183

Please sign in to comment.