1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Execution limits for JavaScript invocations.
//!
//! Default values mirror the pinned OverPy reference constants
//! (`src/quickjs.ts`): `MACRO_TIMEOUT_MS = 1000`,
//! `POST_COMPILE_HOOK_TIMEOUT_MS = 2000`, `MAX_RUNTIME_MEMORY_BYTES =
//! 64 * 1024 * 1024`, `MAX_RUNTIME_STACK_BYTES = 512 * 1024`.
use Duration;
/// Resource limits enforced on each JavaScript invocation.
///
/// Every field is applied to the engine that executes a single macro or hook
/// invocation (see [`super::MacroRuntime`]).
pub