Stream: project-safe-transmute

Topic: Marker Traits


Ryan Levick (Mar 12 2020 at 10:14, on Zulip):

I've created a repo for defining base marker traits that can be shared among all implementations of safe transmute. Again, the idea is that this repo would be the launching pad for any traits that would wind up in the std lib. Here is the first issue for discussing FromBytes/AsBytes https://github.com/rylev/mem-markers/issues/1 (note: this is on my personal GitHub until we can transfer to the rust-secure-code organization)

Ryan Levick (Mar 12 2020 at 16:37, on Zulip):

@Jack Wrenn @Joshua Liebow-Feeser one thing I would love to talk more about is how useful these marker traits are or are not to Typic

Ryan Levick (Mar 12 2020 at 17:10, on Zulip):

Thanks to @Shnatsel the repo has been moved: https://github.com/rust-secure-code/mem-markers

Shnatsel (Mar 12 2020 at 17:14, on Zulip):

I've invited some people as admins to this repo but I'm sure I'm forgetting someone. If you want write access and did not receive an invite, ping me

Ryan Levick (Mar 20 2020 at 11:35, on Zulip):

I'd like to start implementing some of the traits. Does anyone have any objections to this: https://github.com/rust-secure-code/mem-markers/issues/1. I assume this crate also will support custom derives for each of them. Any objections to that?

Ryan Levick (Mar 20 2020 at 11:36, on Zulip):

@Jack Wrenn @Joshua Liebow-Feeser I'd also love to hear from you two since it's the least clear how well this plays into a typic style solution

Jack Wrenn (Mar 20 2020 at 17:15, on Zulip):

I've left comments addressing your question on the github issue: https://github.com/rust-secure-code/mem-markers/issues/1#issuecomment-601810244

Lokathor (Mar 20 2020 at 21:09, on Zulip):

I think that ToBytes and FromBytes are perhaps too broad and could be broken up into sub-markers and then you have ToBytes any time you have NoUninit and also FixedLayout

Lokathor (Mar 20 2020 at 21:11, on Zulip):

But they should exist somewhere, so feel free to go ahead.

Last update: Apr 03 2020 at 18:25UTC