From 3d5a3545f7d900177ecee5046d6660f878d96537 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 15 Nov 2021 20:14:50 +0100 Subject: decontaminate library from clap and anyhow deps --- Cargo.toml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 63c199b..d1483dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,17 +13,22 @@ readme = "README.rst" license = "GPL-3.0" edition = "2021" +[dependencies] +libc = "0.2" +clap = { version = "2.33", optional = true } +anyhow = { version = "1.0", optional = true } + +[features] +vtcol-bin = [ "anyhow", "clap" ] + [[bin]] -name = "vtcol" -path = "src/vtcol.rs" -test = false -doc = false +name = "vtcol" +path = "src/vtcol.rs" +test = false +doc = false +required-features = [ "vtcol-bin" ] [lib] # doctests suck doctest = false -[dependencies] -clap = "2.33" -libc = "0.2" -anyhow = "1.0" -- cgit v1.2.3