reth
reth copied to clipboard
Extract db-api::models to a standalone crate
Describe the feature
we're using some types declared in db-api::models
https://github.com/paradigmxyz/reth/blob/6c76845ce06f9a2c7d9539cef523a38059ad7260/crates/storage/db-api/src/models/mod.rs#L14-L24
in other parts of the codebase such as storage-api
it'd be nice if this were possible without depending on db-api, e.g:
https://github.com/paradigmxyz/reth/blob/6c76845ce06f9a2c7d9539cef523a38059ad7260/crates/storage/storage-api/Cargo.toml#L18-L18
https://github.com/paradigmxyz/reth/blob/6c76845ce06f9a2c7d9539cef523a38059ad7260/crates/storage/storage-api/src/account.rs#L2-L2
TODO
- extract models to
db-typesordb-modelsand update deps, db-api would then depend on -types
Additional context
No response