Skip to content

fix: refresh Cargo.lock for modern Rust and align toolchain#43

Open
hgp22 wants to merge 3 commits intop4lang:mainfrom
hgp22:fix/refresh-cargo-lock-modern-rust
Open

fix: refresh Cargo.lock for modern Rust and align toolchain#43
hgp22 wants to merge 3 commits intop4lang:mainfrom
hgp22:fix/refresh-cargo-lock-modern-rust

Conversation

@hgp22
Copy link
Copy Markdown

@hgp22 hgp22 commented Apr 27, 2026

  • Update locked time and wasm-bindgen stack (fixes E0282 in time and wasm-bindgen compatibility with current rustc)
  • Set workspace resolver = 2; require wasm-bindgen >= 0.2.88 in p4-analyzer-wasm
  • Pin rust-toolchain to 1.88.0 (lockfile v4, updated deps, wasm-bindgen-cli)
  • CI: Rust 1.88.0 with wasm32-unknown-unknown target
  • Fix test_pp! macro for semicolon_in_expressions_from_macros (Rust 1.95+)
  • Nx build-nix: portable runtime input (Node) instead of GNU stat for macOS

@fruffy
Copy link
Copy Markdown
Contributor

fruffy commented Apr 28, 2026

Could you sign the DCO and rebase please?

@hgp22
Copy link
Copy Markdown
Author

hgp22 commented Apr 28, 2026

i added some changes to the lsp other than refreshing the tollchains and locks, i will remove those changes and ask for review.

@hgp22 hgp22 force-pushed the fix/refresh-cargo-lock-modern-rust branch from e3e9802 to de7ee85 Compare April 28, 2026 10:15
hgp22 added 3 commits April 28, 2026 11:16
- Update locked time and wasm-bindgen stack (fixes E0282 in time and
  wasm-bindgen compatibility with current rustc)
- Set workspace resolver = 2; require wasm-bindgen >= 0.2.88 in p4-analyzer-wasm
- Pin rust-toolchain to 1.88.0 (lockfile v4, updated deps, wasm-bindgen-cli)
- CI: Rust 1.88.0 with wasm32-unknown-unknown target
- Fix test_pp! macro for semicolon_in_expressions_from_macros (Rust 1.95+)
- Nx build-nix: portable runtime input (Node) instead of GNU stat for macOS

Signed-off-by: hgp22 <henriquepereira31337@gmail.com>
Fixes "lock file needs to be updated" with --locked on Rust 1.88.

Signed-off-by: hgp22 <henriquepereira31337@gmail.com>
LspProtocolMachine::new was called with self.file_system.clone().unwrap(),
so WASM (and any host with None) panicked. Pass the same Arc used for
run_protocol_machine (the default LspEnumerableFileSystem or injected FS).

Signed-off-by: hgp22 <henriquepereira31337@gmail.com>
@hgp22 hgp22 force-pushed the fix/refresh-cargo-lock-modern-rust branch from de7ee85 to 97b7bd8 Compare April 28, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants