Currently we only need the `derive` feature of `serde` in test code. Observe: - We do not need the error testing logic because `ParseAmountError` is already exhaustively tested. - The rest of the `serde` test logic in `amount` can be done using the public API so it can be moved to the integration test directory. Move the unit test code to `tests/` excluding the error testing logic. Remove the `derive` feature from the `serde` dependency. Add a `dev-dependency` on `serde` that enables the `derive` feature. |
||
---|---|---|
.. | ||
data | ||
api.rs | ||
serde.rs | ||
str.rs |