runmat_test/protocol/
limits.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Copy, Debug, Eq, PartialEq, Serialize, Deserialize)]
4pub struct ProtocolLimits {
5 pub max_message_bytes: u32,
6 pub max_tests_per_plan: u32,
7 pub max_commands_per_invocation: u32,
8 pub max_output_bytes_per_attempt: u32,
9 pub max_diagnostics_per_attempt: u32,
10 pub max_artifacts_per_attempt: u32,
11 pub max_coverage_sites_per_attempt: u32,
12}
13
14impl Default for ProtocolLimits {
15 fn default() -> Self {
16 Self {
17 max_message_bytes: 16 * 1024 * 1024,
18 max_tests_per_plan: 100_000,
19 max_commands_per_invocation: 256,
20 max_output_bytes_per_attempt: 1024 * 1024,
21 max_diagnostics_per_attempt: 10_000,
22 max_artifacts_per_attempt: 1_000,
23 max_coverage_sites_per_attempt: 1_000_000,
24 }
25 }
26}