Remove binary-specific dependencies from bat library #895
Labels
bat-as-a-library
Related to bat-as-a-library
feature-request
New feature or request
help wanted
Extra attention is needed
I am considering using bat-as-a-library in https://github.com/dtolnay/cargo-expand but I found that the library pulls in an enormous dependency tree, a lot of which appears to be specific to the bat command line tool. For example
liquid
seems to be related to the bat.1 manpage and fish completions, neither of which should be needed for library mode.clap
also doesn't seem like it should be necessary in library mode.I pasted the
liquid
dependency graph below. This by itself is big enough that it really makes me hesitant about adding a library dependency on bat especially when liquid won't even be used at all by the library.Could you consider adding an on-by-default feature for pulling in the binary-specific dependencies, so that crates that depend on bat as a library can opt out of them? Or alternatively, consider moving the bat library to a different crate name so it doesn't need to share a Cargo.toml with the binary?
The text was updated successfully, but these errors were encountered: