Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(registry): gate shared imports behind their feature flags

Steven Enamakel6e77b08e4f17
diff --git a/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs b/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
index 81fdb97804..b39af7a384 100644
--- a/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
+++ b/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
@@ -1,5 +1,6 @@
//! Registry records for the `tinydocs` and `tinywallet` modules.
+#[cfg(any(feature = "documents", feature = "web3"))]
use crate::modules::types::{LoadPolicy, ModuleRecord, PlatformAsset, SourceSpec};
#[cfg(feature = "documents")]
diff --git a/crates/openhuman-core/src/modules/registry/records_voice.rs b/crates/openhuman-core/src/modules/registry/records_voice.rs
index 485123651f..b268267552 100644
--- a/crates/openhuman-core/src/modules/registry/records_voice.rs
+++ b/crates/openhuman-core/src/modules/registry/records_voice.rs
@@ -1,5 +1,6 @@
//! Registry record for the `tinyvoice` module.
+#[cfg(feature = "voice")]
use crate::modules::types::{LoadPolicy, ModuleRecord, PlatformAsset, SourceSpec};
#[cfg(feature = "voice")]