ninja-files-data 0.1.0

Core data structures for ninja files
Documentation
mod builder;
use crate::{Command, Variable, VariableId};
pub use builder::*;
use std::collections::BTreeMap;

#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Rule {
    pub command: Command,
    pub shadow: BTreeMap<VariableId, Variable>,
    pub generator: bool,
}

impl Rule {
    pub fn create(command: Command) -> Self {
        Rule {
            command,
            generator: false,
            shadow: BTreeMap::new(),
        }
    }
}