Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Danconnolly committed Feb 8, 2025
1 parent 4db1a3b commit a0fe627
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 20 deletions.
16 changes: 14 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ name = "bitcoinsv_rpc"
path = "src/lib.rs"

[dependencies]
tokio = { version = ">=1.23.1", features = ["full"] }
async-trait = "0.1.75"
bitcoinsv = "0.2.7"
bitcoinsv-rpc-json = { version = "1.0.2" }
log = "0.4.5"
hex = "0.4.3"
jsonrpc = { version = "0.16.0", features = ["minreq_http"]}
log = "0.4.5"
serde = "1"
serde_json = "1"
hex = "0.4.3"
bitcoinsv = "0.2.7"
async-trait = "0.1.75"
tokio = { version = ">=1.23.1", features = ["full"] }
url = "2.5.0"

[dev-dependencies]
Expand Down
25 changes: 13 additions & 12 deletions client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
//! # Rust Client for Bitcoin SV API
//!
//! This is a client library for the Bitcoin SV JSON-RPC API.
//!
//! Example usage:
//! ```norun
//! let rpc_client = Client::new("http://127.0.0.1:8332", Auth::UserPass("username".to_string(), "password".to_string())).unwrap();
//! let best_block_hash = rpc_client.get_best_block_hash().unwrap();
//! println!("best block hash: {}", best_block_hash);
//! ```
//!
//! For documentation on which methods are available, see the [RpcApi] trait.

#![crate_name = "bitcoinsv_rpc"]
#![crate_type = "rlib"]

/// # Rust Client for Bitcoin SV API
///
/// This is a client library for the Bitcoin SV JSON-RPC API.
///
/// Example usage:
/// ```norun
/// let rpc_client = Client::new("http://127.0.0.1:8332", Auth::UserPass("username".to_string(), "password".to_string())).unwrap();
/// let best_block_hash = rpc_client.get_best_block_hash().unwrap();
/// println!("best block hash: {}", best_block_hash);
/// ```
///
/// For documentation on which methods are available, see the [RpcApi] trait.
#[macro_use]
extern crate log;
#[macro_use] // `macro_use` is needed for v1.24.0 compilation.
Expand Down
2 changes: 1 addition & 1 deletion json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ name = "bitcoinsv_rpc_json"
path = "src/lib.rs"

[dependencies]
bitcoinsv = "0.2.7"
hex = "0.4.3"
serde = { version = "1", features = [ "derive" ] }
serde_json = "1"
bitcoinsv = "0.2.7"

[dev-dependencies]
approx = "0.5"

0 comments on commit a0fe627

Please sign in to comment.