From cec30d0c0e92e678879e4e39d99a4128352dedd7 Mon Sep 17 00:00:00 2001 From: Yifei Date: Wed, 25 Oct 2023 16:59:17 +0800 Subject: [PATCH] feat: add ignore_unused (#246) --- Cargo.lock | 2 +- volo-build/Cargo.toml | 2 +- volo-build/src/workspace.rs | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fe588da2..05a62ce2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2532,7 +2532,7 @@ dependencies = [ [[package]] name = "volo-build" -version = "0.8.0" +version = "0.8.1" dependencies = [ "anyhow", "dirs", diff --git a/volo-build/Cargo.toml b/volo-build/Cargo.toml index db058b1b..9055d4b2 100644 --- a/volo-build/Cargo.toml +++ b/volo-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "volo-build" -version = "0.8.0" +version = "0.8.1" edition.workspace = true homepage.workspace = true repository.workspace = true diff --git a/volo-build/src/workspace.rs b/volo-build/src/workspace.rs index 771b282b..4732b0a5 100644 --- a/volo-build/src/workspace.rs +++ b/volo-build/src/workspace.rs @@ -64,4 +64,9 @@ where self.pilota_builder = self.pilota_builder.plugin(plugin); self } + + pub fn ignore_unused(mut self, ignore_unused: bool) -> Self { + self.pilota_builder = self.pilota_builder.ignore_unused(ignore_unused); + self + } }