No-std usage among rust-lightning dependents

未關閉
#4,314 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
15/100
Issue 類型
文件
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
rust
領域
backend

研究方向

This is a maintainer tracking issue on whether rust-lightning should keep no_std, not a patch. There is no file or test named to change. Start from the issue body, the linked #4309 example, and the listed Cargo.toml paths of dependents. Done would be a decision on no_std support, not a first-timer code change.

由索引模型根據 Issue 內容生成。

描述

Summary

This issue tracks the usage of rust-lightning in no_std environments to help inform decisions about continued no_std support.

Rationale

Supporting no_std adds complexity to the development process. Notable pain points include:

  • Time access: No access to system time, requiring alternative approaches
  • Send/Sync requirements: Additional constraints on types and trait bounds

A recent example of no_std-related complexity: #4309

Is it worth supporting no_std?

To answer this question, we need visibility into who actually uses rust-lightning in no_std mode.

Methodology

Determining reverse dependencies for no_std specifically isn't straightforward—GitHub's dependency graph doesn't distinguish between feature configurations. I vibe-coded a tool to scan dependents and check their Cargo.toml files for default-features = false without std re-enabled:

https://github.com/joostjager/rust-lightning/tree/ldk-dep-scanner

Note: Not all items in the table below necessarily use no_std in an unavoidable way—some projects may work fine with std enabled but simply haven't changed their configuration.

Direct no_std dependents

The table below shows all direct dependents of rust-lightning that use it in no_std mode, sorted by stars:

Repository Stars Last Updated Cargo.toml
p2pderivatives/rust-dlc 157 2025-12-13 Cargo.toml
Blockstream/lwk 93 2026-01-14 Cargo.toml
BoltzExchange/boltz-client 76 2026-01-13 Cargo.toml
bennyhodl/dlcdevkit 33 2026-01-08 Cargo.toml
MutinyWallet/bitcoin-waila 30 2025-09-01 Cargo.toml
lightning-signer/validating-lightning-signer 14 2026-01-07 Cargo.toml
rust-bitcoin/bitcoin-payment-instructions 10 2026-01-07 Cargo.toml
akitamiabtc/yuv-lightning 5 2025-09-21 Cargo.toml
BoltzExchange/bolt12-wasm 4 2026-01-08 Cargo.toml
lightning-signer/vls 1 2025-10-17 Cargo.toml
benthecarman/rust-dlc 1 2023-12-13 Cargo.toml
TheBlueMatt/libbtcwallet 0 2025-03-26 Cargo.toml
TheBlueMatt/ln-routing-replay 0 2025-05-12 Cargo.toml
fedibtc/fedimint 0 2024-07-24 Cargo.toml
主要語言
Rust
星號
1.4k
分支
482
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

lightningdevkit/rust-lightning 的其他 Issue

查看 lightningdevkit/rust-lightning 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。