chore: use mod with path instead of include in build.rs
This commit is contained in:
parent
df0a909c00
commit
0faaa89c68
1 changed files with 2 additions and 1 deletions
3
build.rs
3
build.rs
|
@ -2,8 +2,9 @@ use std::path::PathBuf;
|
|||
|
||||
use clap::{ArgEnum, CommandFactory};
|
||||
use clap_complete::{generate_to, Shell};
|
||||
use cli::Cli;
|
||||
|
||||
include!("src/cli.rs");
|
||||
#[path = "src/cli.rs"] mod cli;
|
||||
|
||||
fn main() -> std::io::Result<()> {
|
||||
let mut cli = Cli::command();
|
||||
|
|
Loading…
Reference in a new issue