gear icon indicating copy to clipboard operation
gear copied to clipboard

`scale_codec`/`scale_info` can be reexported from `gstd`

Open gshep opened this issue 3 years ago • 0 comments

Problem to Solve

with codec 3.1.2 and scale_info 2.1.1 it is possible to reexport the crates from gstd. This will allow not to depend on codec/info in the end program.

Possible Solution

It is nice to have sample demonstrating reexporting. codec(crate = path::to::crate) - https://github.com/paritytech/parity-scale-codec#derive-attributes #[scale_info(crate = scale_info_reexport::info)] - https://docs.rs/scale-info/2.1.1/scale_info/#scale_infocrate--pathtocrate

Notes

No response

gshep avatar Apr 20 '22 08:04 gshep