ITADN

Bug:

#1213Closeddbolser 创建于 2025-08-16
bug
D
dbolsercommented
**Describe the bug** ```bash $ cargo build --locked --release ... Compiling bitcoin v0.28.0 Compiling rocksdb v0.21.0 error[E0658]: use of unstable library feature 'result_option_inspect' --> src/new_index/db.rs:248:41 | 248 | let _ = self.db.delete(key).inspect_err(|err| { | ^^^^^^^^^^^ | = note: see issue #91345 <https://github.com/rust-lang/rust/issues/91345> for more information error[E0658]: use of unstable library feature 'result_option_inspect' --> src/util/block.rs:221:34 | 221 | self.headers.get(height).inspect(|entry| { | ^^^^^^^ | = note: see issue #91345 <https://github.com/rust-lang/rust/issues/91345> for more information For more information about this error, try `rustc --explain E0658`. error: could not compile `mempool-electrs` (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish... ``` **Electrs version** ```bash $ git log commit e55afdc3709f7e8b2546aedb1da54c1033ea288a (HEAD -> mempool, origin/mempool, origin/HEAD) ... ``` **To Reproduce** ```bash $ git clone https://github.com/mempool/electrs && cd electrs $ git checkout mempool $ sudo apt update; sudo apt install clang cmake build-essential # for building 'rust-rocksdb' $ sudo apt install librocksdb-dev librocksdb-dev is already the newest version (6.11.4-3). $ cargo build --locked --release ... error ``` I guess it's the rocksdb version, cus I think thie docs says `$ sudo apt install librocksdb-dev=7.8.3-2`. Reporting anyway for confirmation, and to leave a googleable trail for anyone hitting this issue. **Expected behavior** I don't know man. **System running electrs** - https://github.com/romanz/electrs/blob/master/doc/install.md ```bash $ inxi -rS System: Host: gg Kernel: 6.8.0-65-generic x86_64 bits: 64 Desktop: Xfce 4.18.1 Distro: Linux Mint 21.3 Virginia Repos: No active apt repos in: /etc/apt/sources.list Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 1: deb https://mirror.server.net/linuxmint/packages virginia main upstream import backport 2: deb http://mirror.mythic-beasts.com/ubuntu jammy main restricted universe multiverse 3: deb http://mirror.mythic-beasts.com/ubuntu jammy-updates main restricted universe multiverse 4: deb http://mirror.mythic-beasts.com/ubuntu jammy-backports main restricted universe multiverse 5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse Active apt repos in: /etc/apt/sources.list.d/tailscale.list 1: deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/ubuntu jammy main Active apt repos in: /etc/apt/sources.list.d/vscode.sources 1: deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main ``` **Additional context** I should do the thing for hte rocsk thing
关闭于 2025-08-25 1 条评论