| 19 | |
| 20 | #[derive(Clone, Debug)] |
| 21 | pub struct ParallelConfig { |
| 22 | /// Number of parallel Nuclei instances |
| 23 | pub nuclei_workers: usize, |
| 24 | /// Targets per Nuclei batch |
| 25 | pub nuclei_batch_size: usize, |
| 26 | /// Nuclei concurrency per instance (-c flag) |
| 27 | pub nuclei_concurrency: usize, |
| 28 | /// Rate limit (requests per second, 0 = unlimited) |
| 29 | pub rate_limit: usize, |
| 30 | /// Delay between batches in milliseconds |
| 31 | pub batch_delay_ms: u64, |
| 32 | /// Cloud scanning workers |
| 33 | pub cloud_workers: usize, |
| 34 | /// Request timeout in seconds |
| 35 | pub timeout_secs: u64, |
| 36 | /// Bulk size for nuclei requests |
| 37 | pub nuclei_bulk_size: usize, |
| 38 | /// Headless bulk size |
| 39 | pub nuclei_headless_bulk: usize, |
| 40 | /// Max retries (0 = no retries for speed) |
| 41 | pub nuclei_retries: usize, |
| 42 | /// Max host errors before skipping |
| 43 | pub nuclei_max_host_errors: usize, |
| 44 | /// Response size limit in bytes (0 = no limit) |
| 45 | pub nuclei_response_size_limit: usize, |
| 46 | /// Enable turbo mode (maximum speed settings) |
| 47 | pub turbo_mode: bool, |
| 48 | } |
| 49 | |
| 50 | impl Default for ParallelConfig { |
| 51 | fn default() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected