From 8a7fbbd2459883f431c7622a28e309b6bc552cd5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 30 Jan 2017 18:37:48 +0100 Subject: [PATCH] use name/feature syntax It's much more common with what cargo people to. Signed-off-by: Igor Gnatenko --- cargo-deps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cargo-deps.py b/cargo-deps.py index 8f53081..d5a3b30 100755 --- a/cargo-deps.py +++ b/cargo-deps.py @@ -70,8 +70,8 @@ args = parser.parse_args() files = args.file or sys.stdin.readlines() def print_dep(name, spec, kind="=", feature=None): - f_part = "({})".format(feature) if feature is not None else "" - print("crate({}){} {} {}".format(name, f_part, kind.replace("==", "="), spec)) + f_part = "/{}".format(feature) if feature is not None else "" + print("crate({}{}) {} {}".format(name, f_part, kind.replace("==", "="), spec)) for f in files: f = f.rstrip()