惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
博客园 - Franky
J
Java Code Geeks
V
Visual Studio Blog
G
Google Developers Blog
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
博客园 - 【当耐特】
IT之家
IT之家
I
InfoQ
U
Unit 42
C
Check Point Blog
Martin Fowler
Martin Fowler

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why I built cargo-feat: A 10ms solution to feature lookup...
vun · 2026-05-02 · via DEV Community

vun

The Problem

Every time I add a dependency to Cargo.toml, I need to know what features
it exposes. Current workflow:

  1. Open browser
  2. Search crates.io or docs.rs
  3. Scroll through documentation
  4. Find the feature list
  5. Close browser

Repeat 20 times a day. Annoying.

Existing tools like cargo info exist but are slow (80ms+).

The Solution

Built cargo-feat. Single command. Shows every feature, marks defaults,
lists what each feature pulls in.

$ feat reqwest

— reqwest's features are in the following list —
    ★ default
         default-tls
         charset
         http2
         system-proxy

    — blocking
    — brotli
    — charset          (default)
    ...

Enter fullscreen mode Exit fullscreen mode

Done in 9.9ms.

Why It's Fast

Three optimizations:

  1. Sparse registry index — reads crates.io sparse index directly
    (via Cloudflare CDN). Cargo uses same source. Faster than REST API.

  2. Local cache first — checks ~/.cargo/registry/index/ before network.
    If you've ever built with this crate, result is instant.
    After network fetch, written to cache. Next run: always fast.

  3. Early-stop parsing — scans index from end, stops at first stable
    version. O(1) entries instead of O(n versions).

Also uses MiMalloc + simd-json for JSON parsing.

Benchmarks

(Include table from README or simple comparison)

cargo feat reqwest        9.9 ms
cargo info reqwest       92.7 ms  (9.4x slower)

Enter fullscreen mode Exit fullscreen mode

Works same speed for serde (180+ versions). Lookup time flat
regardless of version count.

Installation

cargo install cargo-feat

Enter fullscreen mode Exit fullscreen mode

Then use it:

feat reqwest              # latest version
feat tokio 1.35.0         # specific version
feat reqwest --deps       # show dependencies
feat reqwest --internals  # show internal features
feat serde --json         # raw JSON output

Enter fullscreen mode Exit fullscreen mode

Try It

GitHub logo vunholy / cargo-feat

Fast CLI tool for Rust that instantly lists a crate’s features from crates.io without opening a browser. Shows default features, dependencies, and metadata with minimal overhead and optimized lookup performance. Built for speed-focused workflows.

cargo-feat

crates.io

A fast command-line tool for Rust developers to instantly look up the available features of any crate on crates.io - directly in your terminal, with no browser required.


Why

When adding a dependency, finding out what features it exposes usually means opening a browser, searching crates.io or docs.rs, and scrolling through documentation. cargo-feat removes that friction: one command gives you a color-coded list of every feature the crate exposes, which ones are enabled by default, and what each feature pulls in.


Demo

$ feat reqwest

— reqwest's features are in the following list —
    ★ default
         default-tls
         charset
         http2
         system-proxy

    — blocking
    — brotli
    — charset          (default)
    — cookies
    — default-tls      (default)
    — deflate
    — gzip
    — http2            (default)
    — ...

Installation

From crates.io

cargo install cargo-feat

Enter fullscreen mode Exit fullscreen mode

From source

Requires a recent stable Rust toolchain.

git clone https://github.com/vunholy/cargo-feat.git
cd cargo-feat
cargo build --release

Enter fullscreen mode Exit fullscreen mode

The compiled binary will be…

Open to feedback. Built this to scratch personal itch,
figured others had same problem.

If you found it interesting, please do star it makes my day :D