Skip to main content

activation_db_path_from_module

Macro activation_db_path_from_module 

Source
macro_rules! activation_db_path_from_module {
    ($db_filename:expr) => { ... };
}
Expand description

Generate a namespaced database path from the calling module’s path

This macro automatically extracts the activation name from the module structure and generates the appropriate database path.

§Example

// Called from src/activations/orcha/storage.rs
let path = activation_db_path_from_module!("orcha.db");
// Returns: ~/.plexus/substrate/activations/orcha/orcha.db