Description
In rust/src/lib.rs, several structs derive PartialEq, but this trait is only used in tests.
We should be able to make this derivation conditional, with
#[cfg_attr(test, derive(PartialEq))]
However, because our tests are in a separate tests directory, cfg(test) isn't recognized during compilation. We should reorganize our directory structure in order to make cfg_attr work properly.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- structs don't derive a trait in production code that is only used in test code
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist