islet-project / islet

An on-device confidential computing platform
Apache License 2.0
91 stars 16 forks source link

Update the rust toolchain to nightly-2024-04-21 #323

Closed zpzigi754 closed 3 months ago

zpzigi754 commented 3 months ago

This PR updates rust toolchain from nightly-2023-09-05 (rustc 1.74) to nightly-2024-04-21 (rustc 1.79). The update will fix the previous error in AnalysisHub while preserving the functionalities from cargo install.

[Summary of changes]

// The below are all suggested by either `cargo clippy` or `cargo check`.
- Use `addr_of_mut!()` and `addr_of!()` macros
- Use `&[u8]` instead of `&Vec<u8>`
- Use `get(x)` and `get_mut(x)` instead of `iter().nth(x)` and `iter_mut().nth(x)`
- Use `into()` instead of `try_into().or(Err(Error::RmiErrorInput))?`
- Use `u8::MAX` instead of `core::u8::MAX`
- Remove extern keyword in panic handler
- Change .cargo/config to .cargo/config.toml