It's not worth having an extra dep for just defning a simple error type.
Move the deps that are only used in the CLI package into it's Cargo.toml. Otherwise you're signalling that these deps are common when in fact they're only used in one package.
Also moved deps specially for the lib into it's Cargo.toml
It's not worth having an extra dep for just defning a simple error type.