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
15 changes: 10 additions & 5 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
runs-on: ubuntu-latest
env:
BITCOIND_SKIP_DOWNLOAD: "1"
ELECTRSD_SKIP_DOWNLOAD: "1"
strategy:
fail-fast: false
matrix:
Expand All @@ -61,6 +62,7 @@ jobs:
runs-on: ubuntu-latest
env:
BITCOIND_SKIP_DOWNLOAD: "1"
ELECTRSD_SKIP_DOWNLOAD: "1"
strategy:
fail-fast: false
matrix:
Expand All @@ -78,6 +80,7 @@ jobs:
runs-on: ubuntu-latest
env:
BITCOIND_SKIP_DOWNLOAD: "1"
ELECTRSD_SKIP_DOWNLOAD: "1"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -184,7 +187,7 @@ jobs:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- run: cd electrsd && cargo test --features ${{ matrix.features }}
- run: cd electrsd && RUST_LOG=debug cargo test --features ${{ matrix.features }}


test-electrs-esplora:
Expand All @@ -194,20 +197,21 @@ jobs:
CARGO_TERM_COLOR: always
strategy:
matrix:
features: ["bitcoind_22_1,bitcoind_download,legacy,esplora_a33e97e1"]
features: ["bitcoind_22_1,bitcoind_download,esplora_a33e97e1"]

steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- run: cd electrsd && cargo test --features ${{ matrix.features }}
- run: cd electrsd && RUST_LOG=debug cargo test --no-default-features --features ${{ matrix.features }}

test-electrs-no-download:
name: Test Electrs no auto-download features
runs-on: ubuntu-24.04
env:
CARGO_TERM_COLOR: always
ELECTRS_EXEC: "/home/runner/.cargo-install/electrs/bin/electrs"
ELECTRSD_SKIP_DOWNLOAD: "1"
steps:
- uses: dtolnay/rust-toolchain@stable
- name: Install LLVM and Clang
Expand All @@ -232,8 +236,9 @@ jobs:
uses: baptiste0928/cargo-install@v2
with:
crate: electrs
- run: "echo $ELECTRS_EXEC"
version: 0.10.6
locked: true
- name: Checkout Crate
uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cd electrsd && cargo test --features 'bitcoind_25_2,bitcoind_download'
- run: cd electrsd && RUST_LOG=debug cargo test --no-default-features --features 'bitcoind_25_2,electrs_0_10_6,bitcoind_download'
166 changes: 157 additions & 9 deletions Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"

[[package]]
name = "aho-corasick"
version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
dependencies = [
"memchr",
]

