Skip to content

Commit adc06d5

Browse files
committed
Rename the repo and crates
The current names are long and annoying, lets rename them. This is based on top of the 0.3.0 releases so that there is some continuity. The repository changes from `rust-bitcoind-json-rpc` to `corepc`. Crate name changes: - `bitcoind-json-rpc-client` becomes `corepc-client` - `bitcoind-json-rpc-types` becomes `corepc-types` - `bitcoind-json-rpc-regtest` becomes `corepc-node` Directory name changes: - `json` becomes `types` (to match the crate name) - `regtest` becomes `bitcoind` (to match the original project name) Next, bump version numbers In preparation for release bump the version number, add changelog entries, and update the lock-files. Done for all three released crates.
1 parent 383ec94 commit adc06d5

File tree

110 files changed

+162
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+162
-144
lines changed

CHANGELOG.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

Cargo-minimal.lock

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -85,39 +85,39 @@ dependencies = [
8585
]
8686

8787
[[package]]
88-
name = "bitcoind-json-rpc-client"
89-
version = "0.3.0"
88+
name = "byteorder"
89+
version = "1.5.0"
90+
source = "registry+https://github.com/rust-lang/crates.io-index"
91+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
92+
93+
[[package]]
94+
name = "cc"
95+
version = "1.0.28"
96+
source = "registry+https://github.com/rust-lang/crates.io-index"
97+
checksum = "bb4a8b715cb4597106ea87c7c84b2f1d452c7492033765df7f32651e66fcf749"
98+
99+
[[package]]
100+
name = "corepc-client"
101+
version = "0.4.0"
90102
dependencies = [
91103
"bitcoin",
92-
"bitcoind-json-rpc-types",
104+
"corepc-types",
93105
"jsonrpc",
94106
"log",
95107
"serde",
96108
"serde_json",
97109
]
98110

99111
[[package]]
100-
name = "bitcoind-json-rpc-types"
101-
version = "0.3.0"
112+
name = "corepc-types"
113+
version = "0.4.0"
102114
dependencies = [
103115
"bitcoin",
104116
"bitcoin-internals",
105117
"serde",
106118
"serde_json",
107119
]
108120

109-
[[package]]
110-
name = "byteorder"
111-
version = "1.5.0"
112-
source = "registry+https://github.com/rust-lang/crates.io-index"
113-
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
114-
115-
[[package]]
116-
name = "cc"
117-
version = "1.0.28"
118-
source = "registry+https://github.com/rust-lang/crates.io-index"
119-
checksum = "bb4a8b715cb4597106ea87c7c84b2f1d452c7492033765df7f32651e66fcf749"
120-
121121
[[package]]
122122
name = "hex-conservative"
123123
version = "0.2.1"
@@ -297,3 +297,7 @@ name = "winapi-x86_64-pc-windows-gnu"
297297
version = "0.4.0"
298298
source = "registry+https://github.com/rust-lang/crates.io-index"
299299
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
300+
301+
[[patch.unused]]
302+
name = "corepc-node"
303+
version = "0.4.0"

Cargo-recent.lock

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -85,39 +85,39 @@ dependencies = [
8585
]
8686

8787
[[package]]
88-
name = "bitcoind-json-rpc-client"
89-
version = "0.3.0"
88+
name = "byteorder"
89+
version = "1.5.0"
90+
source = "registry+https://github.com/rust-lang/crates.io-index"
91+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
92+
93+
[[package]]
94+
name = "cc"
95+
version = "1.0.28"
96+
source = "registry+https://github.com/rust-lang/crates.io-index"
97+
checksum = "bb4a8b715cb4597106ea87c7c84b2f1d452c7492033765df7f32651e66fcf749"
98+
99+
[[package]]
100+
name = "corepc-client"
101+
version = "0.4.0"
90102
dependencies = [
91103
"bitcoin",
92-
"bitcoind-json-rpc-types",
104+
"corepc-types",
93105
"jsonrpc",
94106
"log",
95107
"serde",
96108
"serde_json",
97109
]
98110

99111
[[package]]
100-
name = "bitcoind-json-rpc-types"
101-
version = "0.3.0"
112+
name = "corepc-types"
113+
version = "0.4.0"
102114
dependencies = [
103115
"bitcoin",
104116
"bitcoin-internals",
105117
"serde",
106118
"serde_json",
107119
]
108120

109-
[[package]]
110-
name = "byteorder"
111-
version = "1.5.0"
112-
source = "registry+https://github.com/rust-lang/crates.io-index"
113-
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
114-
115-
[[package]]
116-
name = "cc"
117-
version = "1.0.28"
118-
source = "registry+https://github.com/rust-lang/crates.io-index"
119-
checksum = "bb4a8b715cb4597106ea87c7c84b2f1d452c7492033765df7f32651e66fcf749"
120-
121121
[[package]]
122122
name = "hex-conservative"
123123
version = "0.2.1"
@@ -297,3 +297,7 @@ name = "winapi-x86_64-pc-windows-gnu"
297297
version = "0.4.0"
298298
source = "registry+https://github.com/rust-lang/crates.io-index"
299299
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
300+
301+
[[patch.unused]]
302+
name = "corepc-node"
303+
version = "0.4.0"

Cargo.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
[workspace]
2-
members = ["client", "json", "jsonrpc"]
3-
exclude = ["integration_test", "regtest"]
2+
members = ["client", "types", "jsonrpc"]
3+
exclude = ["integration_test", "bitcoind"]
44
resolver = "2"
55

