cargo-slide 0.1.2

Code-driven presentation engine combining Typst typesetting with a native Rust viewer, developed as part of the Apich workspace backend.
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::Path;

/// Create and initialize a new presentation project directory
pub fn execute(
    name: &str,
    include_rust: bool,
) -> std::result::Result<(), Box<dyn std::error::Error>> {
    let project_dir = Path::new(name);
    if project_dir.exists() {
        return Err(format!("Directory already exists: {name}").into());
    }
    super::init::execute(project_dir, include_rust)
}