Skip to content

Commit af7ac9f

Browse files
committed
rename crate, bump to bitcoin 0.27
1 parent 54a427f commit af7ac9f

File tree

9 files changed

+30
-24
lines changed

9 files changed

+30
-24
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
** This is a fork of https://github.com/rust-bitcoin/rust-bitcoincore-rpc with bitcoin 0.27 **
2+
13
[![Status](https://travis-ci.org/rust-bitcoin/rust-bitcoincore-rpc.png?branch=master)](https://travis-ci.org/rust-bitcoin/rust-bitcoincore-rpc)
24

35
# Rust RPC client for Bitcoin Core JSON-RPC

client/Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
[package]
2-
name = "bitcoincore-rpc"
3-
version = "0.13.0"
2+
name = "core-rpc"
3+
version = "0.14.0"
44
authors = [
55
"Steven Roose <steven@stevenroose.org>",
66
"Jean Pierre Dudey <jeandudey@hotmail.com>",
77
"Dawid Ciężarkiewicz <dpc@dpc.pw>",
8+
"Riccardo Casatta <riccardo@casatta.it>",
89
]
910
license = "CC0-1.0"
10-
homepage = "https://github.com/rust-bitcoin/rust-bitcoincore-rpc/"
11-
repository = "https://github.com/rust-bitcoin/rust-bitcoincore-rpc/"
11+
homepage = "https://github.com/RCasatta/rust-bitcoincore-rpc/"
12+
repository = "https://github.com/RCasatta/rust-bitcoincore-rpc/"
1213
description = "RPC client library for the Bitcoin Core JSON-RPC API."
1314
keywords = ["crypto", "bitcoin", "bitcoin-core", "rpc"]
1415
readme = "README.md"
1516

1617
[lib]
17-
name = "bitcoincore_rpc"
18+
name = "core_rpc"
1819
path = "src/lib.rs"
1920

2021
[dependencies]
21-
bitcoincore-rpc-json = { version = "0.13.0", path = "../json" }
22+
core-rpc-json = { version = "0.14.0", path = "../json" }
2223

2324
log = "0.4.5"
2425
jsonrpc = "0.12.0"

client/examples/retry_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
99
//
1010

11-
extern crate bitcoincore_rpc;
11+
extern crate core_rpc as bitcoincore_rpc;
1212
extern crate jsonrpc;
1313
extern crate serde;
1414
extern crate serde_json;

client/examples/test_against_node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! A very simple example used as a self-test of this library against a Bitcoin
1212
//! Core node.
13-
extern crate bitcoincore_rpc;
13+
extern crate core_rpc as bitcoincore_rpc;
1414

1515
use bitcoincore_rpc::{bitcoin, Auth, Client, Error, RpcApi};
1616

client/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! This is a client library for the Bitcoin Core JSON-RPC API.
1414
//!
1515
16-
#![crate_name = "bitcoincore_rpc"]
16+
#![crate_name = "core_rpc"]
1717
#![crate_type = "rlib"]
1818

1919
#[macro_use]
@@ -25,8 +25,8 @@ extern crate serde_json;
2525

2626
pub extern crate jsonrpc;
2727

28-
pub extern crate bitcoincore_rpc_json;
29-
pub use bitcoincore_rpc_json as json;
28+
pub extern crate core_rpc_json;
29+
pub use core_rpc_json as json;
3030
pub use json::bitcoin;
3131

3232
mod client;

integration_test/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
authors = ["Steven Roose <steven@stevenroose.org>"]
55

66
[dependencies]
7-
bitcoincore-rpc = { path = "../client" }
8-
bitcoin = { version = "0.26", features = [ "use-serde", "rand" ] }
7+
core-rpc = { path = "../client" }
8+
bitcoin = { version = "0.27", features = [ "use-serde", "rand" ] }
99
lazy_static = "1.4.0"
1010
log = "0.4"

integration_test/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
#![deny(unused)]
1212

1313
extern crate bitcoin;
14-
extern crate bitcoincore_rpc;
14+
extern crate core_rpc as bitcoincore_rpc;
1515
#[macro_use]
1616
extern crate lazy_static;
1717
extern crate log;
1818

19+
use bitcoincore_rpc::core_rpc_json as bitcoincore_rpc_json;
20+
1921
use std::collections::HashMap;
2022

2123
use bitcoincore_rpc::json;
@@ -30,7 +32,7 @@ use bitcoin::{
3032
Address, Amount, Network, OutPoint, PrivateKey, Script, SigHashType, SignedAmount, Transaction,
3133
TxIn, TxOut, Txid,
3234
};
33-
use bitcoincore_rpc::bitcoincore_rpc_json::{
35+
use bitcoincore_rpc_json::{
3436
GetBlockTemplateModes, GetBlockTemplateRules, ScanTxOutRequest,
3537
};
3638

json/Cargo.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
[package]
2-
name = "bitcoincore-rpc-json"
3-
version = "0.13.0"
2+
name = "core-rpc-json"
3+
version = "0.14.0"
44
authors = [
55
"Steven Roose <steven@stevenroose.org>",
66
"Jean Pierre Dudey <jeandudey@hotmail.com>",
7-
"Dawid Ciężarkiewicz <dpc@dpc.pw>"
7+
"Dawid Ciężarkiewicz <dpc@dpc.pw>",
8+
"Riccardo Casatta <riccardo@casatta.it>",
89
]
910
license = "CC0-1.0"
10-
homepage = "https://github.com/rust-bitcoin/rust-bitcoincore-rpc/"
11-
repository = "https://github.com/rust-bitcoin/rust-bitcoincore-rpc/"
11+
homepage = "https://github.com/RCasatta/rust-bitcoincore-rpc/"
12+
repository = "https://github.com/RCasatta/rust-bitcoincore-rpc/"
1213
description = "JSON-enabled type structs for bitcoincore-rpc crate."
1314
keywords = [ "crypto", "bitcoin", "bitcoin-core", "rpc" ]
1415
readme = "README.md"
1516

1617
[lib]
17-
name = "bitcoincore_rpc_json"
18+
name = "core_rpc_json"
1819
path = "src/lib.rs"
1920

2021
[dependencies]
2122
serde = { version = "1", features = [ "derive" ] }
2223
serde_json = "1"
2324

24-
bitcoin = { version = "0.26", features = [ "use-serde" ] }
25+
bitcoin = { version = "0.27", features = [ "use-serde" ] }

json/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! This is a client library for the Bitcoin Core JSON-RPC API.
1414
//!
1515
16-
#![crate_name = "bitcoincore_rpc_json"]
16+
#![crate_name = "core_rpc_json"]
1717
#![crate_type = "rlib"]
1818

1919
pub extern crate bitcoin;
@@ -835,7 +835,7 @@ impl<'a> serde::Serialize for ImportMultiRequestScriptPubkey<'a> {
835835
#[derive(Serialize)]
836836
struct Tmp<'a> {
837837
pub address: &'a Address,
838-
};
838+
}
839839
serde::Serialize::serialize(
840840
&Tmp {
841841
address: addr,

0 commit comments

Comments
 (0)