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

feat(schema): support generic bounds in structs & enums #490

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add test
nelson137 committed Nov 20, 2024
commit e0fa79de2f5ec2cac8f3b7bc6758f5d27b7fe093
5 changes: 5 additions & 0 deletions framework_crates/bones_schema/src/lib.rs
Original file line number Diff line number Diff line change
@@ -63,6 +63,11 @@ mod test {
Set(T),
}

#[derive(HasSchema, Clone, Default)]
#[schema_module(crate)]
#[repr(C)]
struct WrapperWithDefault<T: Default>(T);

#[derive(HasSchema, Clone, Copy, Debug, PartialEq, Eq, Default)]
#[schema_module(crate)]
#[repr(u8)]