macOS
brew install wegglilocal Homebrew formula metadata
brew / rang 11975
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de weggli pour les workflows d'agents IA.
installation
brew install wegglilocal Homebrew formula metadata
sudo apk add weggliAlpine Linux edge package indexes · weggli · Source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#wegglinixpkgs package indexes · pkgs/by-name/we/weggli/package.nix · Source: api.github.com
sudo zypper install weggliopenSUSE Tumbleweed package metadata · weggli · Source: download.opensuse.org
aperçu
Fast and robust semantic search tool for C and C++ codebases
historique
weggli is a Rust semantic-search tool for C and C++ codebases, designed for security researchers who want fast, code-shaped queries over large or incomplete source trees. Its README says it matches user-provided patterns on abstract syntax trees and uses a query language that resembles C and C++.
The current GitHub repository was created in September 2021, and crates.io metadata shows package publication beginning in October 2021. The README states that weggli is inspired by Semgrep, Coccinelle, joern, and CodeQL, but intentionally makes different tradeoffs for C/C++ review.
Those tradeoffs define the project: first-class support for modern C++ constructs, minimal setup without requiring a successful build, interactive performance, and greedy matching that finds useful variants even at the cost of false positives. The implementation is built on tree-sitter C and C++ grammars, with queries translated into tree-sitter query machinery plus weggli-specific behavior.
weggli's adoption is strongest in vulnerability research and manual code-review circles rather than general developer search. A 2024 HN Security article described converting C/C++ vulnerability patterns from Semgrep into weggli queries and using the tool to identify hotspots such as buffer overflows, integer issues, format strings, memory-management mistakes, and command-injection patterns.
By July 2026, the repository had about 2.5 thousand GitHub stars, which is sizable for a specialized security CLI. Its package-manager niche is clear: it gives reviewers a fast semantic grep for C and C++ without requiring a full CodeQL database, compiler build, or heavyweight SAST workflow.
A typical invocation is `weggli <PATTERN> <PATH>`, where the pattern is written in a C/C++-like language with metavariables and wildcards. For example, patterns can look for a stack buffer followed by a `memcpy` call, suspicious arithmetic before allocation, or API-specific call sequences.
In practice, users run weggli interactively while reading source: write a pattern, inspect matches, refine the query, and then manually audit nearby code. It is especially useful for variant analysis after one bug is found and for quickly mapping attack-surface idioms in unfamiliar C/C++ projects.
weggli is package-nerd significant because it is the small, installable middle ground between `grep` and heavyweight static-analysis platforms. It makes AST-aware C/C++ searching feel like a fast CLI habit rather than an infrastructure project.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
weggli | exécutable | exécutable indexé | Découvert depuis l'index local des exécutables. |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
métadonnées d'installation
| Clé du paquet | brew:weggli |
|---|---|
| Version | 0.2.4 |
| Gestionnaire de paquets | Homebrew |
| Page d'accueil | https://github.com/weggli-rs/weggli |
| Dépôt | https://github.com/weggli-rs/weggli |
| Bouteille | non enregistré |
| Service | aucun déclaré |
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
weggli
nix profile install nixpkgs#weggliweggli 0.2.4-r1
Semantic search tool for C and C++ codebases
https://github.com/googleprojectzero/weggli
sudo apk add weggliweggli 0.2.4-2.13
A semantic search tool for C and C++ codebases
https://github.com/googleprojectzero/weggli
sudo zypper install wegglipiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.