Skip to content

Commit

Permalink
Add pub crate
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Sep 11, 2024
1 parent 4ddbc00 commit 18ee506
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod client {
pub mod client {
// Define a client module with a function
pub fn client_function() {
_l402_client_function();
Expand Down
2 changes: 1 addition & 1 deletion example/client.rs
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion example/nostr_invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion example/tokenstore.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod tokenstore {
pub mod tokenstore {
use std::collections::HashMap;

// Tokenstore function placeholder
Expand Down
2 changes: 1 addition & 1 deletion example/wallet.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
2 changes: 1 addition & 1 deletion tokenstore/tokenstore.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod tokenstore {
pub mod tokenstore {
use std::collections::HashMap;
// Define a struct for Store
pub(crate) fn tokenstore_function() {
Expand Down
2 changes: 1 addition & 1 deletion wallet/wallet.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down

0 comments on commit 18ee506

Please sign in to comment.