mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Build fails with:
```
error[E0463]: can't find crate for `core`
error[E0463]: can't find crate for `std`
For more information about this error, try `rustc --explain E0463`.
```
The relevant bit of the "explain":
```
Common causes for missing std or core
* You are cross-compiling for a target which doesn't have std prepackaged. Consider one of the
following:
+ Adding a pre-compiled version of std with rustup target add
+ Building std from source with cargo build -Z build-std
+ Using #![no_std] at the crate root, so you won't need std in the first place.
* You are developing the compiler itself and haven't built libstd from source. You can usually build it with x.py build library/std. More
information about x.py is available in the rustc-dev-guide.
```
Since I know nothing about Rust, my efforts stop here for today.
According to the git log, this seems to be the same state we were in the
1.73 recipe.
20 lines
718 B
Plaintext
20 lines
718 B
Plaintext
From 6763625972ef0118eb757a8653a61bdcecb599a9 Mon Sep 17 00:00:00 2001
|
|
From: PulkoMandy <pulkomandy@pulkomandy.tk>
|
|
Date: Sat, 10 Aug 2024 20:12:43 +0200
|
|
Subject: Use html5ever version woth patch for Haiku
|
|
|
|
(ported from Rust 1.73 patchset)
|
|
|
|
diff --git a/Cargo.toml b/Cargo.toml
|
|
index 1379e4c..05881f1 100644
|
|
--- a/Cargo.toml
|
|
+++ b/Cargo.toml
|
|
@@ -112,3 +112,4 @@ strip = true
|
|
rustc-std-workspace-core = { path = 'library/rustc-std-workspace-core' }
|
|
rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' }
|
|
rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
|
|
+html5ever = { git = 'https://github.com/servo/html5ever', rev = '16b5127f6cce2182409a8384a38af8dc64532d23' }
|
|
--
|
|
2.45.2
|
|
|