diff --git a/client/client.rs b/client/client.rs index bdfbe5d..b1a2b15 100644 --- a/client/client.rs +++ b/client/client.rs @@ -1,4 +1,4 @@ -mod client { +pub mod client { // Define a client module with a function pub fn client_function() { _l402_client_function(); diff --git a/example/client.rs b/example/client.rs index 0836cf0..47162a4 100644 --- a/example/client.rs +++ b/example/client.rs @@ -1,4 +1,4 @@ -mod client { +pub mod client { // Client function, calling all other functions in this module pub fn client_function() { _l402_client_function(); diff --git a/example/nostr_invoice.rs b/example/nostr_invoice.rs index b8a350c..4146dfb 100644 --- a/example/nostr_invoice.rs +++ b/example/nostr_invoice.rs @@ -10,7 +10,7 @@ use std::env; use std::error::Error; use tracing::{info, warn}; -mod lnd_grpc { +pub mod lnd_grpc { tonic::include_proto!("lnrpc"); // Proto path for LND gRPC } diff --git a/example/tokenstore.rs b/example/tokenstore.rs index 9023137..06826a5 100644 --- a/example/tokenstore.rs +++ b/example/tokenstore.rs @@ -1,4 +1,4 @@ -mod tokenstore { +pub mod tokenstore { use std::collections::HashMap; // Tokenstore function placeholder diff --git a/example/wallet.rs b/example/wallet.rs index ac1c2c4..6b16a13 100644 --- a/example/wallet.rs +++ b/example/wallet.rs @@ -1,4 +1,4 @@ -mod wallet { +pub mod wallet { use lnd_grpc::lnrpc::{wallet_unlocker_client::WalletUnlockerClient, UnlockWalletRequest}; use alby_greenlight::alby_greenlight_client::AlbyGreenlightClient; use sha2::{Sha256, Digest}; diff --git a/tokenstore/tokenstore.rs b/tokenstore/tokenstore.rs index 0f37621..67d3d00 100644 --- a/tokenstore/tokenstore.rs +++ b/tokenstore/tokenstore.rs @@ -1,4 +1,4 @@ -mod tokenstore { +pub mod tokenstore { use std::collections::HashMap; // Define a struct for Store pub(crate) fn tokenstore_function() { diff --git a/wallet/wallet.rs b/wallet/wallet.rs index 20717a6..28b3056 100644 --- a/wallet/wallet.rs +++ b/wallet/wallet.rs @@ -1,4 +1,4 @@ -mod wallet { +pub mod wallet { use lnd_grpc::lnrpc::{wallet_unlocker_client::WalletUnlockerClient, UnlockWalletRequest, Preimage}; use std::error::Error; use sha2::{Sha256, Digest};