From 0faaa89c68cf2ba5795da8a446feb2481c603829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Mon, 25 Jul 2022 09:20:04 +0200 Subject: [PATCH] chore: use mod with path instead of include in build.rs --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index f6c6f92..34258bf 100644 --- a/build.rs +++ b/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();