-
-
Notifications
You must be signed in to change notification settings - Fork 771
Update VolatileCell
using the vcell
crate's VolatileCell
.
#3344
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me generally.
Tock's `VolatileCell` originally came from the [zinc.rs](https://github.com/hackndev/zinc) project. zinc.rs is no longer maintained. This updates `VolatileCell` by switching to the version from the [vcell](https://github.com/japaric/vcell) crate, which appears to still be maintained. The `volatile_cell.rs` in this commit is `vcell`'s `lib.rs` with the following history comment prepended: ``` // This file was vendored into Tock. It comes from // https://github.com/japaric/vcell, commit // ef556474203e93b3f45f0f8cd8dea3210aa7f844, path src/lib.rs. ```
1. Remove `#![no_std]`, as that is a crate-level attribute, and `volatile_cell` is now a module inside `tock-cells`. 2. Add `#![derive(Default)]`, as Tock uses `VolatileCell::default()`. 3. Run `rustfmt`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@alevy have you seen this? |
Does this change anything other than the order of the methods? Why do we want to add |
It also changes the license on the code from Apache 2.0 to Apache 2.0 or MIT.
We don't need |
I don't think we should add it without explaining why. I guess I would side on not adding it. |
So would you like me to push a commit removing |
7311652
I removed |
bors r+ |
Pull Request Overview
Tock's
VolatileCell
originally came from the zinc.rs project. zinc.rs is no longer maintained. This updatesVolatileCell
by switching to the version from the vcell crate, which appears to still be maintained.Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.