By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Clippy: Here’s What You Should Know | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Clippy: Here’s What You Should Know | HackerNoon
Computing

Clippy: Here’s What You Should Know | HackerNoon

News Room
Last updated: 2026/03/12 at 5:08 AM
News Room Published 12 March 2026
Share
Clippy: Here’s What You Should Know | HackerNoon
SHARE

Since Clippy v0.0.97 and before it was shipped with rustup, Clippy implicitly added a feature = "cargo-clippy" config1 when linting your code with cargo clippy.

Back in the day (2016) this was necessary to allow, warn or deny Clippy lints using attributes:

#[cfg_attr(feature = "cargo-clippy", allow(clippy_lint_name))]

Doing this hasn’t been necessary for a long time. Today, Clippy users will set lint levels with tool lint attributes using the clippy:: prefix:

#[allow(clippy::lint_name)]

The implicit feature = "cargo-clippy" has only been kept for backwards compatibility, but will be deprecated in upcoming nightlies and later in 1.78.0.

Alternative

As there is a rare use case for conditional compilation depending on Clippy, we will provide an alternative. So in the future (1.78.0) you will be able to use:

#[cfg(clippy)]

Transitioning

Should you only use stable toolchains, you can wait with the transition until Rust 1.78.0 (2024-05-02) is released.

Should you have instances of feature = "cargo-clippy" in your code base, you will see a warning from the new Clippy lint clippy::deprecated_clippy_cfg_attr available in the latest nightly Clippy. This lint can automatically fix your code. So if you should see this lint triggering, just run:

cargo clippy --fix -- -Aclippy::all -Wclippy::deprecated_clippy_cfg_attr

This will fix all instances in your code.

In addition, check your .cargo/config file for:

[target.'cfg(feature = "cargo-clippy")']
rustflags = ["-Aclippy::..."]

If you have this config, you will have to update it yourself, by either changing it to cfg(clippy) or taking this opportunity to transition to setting lint levels in Cargo.toml directly.

Motivation for Deprecation

Currently, there’s a call for testing, in order to stabilize checking conditional compilation at compile time, aka cargo check -Zcheck-cfg. If we were to keep the feature = "cargo-clippy" config, users would start seeing a lot of warnings on their feature = "cargo-clippy" conditions. To work around this, they would either need to allow the lint or have to add a dummy feature to their Cargo.toml in order to silence those warnings:

[features]
cargo-clippy = []

We didn’t think this would be user friendly, and decided that instead we want to deprecate the implicit feature = "cargo-clippy" config and replace it with the clippy config.

  1. It’s likely that you didn’t even know that Clippy implicitly sets this config (which was not a Cargo feature). This is intentional, as we stopped advertising and documenting this a long time ago. ↩

The Clippy Team

Also published here

Photo by viswaprem anbarasapandian on Unsplash

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Running Ray at Scale on AKS Running Ray at Scale on AKS
Next Article Grammarly removes AI feature which used real authors’ identities, faces class action lawsuit Grammarly removes AI feature which used real authors’ identities, faces class action lawsuit
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Expect to pay 16-inch MacBook Pro money for an iPhone Fold with 1TB storage
Expect to pay 16-inch MacBook Pro money for an iPhone Fold with 1TB storage
News
Apple Maps Might Be Cooked After This Huge Google Maps Update – BGR
Apple Maps Might Be Cooked After This Huge Google Maps Update – BGR
News
Shanghai cracks down on illegal AI content on major platforms · TechNode
Shanghai cracks down on illegal AI content on major platforms · TechNode
Computing
Sonos Era 100 SL vs Era 100: What’s the difference?
Sonos Era 100 SL vs Era 100: What’s the difference?
Gadget

You Might also Like

Shanghai cracks down on illegal AI content on major platforms · TechNode
Computing

Shanghai cracks down on illegal AI content on major platforms · TechNode

1 Min Read
Account Recovery Becomes a Major Source of Workforce Identity Breaches
Computing

Account Recovery Becomes a Major Source of Workforce Identity Breaches

0 Min Read
From Teens to Menopause: How Age and Obesity Affect Menstrual Health | HackerNoon
Computing

From Teens to Menopause: How Age and Obesity Affect Menstrual Health | HackerNoon

62 Min Read
Attackers Don’t Just Send Phishing Emails. They Weaponize Your SOC’s Workload
Computing

Attackers Don’t Just Send Phishing Emails. They Weaponize Your SOC’s Workload

17 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?