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

bigint support #93

Open
oscartbeaumont opened this issue Dec 3, 2022 · 2 comments
Open

bigint support #93

oscartbeaumont opened this issue Dec 3, 2022 · 2 comments
Labels
long-term Things that aren't going to be fixed anytime soon but are nice to haves! v2.x A change for version 2.x.x

Comments

@oscartbeaumont
Copy link
Member

It is not supported by JSON. Should I look into something like Superjson but for Rust?

@beeb
Copy link

beeb commented Mar 6, 2023

Support for bigint would be nice, especially when paired with https://github.com/Brendonovich/prisma-client-rust which has a need for i64 due to Prisma's BigInt type.

See Brendonovich/prisma-client-rust#266

Would using strings for serialization and then post-processing the parsed string values be an option?

@oscartbeaumont oscartbeaumont added the long-term Things that aren't going to be fixed anytime soon but are nice to haves! label Mar 14, 2023
@oscartbeaumont
Copy link
Member Author

@beeb sorry completely missed your comment.

I think that would be the way to go but doing it in an automated fashion is a bit challenging with all the ideas I have had so far.

You can manually encode to string and decode to BigInt and that's what we are doing for Spacedrive.

@oscartbeaumont oscartbeaumont added the v2.x A change for version 2.x.x label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
long-term Things that aren't going to be fixed anytime soon but are nice to haves! v2.x A change for version 2.x.x
Development

No branches or pull requests

2 participants