Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
strategy:
matrix:
rust:
- 1.81.0 # current
- 1.63.0 # MSRV
- 1.89.0 # current
- 1.75.0 # MSRV
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -36,16 +36,10 @@ jobs:
- name: Update Cargo.lock
run: cargo update
- name: Pin dependencies for MSRV
if: matrix.rust == '1.63.0'
if: matrix.rust == '1.75.0'
run: |
cargo update -p home --precise 0.5.5
cargo update -p tokio --precise 1.38.1
cargo update -p ring:0.17.14 --precise 0.17.8
cargo update -p cc --precise 1.0.105
cargo update -p flate2 --precise 1.0.35
cargo update -p once_cell --precise 1.20.3
cargo update -p bzip2-sys --precise 0.1.11+1.0.8
cargo update -p minreq --precise 2.12.0
cargo update -p home --precise "0.5.9"
cargo update -p minreq --precise "2.13.2"
- name: Build
run: cargo build
- name: Clippy
Expand Down
13 changes: 8 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bdk-reserves"
version = "0.30.2"
version = "2.1.0"
authors = ["Richard Ulrich <richard.ulrich@aminagroup.com>"]
edition = "2018"
description = "Proof of reserves for bitcoin dev kit"
Expand All @@ -10,12 +10,15 @@ license = "MIT OR Apache-2.0"
repository = "https://github.com/bitcoindevkit/bdk-reserves"

[dependencies]
bdk = { version = "0.30.2", default-features = false, features = ["std"] }
bdk_wallet = { version = "2.1.0", default-features = false, features = ["std"] }
bitcoinconsensus = "0.19.0-3"
log = "^0.4"

# same version as in rust-bitcoin - I couldn't find a re-export
units = { package = "bitcoin-units", version = "0.1.0", default-features = false, features = ["alloc"] }

[dev-dependencies]
rstest = "^0.11"
bdk-testutils = "^0.4"
bdk = { version = "0.30.1", default-features = true }
electrsd = { version = "0.24", features = ["bitcoind_22_0", "electrs_0_9_1"] }
bdk_wallet = { version = "2.1.0", default-features = true, features = ["test-utils"] }
bdk_electrum = "0.23.1"
electrsd = { version = "0.34", features = ["corepc-node_28_0", "electrs_0_10_6"] }
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.81-bookworm
FROM rust:1.89-trixie
ARG http_proxy
ENV http_proxy=$http_proxy
ENV https_proxy=$http_proxy
Expand Down Expand Up @@ -35,7 +35,4 @@ WORKDIR /home/satoshi

RUN rustup component add clippy-preview \
&& rustup component add rustfmt
RUN rustup target add wasm32-unknown-unknown
RUN rustup target add wasm32-wasi
RUN rustup target add wasm32-unknown-emscripten

5 changes: 2 additions & 3 deletions Dockerfile_63 → Dockerfile_75
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.63-buster
FROM rust:1.75-bookworm
ARG http_proxy
ENV http_proxy=$http_proxy
ENV https_proxy=$http_proxy
Expand All @@ -16,6 +16,7 @@ RUN apt-get update \
ca-certificates \
clang \
curl \
emscripten \
hunspell \
libclang-dev \
libssl-dev \
Expand All @@ -34,6 +35,4 @@ WORKDIR /home/satoshi

RUN rustup component add clippy-preview \
&& rustup component add rustfmt
RUN rustup target add wasm32-unknown-unknown
RUN rustup target add wasm32-wasi

28 changes: 11 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
TAG := bdk-reserves
TAG_63 := bdk-reserves-63
http_proxy ?= http://172.17.0.1:3128
TAG_75 := bdk-reserves-75
#http_proxy ?= http://172.17.0.1:3128
DOCKER_RUN := docker run --interactive --rm \
-v ${PWD}:/home/satoshi \

build: builder
$(DOCKER_RUN) --tty ${TAG} cargo build

test: test_current test_63
test: test_current test_75

test_current: builder
rm -f Cargo.lock
$(DOCKER_RUN) ${TAG} cargo test

test_63: builder_63
test_75: builder_75
rm -f Cargo.lock
$(DOCKER_RUN) ${TAG_63} cargo test || true
$(DOCKER_RUN) ${TAG_63} cargo update -p home --precise 0.5.5 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p tokio --precise 1.38.1 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p ring:0.17.14 --precise 0.17.8 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p cc --precise 1.0.105 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p flate2 --precise 1.0.35 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p once_cell --precise 1.20.3 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p bzip2-sys --precise 0.1.11+1.0.8 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p minreq --precise 2.12.0 || true
$(DOCKER_RUN) ${TAG_63} cargo test
$(DOCKER_RUN) ${TAG_75} cargo test || true
$(DOCKER_RUN) ${TAG_75} cargo update -p home --precise "0.5.9" || true
$(DOCKER_RUN) ${TAG_75} cargo update -p minreq --precise "2.13.2" || true
$(DOCKER_RUN) ${TAG_75} cargo test

run: builder
$(DOCKER_RUN) --tty ${TAG} cargo run
Expand All @@ -47,10 +41,10 @@ builder:
--build-arg UID="$(shell id -u)" \
.

builder_63:
docker build --tag ${TAG_63}\
builder_75:
docker build --tag ${TAG_75}\
--build-arg http_proxy="${http_proxy}" \
--build-arg UID="$(shell id -u)" \
-f Dockerfile_63 \
-f Dockerfile_75 \
.

7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ at your option.

## Minimum Supported Rust Version (MSRV)

This library should always compile with Rust **1.63.0**.
This library should always compile with Rust **1.75.0**.

To build with the MSRV you will need to pin the below dependencies:

```shell
cargo update -p home:0.5.9 --precise 0.5.5
cargo update -p tokio:1.39.3 --precise 1.38.1
cargo update -p cc --precise 1.0.105
cargo update -p home --precise "0.5.9"
cargo update -p minreq --precise "2.13.2"
```

## Contribution
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
// You may not use this file except in accordance with one or both of these
// licenses.

pub extern crate bdk;
pub extern crate bdk_wallet;

pub mod reserves;
Loading