spacetimedb-cli 0.7.0

A command line interface for SpacetimeDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::{Path, PathBuf};

use crate::util::{self, ModuleLanguage};

use crate::tasks::rust::build_rust;

use self::csharp::build_csharp;

pub fn build(project_path: &Path, skip_clippy: bool, build_debug: bool) -> anyhow::Result<PathBuf> {
    let lang = util::detect_module_language(project_path);
    match lang {
        ModuleLanguage::Rust => build_rust(project_path, skip_clippy, build_debug),
        ModuleLanguage::Csharp => build_csharp(project_path, build_debug),
    }
}

pub mod csharp;
pub mod rust;