fix(example/main): Ignore generated `api.rs` debugging file
This commit is contained in:
parent
bd0b3c7dcf
commit
ed4a113141
|
@ -21,3 +21,5 @@
|
||||||
/target
|
/target
|
||||||
/result
|
/result
|
||||||
/dist
|
/dist
|
||||||
|
|
||||||
|
/src/bin/main/generated_api.rs
|
||||||
|
|
|
@ -22,16 +22,14 @@
|
||||||
|
|
||||||
use std::{env, ffi::c_int, mem};
|
use std::{env, ffi::c_int, mem};
|
||||||
|
|
||||||
use dogs::TrainedDog;
|
|
||||||
use libloading::{Library, Symbol};
|
use libloading::{Library, Symbol};
|
||||||
|
|
||||||
use crate::dogs::DogType;
|
use crate::dogs::{DogType, TrainedDog};
|
||||||
|
|
||||||
include!(concat!(env!("OUT_DIR"), "/api.rs"));
|
include!(concat!(env!("OUT_DIR"), "/api.rs"));
|
||||||
|
|
||||||
// run `cargo r --bin api > ./src/bin/main/api.rs` to output the generated api
|
// run `cargo run --bin api > ./src/bin/main/generated_api.rs` to output the generated api
|
||||||
// mod api;
|
// mod generated_api;
|
||||||
// pub use api::*;
|
|
||||||
|
|
||||||
fn handle_cmd(cmd: Commands) {
|
fn handle_cmd(cmd: Commands) {
|
||||||
match cmd {
|
match cmd {
|
||||||
|
|
Reference in New Issue