You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'serialization::tests::rmp_serialization_should_be_able_to_read_decimals' panicked at '?: Syntax("invalid type: sequence, expected a Decimal type representing a fixed-point number")'
Here is the features activated in the toml file :
rust_decimal = { version = "1.13", features = ["serde-float", "serde-str", "serde-arbitrary-precision"] }
rust_decimal_macros = "1.13"
weird that my cargo.lock mentioned a 1.14 version ? 🤔
Can you think of a change that could have led to this behavior ? Of course it could be a change behind rmp-serde, but their libs changed less in the same time so I ask you first.
I hope I didn't do something just really stupid ...
The text was updated successfully, but these errors were encountered:
To confirm, this does seem like it is caused by a change in rust-decimal. In particular: #404.
This highlights the need to clean up the confusing relationship between these features. In the meantime (in lieu of fixing this), there are two options:
Fix the version in your Cargo.toml. e.g.
rust_decimal = { version = "=1.14.3", features = ["serde-float", "serde-str", "serde-arbitrary-precision"] }
rust_decimal_macros = "=1.14.3"
The conflict happens because of the serde-float feature. If you could remove this then it should work. That being said, there could be good reason to keep it!
In the meantime, I'm going to play around with the features a bit. I do see that the combination of all three features is currently not tested at all so I'll start with that and figure out how to close the gap.
Hello and thank you for this lib !
I have an issue after migrated from
v1.14.3
tov1.16.0
of this crate.This test is failing with new version :
The debug output is this one on
v1.14.3
:While on
v1.16.0
it's output is :before failing with the error :
Here is the features activated in the toml file :
weird that my cargo.lock mentioned a 1.14 version ? 🤔
Can you think of a change that could have led to this behavior ? Of course it could be a change behind rmp-serde, but their libs changed less in the same time so I ask you first.
I hope I didn't do something just really stupid ...
The text was updated successfully, but these errors were encountered: