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

document how to make datasize an optional compile-time feature #22

Open
djugei opened this issue Oct 18, 2024 · 1 comment
Open

document how to make datasize an optional compile-time feature #22

djugei opened this issue Oct 18, 2024 · 1 comment

Comments

@djugei
Copy link

djugei commented Oct 18, 2024

pub struct FileCache<#[cfg(not(feature = "datasize"))] State, #[cfg(feature = "datasize")] State: DataSize>
currently trips up the derive macro leaving only manual implementation

@djugei
Copy link
Author

djugei commented Oct 18, 2024

this limitation is documented, but cfg on where clauses is not in rust yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant