nargo-types 0.0.1

Nargo common types and error handling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Context module for Nargo.

/// Nargo execution context.
#[derive(Debug, Clone)]
pub struct NargoContext {
    /// Configuration.
    pub config: serde_json::Value,
}

impl NargoContext {
    /// Create a new context with the given configuration.
    pub fn new(config: serde_json::Value) -> Self {
        Self { config }
    }
}