Skip to content

Commit

Permalink
rpc/core/src/wasm -> rpc/core/src/bindings/wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
smartgoo committed Nov 16, 2024
1 parent c943255 commit 070d0ce
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions rpc/core/src/bindings/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#[cfg(feature = "py-sdk")]
pub mod python;

#[cfg(feature = "wasm32-sdk")]
pub mod wasm;
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions rpc/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#![recursion_limit = "256"]

pub mod api;
#[cfg(feature = "py-sdk")]
#[cfg(any(feature = "wasm32-sdk", feature = "py-sdk"))]
pub mod bindings;
pub mod convert;
pub mod error;
pub mod model;
pub mod notify;
pub mod wasm;
// pub mod wasm;

pub mod prelude {
pub use super::api::notifications::*;
Expand Down
2 changes: 1 addition & 1 deletion rpc/wrpc/bindings/wasm/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use kaspa_notify::events::EventType;
use kaspa_notify::listener;
use kaspa_notify::notification::Notification as NotificationT;
use kaspa_rpc_core::api::ctl;
pub use kaspa_rpc_core::wasm::message::*;
pub use kaspa_rpc_core::bindings::wasm::message::*;
pub use kaspa_rpc_macros::{
build_wrpc_wasm_bindgen_interface, build_wrpc_wasm_bindgen_subscriptions, declare_typescript_wasm_interface as declare,
};
Expand Down
8 changes: 4 additions & 4 deletions wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ cfg_if::cfg_if! {
pub use kaspa_rpc_core::model::message::*;
}
pub use kaspa_rpc_core::api::rpc::RpcApi;
pub use kaspa_rpc_core::wasm::message::*;
pub use kaspa_rpc_core::bindings::wasm::message::*;

pub use kaspa_wrpc_wasm::client::*;
pub use kaspa_wrpc_wasm::resolver::*;
Expand All @@ -183,7 +183,7 @@ cfg_if::cfg_if! {
pub use kaspa_rpc_core::model::message::*;
}
pub use kaspa_rpc_core::api::rpc::RpcApi;
pub use kaspa_rpc_core::wasm::message::*;
pub use kaspa_rpc_core::bindings::wasm::message::*;

pub use kaspa_wrpc_wasm::client::*;
pub use kaspa_wrpc_wasm::resolver::*;
Expand All @@ -197,8 +197,8 @@ cfg_if::cfg_if! {
} else if #[cfg(feature = "wasm32-rpc")] {

pub use kaspa_rpc_core::api::rpc::RpcApi;
pub use kaspa_rpc_core::wasm::message::*;
pub use kaspa_rpc_core::wasm::message::IPingRequest;
pub use kaspa_rpc_core::bindings::wasm::message::*;
pub use kaspa_rpc_core::bindings::wasm::message::IPingRequest;
pub use kaspa_wrpc_wasm::client::*;
pub use kaspa_wrpc_wasm::resolver::*;
pub use kaspa_wrpc_wasm::notify::*;
Expand Down

0 comments on commit 070d0ce

Please sign in to comment.