/** * Cargo/Rust supply-chain scanner. * * Detects supply-chain risks in Cargo.toml, build.rs, and * Rust procedural macros. */ import type { Finding, PatternEntry } from "./types.js"; export declare const CARGO_PATTERNS: PatternEntry[]; /** * Check if a file is a Cargo-related file. */ export declare function isCargoFile(filename: string): boolean; /** * Scan Cargo-related files in a directory. */ export declare function scanCargoFiles(dir: string): Finding[]; /** * Scan content of a Cargo-related file. */ export declare function scanCargoContent(content: string, relativePath: string, fileType: "toml" | "build" | "proc-macro"): Finding[]; //# sourceMappingURL=cargo-scanner.d.ts.map