From 789a04e30d041179b373b4eb8b340456534a3f0e Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 26 Sep 2024 00:28:01 +0700 Subject: [PATCH] fix(features): Use `dep:` syntax for dependencies in features. (#394) This prevents creating implicit features for them which can be confusing (and duplicates features). --- Cargo.toml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d90fa72..7678079 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,24 +46,24 @@ strip-ansi-escapes = "0.2.0" [features] default = ["derive"] -derive = ["miette-derive"] +derive = ["dep:miette-derive"] no-format-args-capture = [] fancy-base = [ - "owo-colors", - "textwrap", + "dep:owo-colors", + "dep:textwrap", ] fancy-no-syscall = [ "fancy-base", ] fancy-no-backtrace = [ "fancy-base", - "terminal_size", - "supports-hyperlinks", - "supports-color", - "supports-unicode", + "dep:terminal_size", + "dep:supports-hyperlinks", + "dep:supports-color", + "dep:supports-unicode", ] -fancy = ["fancy-no-backtrace", "backtrace", "backtrace-ext"] -syntect-highlighter = ["fancy-no-backtrace", "syntect"] +fancy = ["fancy-no-backtrace", "dep:backtrace", "dep:backtrace-ext"] +syntect-highlighter = ["fancy-no-backtrace", "dep:syntect"] [workspace] members = ["miette-derive"]