[[package]]
name = "anyhow"
version = "1.0.95"
Expand Down Expand Up @@ -147,7 +156,7 @@ dependencies = [
"bitcoin_hashes",
"bitreq",
"corepc-client",
"env_logger",
"env_logger 0.9.3",
"flate2",
"log",
"serde_json",
Expand All @@ -157,6 +166,12 @@ dependencies = [
"zip",
]

[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"

[[package]]
name = "bitflags"
version = "2.11.1"
Expand Down Expand Up @@ -300,6 +315,33 @@ version = "0.8.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"

[[package]]
name = "electrsd"
version = "0.38.0"
dependencies = [
"bitcoin_hashes",
"bitcoind",
"bitreq",
"corepc-client",
"electrum-client",
"env_logger 0.10.2",
"log",
"nix",
"zip",
]

[[package]]
name = "electrum-client"
version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a5059f13888a90486e7268bbce59b175f5f76b1c55e5b9c568ceaa42d2b8507c"
dependencies = [
"bitcoin",
"log",
"serde",
"serde_json",
]

[[package]]
name = "env_logger"
version = "0.9.3"
Expand All @@ -309,6 +351,19 @@ dependencies = [
"log",
]

[[package]]
name = "env_logger"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580"
dependencies = [
"humantime",
"is-terminal",
"log",
"regex",
"termcolor",
]

[[package]]
name = "errno"
version = "0.3.10"
Expand Down Expand Up @@ -494,6 +549,12 @@ version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"

[[package]]
name = "hermit-abi"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"

[[package]]
name = "hex-conservative"
version = "0.2.1"
Expand Down Expand Up @@ -527,6 +588,12 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"

[[package]]
name = "humantime"
version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424"

[[package]]
name = "idna"
version = "1.1.0"
Expand Down Expand Up @@ -558,6 +625,17 @@ dependencies = [
"unicode-joining-type",
]

[[package]]
name = "is-terminal"
version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi 0.5.2",
"libc",
"windows-sys 0.61.2",
]

[[package]]
name = "itoa"
version = "1.0.11"
Expand Down Expand Up @@ -604,7 +682,7 @@ version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
dependencies = [
"bitflags",
"bitflags 2.11.1",
"libc",
"redox_syscall",
]
Expand Down Expand Up @@ -636,6 +714,15 @@ dependencies = [
"libc",
]

[[package]]
name = "memoffset"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
dependencies = [
"autocfg",
]

[[package]]
name = "miniz_oxide"
version = "0.8.4"
Expand All @@ -651,7 +738,7 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"
dependencies = [
"hermit-abi",
"hermit-abi 0.3.9",
"libc",
"wasi",
"windows-sys 0.52.0",
Expand All @@ -674,6 +761,20 @@ dependencies = [
"tempfile",
]

[[package]]
name = "nix"
version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4"
dependencies = [
"autocfg",
"bitflags 1.3.2",
"cfg-if",
"libc",
"memoffset",
"pin-utils",
]

[[package]]
name = "num-traits"
version = "0.2.19"
Expand Down Expand Up @@ -704,7 +805,7 @@ version = "0.10.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08838db121398ad17ab8531ce9de97b244589089e290a384c900cb9ff7434328"
dependencies = [
"bitflags",
"bitflags 2.11.1",
"cfg-if",
"foreign-types",
"libc",
Expand Down Expand Up @@ -760,6 +861,12 @@ version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"

[[package]]
name = "pin-utils"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"

[[package]]
name = "pkg-config"
version = "0.3.31"
Expand Down Expand Up @@ -790,7 +897,7 @@ version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2bb0be07becd10686a0bb407298fb425360a5c44a663774406340c59a22de4ce"
dependencies = [
"bitflags",
"bitflags 2.11.1",
"lazy_static",
"num-traits",
"rand",
Expand Down Expand Up @@ -859,7 +966,30 @@ version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834"
dependencies = [
"bitflags",
"bitflags 2.11.1",
]

[[package]]
name = "regex"
version = "1.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
dependencies = [
"aho-corasick",
"memchr",
"regex-automata",
"regex-syntax",
]

[[package]]
name = "regex-automata"
version = "0.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]

[[package]]
Expand Down Expand Up @@ -903,7 +1033,7 @@ version = "0.38.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
dependencies = [
"bitflags",
"bitflags 2.11.1",
"errno",
"libc",
"linux-raw-sys",
Expand Down Expand Up @@ -997,7 +1127,7 @@ version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
dependencies = [
"bitflags",
"bitflags 2.11.1",
"core-foundation 0.9.4",
"core-foundation-sys",
"libc",
Expand All @@ -1010,7 +1140,7 @@ version = "3.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
dependencies = [
"bitflags",
"bitflags 2.11.1",
"core-foundation 0.10.1",
"core-foundation-sys",
"libc",
Expand Down Expand Up @@ -1144,6 +1274,15 @@ dependencies = [
"windows-sys 0.59.0",
]

[[package]]
name = "termcolor"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
dependencies = [
"winapi-util",
]

[[package]]
name = "tiny_http"
version = "0.12.0"
Expand Down Expand Up @@ -1330,6 +1469,15 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"

[[package]]
name = "winapi-util"
version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys 0.61.2",
]

[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
Expand Down
Loading
Loading