fix(example/main): Ignore generated `api.rs` debugging file

This commit is contained in:
Benedikt Peetz 2024-03-27 22:32:42 +01:00 committed by Benedikt Peetz
parent bd0b3c7dcf
commit ed4a113141
Signed by: bpeetz
GPG Key ID: B6139BCB07CE946D
2 changed files with 5 additions and 5 deletions

View File

@ -21,3 +21,5 @@
/target
/result
/dist
/src/bin/main/generated_api.rs

View File

@ -22,16 +22,14 @@
use std::{env, ffi::c_int, mem};
use dogs::TrainedDog;
use libloading::{Library, Symbol};
use crate::dogs::DogType;
use crate::dogs::{DogType, TrainedDog};
include!(concat!(env!("OUT_DIR"), "/api.rs"));
// run `cargo r --bin api > ./src/bin/main/api.rs` to output the generated api
// mod api;
// pub use api::*;
// run `cargo run --bin api > ./src/bin/main/generated_api.rs` to output the generated api
// mod generated_api;
fn handle_cmd(cmd: Commands) {
match cmd {