doc/wg/core/notes/core-notes-2022-11-11.md
Attendees:
MapCell. Discussed internally, I'll see
if we can share it with the Tock Slack.Page which
needs to be AsMut<[u8]> + Default. In TickFs, Alistair assumed page sizes
are 2KiB. His flash controller for TicKV uses our flash controller from Tock.
The flash page doesn't have a fixed size, but his flash controller needs a
size, so it can compute addresses and erase pages. Basically, there is no
checking here.Page from our flash controller. Our suggestion was to implement it as
in the issue, but then we realized that Page could be anything that gives
us a slice, which does not have a size at compile time.AsMut<[u8]> implementation. It allows every
consumer to potentially reference the flash page to a mutable slice. I'm
wondering whether that's a wrong level of abstraction we're using here
because when we want to have something dereferenceable to a mutable slice of
bytes, we force the implementation to provide an in-memory view anyways. I'm
wondering whether it would hurt any of our use cases to make the associated
type an associated constant over the size of the flash page instead.cargo audit might do this.
There are a different set of tools that make sure your project's license
headers match your project's standards. When Google releases an open source
project and make it public for the first time, we make sure our own license
headers are correct using a tool. I think Chris was talking about one type of
tool and I'm talking about the other type. I'm talking about one that just
checks the format of our license headers rather than checking the licenses of
our dependencies.libtock-rs which is not under the Tock kernel's
third-party dependency policy and pulls in a lot more external crates.