-
Notifications
You must be signed in to change notification settings - Fork 441
feat(integrations): add ruint #1355
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
Conversation
c79730b
to
70efe2d
Compare
maybe i'm wrong but the CI failure looks unrelated to the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siosw thank you for your effort!
Don't bother with that test, it's known to be flaky, and there is no way to make it deterministic, unfortunately, since we depend there on nondeterministic compiler output.
Also, I've made few adjustments:
- Exposed the module fed to
#[graphql_scalar]
macro aspub
, so anyone who desires custom-sized type could just use the module directly (example for doing so is included). - Added implementations for
U8
,U16
andU32
types.
@tyranron thanks for finishing this up and your work on juniper in general! |
closes #1350
Ruint uses const generics to set the size of the uint, I chose to include type aliases for
U64
,U128
, andU256
which are commonly used but i think arguments can be made to include more or less.It would be nice to avoid repeating the doc string for these but i'm unsure if that's possible.
Also wasn't sure where to add this in the change log so left it for now.