Skip to content

Commit 27da777

Browse files
authored
chore(deps): add bdk_floresta's dependencies (#15)
* chore(deps): add `floresta-chain` and `floresta-wire` @ v0.8.0 * chore: update `.gitignore` * chore(deps): add `bdk_wallet` @ v2.1.0 * chore(deps): add `tokio` @ v1.47.1 * chore(deps): add `tracing` @ v0.1.41 * chore(deps): add `tracing-subscriber` @ v0.3.20 * chore: add `rustfmt.toml` * chore: update `justfile` * chore(cargo): set MSRV to 1.74.1
1 parent 5f09c36 commit 27da777

6 files changed

Lines changed: 27 additions & 28 deletions

File tree

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
cache-on-failure: true
2929

3030
- name: Install cargo-audit
31-
run: cargo install cargo-audit --force --locked
31+
run: cargo install cargo-audit@0.20.0 --force --locked
3232

3333
- name: Check for audit warnings
3434
run: cargo audit -D warnings

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
# Cargo
12
target/
3+
Cargo.lock
4+
5+
# IDEs
6+
.vscode/
27

38
NOTES.md
49

Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
[package]
22
name = "bdk_floresta"
33
version = "0.1.0"
4-
edition = "2024"
4+
edition = "2021"
55
authors = ["Luis Schwab <luisschwab@protonmail.com>"]
66
description = "A Floresta-powered chain-source crate for BDK"
77
license = "MIT"
88
repository = "https://github.com/luisschwab/bdk-floresta"
99
readme = "README.md"
1010
keywords = ["bitcoin", "bdk", "floresta", "utreexo"]
11+
rust-version = "1.74.1"
1112

1213
[dependencies]
14+
bdk_wallet = "2.1.0"
15+
floresta-chain = { git = "https://github.com/vinteumorg/Floresta.git", rev = "f1b61ff04237cd529cb88808500d44aec1b04009", features = ["flat-chainstore"] } # v0.8.0
16+
floresta-wire = { git = "https://github.com/vinteumorg/Floresta.git", rev = "f1b61ff04237cd529cb88808500d44aec1b04009" } # v0.8.0
17+
tokio = { version = "1.47.1", features = ["full"] }
18+
tracing = "0.1.41"
19+
tracing-subscriber = "0.3.20"

justfile

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
alias b := build
22
alias c := check
3-
alias d := delete
4-
alias e := example
53
alias f := fmt
64

75
_default:
8-
@just --list
6+
@just --list --list-heading $'bdk_floresta\n'
97

10-
# Build bdk_floresta
8+
# Build `bdk_floresta`
119
build:
1210
cargo build
1311

@@ -20,29 +18,10 @@ check:
2018
echo "\n⚠️ Unsigned commit: bdk_floresta requires commits to be signed." || \
2119
true
2220

23-
# Delete files: bitcoin, signet, testnet4, target, lockfile
24-
delete item="data":
25-
just _delete-{{ item }}
26-
27-
_delete-bitcoin:
28-
rm -rf data/bitcoin
29-
30-
_delete-signet:
31-
rm -rf data/signet
32-
33-
_delete-testnet4:
34-
rm -rf data/testnet4
35-
36-
_delete-target:
37-
rm -rf target
21+
# Format code
22+
fmt:
23+
cargo +nightly fmt
3824

3925
_delete-lockfile:
4026
rm -f Cargo.lock
4127

42-
# Run an example crate
43-
example name="example":
44-
cargo run --example {{ name }} --release
45-
46-
# Format code
47-
fmt:
48-
cargo +nightly fmt

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[toolchain]
2+
channel = "1.74.1"
3+
components = ["rustfmt", "clippy"]
4+
profile = "default"

rustfmt.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
max_width = 140
2+
comment_width = 120
3+
format_code_in_doc_comments = true
4+
wrap_comments = true

0 commit comments

Comments
 (0)