Toolverse
All skills

rationalize-deps

by quickwit-oss

Analyze Cargo.toml dependencies and attempt to remove unused features to reduce compile times and binary size

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Backend

About this skill

Analyze Cargo.toml dependencies and attempt to remove unused features to reduce compile times and binary size

How to use

  1. Określ, które crate'y chcesz przeanalizować — możesz wybrać konkretną bibliotekę (np. "tokio", "serde"), konkretny moduł workspace'u (np. "quickwit-search") lub "all", aby przeskanować całe repozytorium.

  2. Wyświetl listę zależności w pliku Cargo.toml, które nie mają ustawionego default-features = false i mogą zawierać zbędne funkcje. Uruchom cargo tree -p nazwa-crate -f "{p} {f}" --edges features, aby zobaczyć, które funkcje są faktycznie wykorzystywane.

  3. Dla każdej kandydackiej zależności sprawdź jej domyślne funkcje na stronie crates.io lub w jej Cargo.toml. Użyj cargo metadata --format-version=1 | jq '.packages[] | select(.name == "nazwa-crate") | .features', aby uzyskać pełną listę dostępnych funkcji.

  4. Spróbuj wyłączyć domyślne funkcje, zmieniając wpis w Cargo.toml z some-crate = { version = "1.0" } na some-crate = { version = "1.0", default-features = false }.

  5. Uruchom cargo check --workspace (lub cargo check -p nazwa-pakietu dla szybszej weryfikacji). Jeśli kompilacja się nie powiedzie, przeczytaj komunikaty błędów, aby zidentyfikować wymagane funkcje, a następnie dodaj je jawnie: some-crate = { version = "1.0", default-features = false, features = ["potrzebna-funkcja"] }.

  6. Powtórz weryfikację kompilacji, aż wszystkie zmiany będą działać poprawnie. Zapisz zoptymalizowaną konfigurację zależności w Cargo.toml.

Related skills

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Backend
79340

dotnet-backend

by anton-abyzov

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET

Backend
92296

video-downloader

by ComposioHQ

Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.

Backend
50173

himalaya

by openclaw

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

Backend
35108