Skip to main content

nargo_types/
context.rs

1//! Context module for Nargo.
2
3/// Nargo execution context.
4#[derive(Debug, Clone)]
5pub struct NargoContext {
6    /// Configuration.
7    pub config: serde_json::Value,
8}
9
10impl NargoContext {
11    /// Create a new context with the given configuration.
12    pub fn new(config: serde_json::Value) -> Self {
13        Self { config }
14    }
15}