fix(example/main): Ignore generated `api.rs` debugging file
This commit is contained in:
parent
bd0b3c7dcf
commit
ed4a113141
|
@ -21,3 +21,5 @@
|
|||
/target
|
||||
/result
|
||||
/dist
|
||||
|
||||
/src/bin/main/generated_api.rs
|
||||
|
|
|
@ -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 {
|
||||
|
|
Reference in New Issue