apache / apache/teaclave-sgx-sdk
Repo transferred to apache and renamed
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 268
- PR merge metrics
- No merged PRs in 30d
Description
Hi all,
This project now belongs to apache, and has a new repo path at: https://github.com/apache/mesatee-sgx
Currently if one uses the forked crates, he/she still needs to use the old repo URL as `git = "https://github.com/baidu/rust-sgx-sdk", rev = "v1.0.9"`, **because all the forked crates are using the old repo URL**.
Now, mixed usage of this SDK, like the following Cargo.toml would trigger collision between two sgx_tstd:
```toml
sgx_tstd = { rev = "v1.0.9", git = "https://github.com/apache/mesatee-sgx.git" }
wasmi = { git = "https://github.com/mesalock-linux/wasmi-sgx" }
```
You'll see
```
error: the `#[global_allocator]` in sgx_tstd conflicts with this global allocator in: sgx_tstd
error: duplicate lang item in crate `sgx_tstd`: `f32_runtime`.
|
= note: first defined in crate `sgx_tstd`.
error: duplicate lang item in crate `sgx_tstd`: `f64_runtime`.
|
= note: first defined in crate `sgx_tstd`.
error: duplicate lang item in crate `sgx_tstd`: `panic_impl`.
|
= note: first defined in crate `sgx_tstd`.
error: duplicate lang item in crate `sgx_tstd`: `begin_panic`.
|
= note: first defined in crate `sgx_tstd`.
error: duplicate lang item in crate `sgx_tstd`: `oom`.
|
= note: first defined in crate `sgx_tstd`.
error: aborting due to 6 previous errors
error: Could not compile `Helloworldsampleenclave`.
```
So I'm planning to have thorough update on all of the forked crates to use the new repo URL, and it would affect all of the projects which are depending on the old URL.
Any ideas?
Best,
Yu
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by auditing the forked crates and their Cargo.toml dependency URLs for references to the old baidu/rust-sgx-sdk repository, then reproduce the shown mixed-dependency example. The work is complete when the forked crates consistently use the new apache/mesatee-sgx.git URL and the duplicate sgx_tstd allocator and lang-item errors no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- security
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100