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

Serde support? #61

Closed
Tatametheus opened this issue Jun 25, 2022 · 2 comments
Closed

Serde support? #61

Tatametheus opened this issue Jun 25, 2022 · 2 comments

Comments

@Tatametheus
Copy link

When using decimal to replace is f64/32, some times we need to send the data through network or save them into file. Serde helps a lot. OrderedFloat supports serde. Do you have plan to support it?

@dnsl48
Copy link
Owner

dnsl48 commented Jun 26, 2022

Hi @Tatamethues,
Serde is already supported by both Fraction and Decimal. It is an optional feature which is disabled by default.
You may enable it by adding with-serde-support feature to your Cargo.toml where you define fraction module dependency.

@Tatametheus
Copy link
Author

THANKS..I should search it before...I see it in lib.rs

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

2 participants