Single use dependency specified at workspace Cargo.toml
superposition_types uses diesel as dependency, which causes dependency issues in 3rd party repos using this crate
dependencies in random order
cac_client returning data of types superposition_types::result::Result<T> in cases where the return should neither be a Result type or can simply be a Result<T, String>
Solution
Remove redundant compile step
Remove unused dependencies, mandate #![deny(unused_crate_dependencies)] for all crates
Localise single use dependency to the crates instead of workspace Cargo.toml
make result type as a feature for superposition_types (make diesel optional)
sorted dependencies in alphabetical order
Update return type of cac_client functions to direct T or Result<T, String>
Problem
make run
compiles code twiceCargo.toml
superposition_types
usesdiesel
as dependency, which causes dependency issues in 3rd party repos using this cratecac_client
returning data of typessuperposition_types::result::Result<T>
in cases where the return should neither be aResult
type or can simply be aResult<T, String>
Solution
#![deny(unused_crate_dependencies)]
for all cratesCargo.toml
result
type as a feature forsuperposition_types
(makediesel
optional)cac_client
functions to directT
orResult<T, String>