Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for std #1068

Closed
wants to merge 18 commits into from
Closed

Conversation

tsoutsman
Copy link
Member

No description provided.

tsoutsman and others added 13 commits October 22, 2023 01:04
This PR changes `path` to export a `Path` and `PathBuf` struct, akin to
`std::path`. Initially I made this change because it was necessary for
Rust FFI for the `std` port, but it turns out the change also removed a
lot of unnecessary allocations throughout the codebase.

Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
```
error[E0461]: couldn't find crate `std` with expected target triple x86_64-unknown-theseus
  |
  = note: the following crate versions were found:
          crate `std`, target triple x86_64-unknown-theseus-18391571932074236353: /Users/klim/Projects/theseus-5/build/std/aarch64-apple-darwin/stage0-std/x86_64-unknown-theseus/release/deps/libstd-ed3cfe7c0dcd5cb9.rlib

error[E0461]: couldn't find crate `std` with expected target triple x86_64-unknown-theseus
 --> applications/test_std/src/lib.rs:1:5
  |
1 | use std::{string::String, vec::Vec};
  |     ^^^
  |
  = note: the following crate versions were found:
          crate `std`, target triple x86_64-unknown-theseus-18391571932074236353: /Users/klim/Projects/theseus-5/build/std/aarch64-apple-darwin/stage0-std/x86_64-unknown-theseus/release/deps/libstd-ed3cfe7c0dcd5cb9.rlib
```

Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
@tsoutsman tsoutsman marked this pull request as draft October 31, 2023 22:32
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
@tsoutsman tsoutsman closed this Nov 6, 2023
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