6-
[patch.crates-io.bitcoind-json-rpc-client]
6+
[patch.crates-io.corepc-client]
77
path = "client"
88

9-
[patch.crates-io.bitcoind-json-rpc-types]
10-
path = "json"
9+
[patch.crates-io.corepc-types]
10+
path = "types"
11+
12+
[patch.crates-io.corepc-node]
13+
path = "bitcoind"
1114

1215
[patch.crates-io.jsonrpc]
1316
path = "jsonrpc"

README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1-
# `bitcoind` JSON-RPC support
1+
# Bitcoin Core JSON-RPC support
22

3-
There are two primary purposes of this repository.
3+
There are two primary purposes of this repository:
44

5-
1. Provide the [`bitcoind-json-rpc-types`](https://crates.io/crates/bitcoind-json-rpc-types) crate
6-
for use in production software.
7-
2. Provide tools to the community for integration testing code written in Rust that interacts with
8-
the Bitcoin network. Primarily consumers of the [`rust-bitcoin`](https://crates.io/crates/bitcoin)
9-
library. And enable doing so against multiple versions of Bitcoin Core.
5+
1. Provide the [`corepc-types`](https://crates.io/crates/corepc-types) crate for use in production
6+
software.
7+
8+
2. Provide tools for integration testing Rust code that interacts with the Bitcoin network.
9+
Primarily consumers of the [`rust-bitcoin`](https://crates.io/crates/bitcoin) library. And enable
10+
doing so against multiple versions of Bitcoin Core.
1011

1112
If you require a JSON RPC client in production software it is expected you write your own and only
12-
use the `bitcoind-json-rpc-types` crate in your dependency graph. Feel free to copy/steal/plagiarise
13-
or otherwise enjoy yourself with anything in this repository - no attribution required.
13+
use the `corepc-types` crate in your dependency graph. Feel free to copy/steal/plagiarise or
14+
otherwise enjoy yourself with anything in this repository - no attribution required.
1415

15-
**Please do not use `client` in production and raise bugs, issues, or feature requests.**
16+
**Please do not use `corepc` in production and raise bugs, issues, or feature requests.**
1617

17-
## Crate listing
18+
## Crate/directory listing
1819

19-
- [`json`](https://crates.io/crates/bitcoind-json-rpc-types): Rust types returned by the JSON-RPC API of Bitcoin Core (`bitcoind-json-rpc-types`).
20-
- [`regtest`](https://crates.io/crates/bitcoind-json-rpc-regtest): Runs `bitcoind` regtest nodes.
21-
- [`client`](https://crates.io/crates/bitcoind-json-rpc-client): A blocking JSON-RPC client used to test `bitcoind-json-rpc-types`.
22-
- `integration_test`: Integration tests that use `client` and `regtest` to test `json`.
20+
- `types/`: [`corepc-types`](https://crates.io/crates/corepc-types): Rust types returned by the JSON-RPC API of Bitcoin Core.
21+
- `bitcoind/`: [`corepc-node`](https://crates.io/crates/corepc-node): Runs `bitcoind` regtest nodes.
22+
- `client/`: [`corepc-client`](https://crates.io/crates/corepc-client): A blocking JSON-RPC client used to test `corepc-types`.
23+
- `integration_test/`: Integration tests that use `corepc` and `corepc-node` to test `corepc-types`.
24+
25+
26+
## `corepc-types` Design
2327

2428
## Original code
2529

regtest/CHANGELOG.md renamed to bitcoind/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.4.0 - 2024-11-14
2+
3+
- Add support for Bitcoin Core v28
4+
- Re-name the repository from `rust-bitcoind-josn-rpc` to `corepc`.
5+
- Re-name the crate from `bitcoind-josn-rpc-regtest` to `corepc-node`.
6+
17
# 0.3.0 - 2024-06-21
28

39
- Call `into_model` when creating/loading wallet.

regtest/Cargo.toml renamed to bitcoind/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
2-
name = "bitcoind-json-rpc-regtest"
3-
version = "0.3.0"
2+
name = "corepc-node"
3+
version = "0.4.0"
44
authors = ["Riccardo Casatta <[email protected]>", "Tobin C. Harding <[email protected]>"]
55
license = "MIT"
6-
repository = "https://github.com/rust-bitcoin/rust-bitcoind-json-rpc"
6+
repository = "https://github.com/tcharding/corepc/corepc-node"
77
description = "Utility to run a regtest bitcoind process, useful in integration testing environments"
88
categories = ["cryptography::cryptocurrencies", "development-tools::testing"]
99
keywords = ["bitcoin", "bitcoind", "json-rpc"]
@@ -13,7 +13,7 @@ rust-version = "1.63.0"
1313
exclude = ["tests", "contrib"]
1414

1515
[dependencies]
16-
bitcoind-json-rpc-client = { version = "0.3", features = ["client-sync"] }
16+
corepc-client = { version = "0.4", features = ["client-sync"] }
1717
log = "0.4"
1818
which = "4.2.5"
1919
anyhow = "1.0.66"
@@ -73,8 +73,8 @@ anyhow = "1.0.66"
7373
features = ["download", "doc", "26_2"]
7474
rustdoc-args = ["--cfg", "docsrs"]
7575

76-
[patch.crates-io.bitcoind-json-rpc-client]
76+
[patch.crates-io.corepc-client]
7777
path = "../client"
7878

79-
[patch.crates-io.bitcoind-json-rpc-types]
80-
path = "../json"
79+
[patch.crates-io.corepc-types]
80+
path = "../types"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)