Skip to content
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

Implement a derive macro for storable structs #8

Open
uint opened this issue Jan 18, 2024 · 0 comments
Open

Implement a derive macro for storable structs #8

uint opened this issue Jan 18, 2024 · 0 comments
Labels
project Too big to be a single task storey
Milestone

Comments

@uint
Copy link
Collaborator

uint commented Jan 18, 2024

The idea here is something like this:

#[derive(Storable)]
struct Foo {
    #[storey(key = "0")]
    bar: Item<u128>,
    #[storey(key = "1")]
    baz: Map<str, Item<u128>>,
}

This should generate a Storable implementation for Foo, with every field being under a different one-byte key.

One use of this is to give Column the ability to store multiple "cells" per row, implementing a sort of "table".

@uint uint added this to the v0.4.0 milestone Sep 4, 2024
@uint uint added help wanted Extra attention is needed storey project Too big to be a single task and removed help wanted Extra attention is needed labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project Too big to be a single task storey
Projects
None yet
Development

No branches or pull requests

1 participant