Cannot install hal-elements on windows (rustc 1.91.0 )
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- build-system
Research direction
Start by reproducing cargo install hal-elements on Windows with rustc 1.91.0 and inspect the reported lightning-invoice-0.4.0/src/lib.rs line 60 failure. Check how hal-elements selects that dependency and verify the installation path across the stated environment. Done means hal-elements installs successfully on Windows without manually editing the cached dependency source.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Rust
- Stars
- 8
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ElementsProject/hal-elements
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
ElementsProject/hal-elements#4 · 5 comments ·
All issues in ElementsProject/hal-elements
Similar issues
-
todo:perf
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
ACP agents get no MCP servers when the thread is created before the project's first worktree loads Openstate:needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zed-industries/zed#64611 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
objectionary/phie#154 ·