Cannot install hal-elements on windows (rustc 1.91.0 )
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- build-system
調査の方向性
まず、Windows 上で rustc 1.91.0 を使用して cargo install hal-elements を再現し、lightning-invoice-0.4.0/src/lib.rs の 60 行目で報告されている失敗を調査します。hal-elements がその依存関係をどのように選択しているかを確認し、指定された環境でのインストールパスを検証します。hal-elements が、キャッシュされた依存関係のソースを手動で編集せずに Windows 上で正常にインストールできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Dear Maintainers.
I trid on wndows 11 (git-bash) with rustc 1.91.0 (f8297e351 2025-10-28) to install hal-elements v0.9.0 with
cargo install hal-elements
hal-elements seems to depend on lightning-invoice 0.4.0 (which is pretty old).
I am facing a compiling error when installing:
Compiling lightning-invoice v0.4.0
error[E0080]: attempt to compute 8_usize - 16_usize, which would overflow
--> %USERPROFILE%\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\lightning-invoice-0.4.0\src\lib.rs:60:11
|
60 | unsafe { std::mem::transmute::<SystemTime, [u8; 16]>(UNIX_EPOCH); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `SystemTime` (64 bits)
= note: target type: `[u8; 16]` (128 bits)
For more information about this error, try `rustc --explain E0512`.
error: could not compile `lightning-invoice` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `hal-elements v0.2.1`, intermediate artifacts can be found at `%USERPROFILE%\AppData\Local\Temp\cargo-install042DLx`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
I found a quick fix for line 60 kike this
// unsafe { std::mem::transmute::<SystemTime, [u8; 16]>(UNIX_EPOCH); }
assert_eq!(std::mem::size_of::<SystemTime>(), 16, "Unexpected SystemTime size");
Can you please make hal-elements also installable for windows
Thanks in advance
- 主要言語
- Rust
- スター
- 8
- フォーク
- 5
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ElementsProject/hal-elements のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
ElementsProject/hal-elements#4 · コメント 5 件 ·
ElementsProject/hal-elements の issue をすべて見る
似ている issue
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
n0-computer/iroh#4550 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
paritytech/zombienet-sdk#591 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
farion1231/cc-switch#7638 · コメント 1 件 ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100