~starkingdoms/starkingdoms

ref: 42e744a2ddba94f4b64dfb3af3b495d3b97186f4 starkingdoms/spacetime_rs/src/configure/mod.rs -rw-r--r-- 376 bytes
42e744a2 — ghostlyzsh yay we have thrusters oh wait did i forget to push landing thruster handling (yes, yes i did) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::ninja::NinjaWriter;
use std::fs::File;
use std::io;
use std::path::Path;

pub mod asset;
pub mod client;
pub mod rust;

pub fn create_writer(root: &Path) -> Result<NinjaWriter<File>, io::Error> {
    let mut w = NinjaWriter::new(File::create(root.join("build.ninja"))?);
    w.comment("Generated by spacetime")?;
    w.comment("Do not edit manually")?;
    Ok(w)
}