skim icon indicating copy to clipboard operation
skim copied to clipboard

Would you consider adding feature gate for cli and library?

Open pombadev opened this issue 4 years ago • 3 comments

Since we can already use this as a library, i think it will be beneficial to separate them so that if someone consume this as a library, we don't pull un-needed crates (eg: clap).

pombadev avatar Mar 17 '20 19:03 pombadev

Waiting for https://github.com/rust-lang/cargo/issues/1982

lotabout avatar Apr 01 '20 12:04 lotabout

In the mean time, an option would be to have something like this:

[features]
bin = ["clap", ...]
default = ["bin"]

And then library users can disable default-features.

bedax avatar Apr 04 '20 00:04 bedax

@lotabout thanks for the response. You can either close this issue or keep it opened as you see fit, thanks!

pombadev avatar Apr 13 '20 13:04 pombadev