Skip to content

Commit c13c124

Browse files
authored
Merge pull request #35 from mrshmllow/mrshmllow/compile-flag-no-tags
optionally remove tag commands with cargo feature flag
2 parents ccf159c + 719e256 commit c13c124

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

crates/bot/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ strip-ansi-escapes = "0.2.0"
2020
thiserror = "2"
2121
tokio = { version = "1", features = ["rt", "macros", "sync"] }
2222
tracing = "0.1"
23+
24+
[features]
25+
default = ["tags"]
26+
tags = []

crates/bot/src/bot.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,9 +788,13 @@ pub async fn run() {
788788
source(),
789789
ast(),
790790
version(),
791+
#[cfg(feature = "tags")]
791792
tag(),
793+
#[cfg(feature = "tags")]
792794
set_tag(),
795+
#[cfg(feature = "tags")]
793796
delete_tag(),
797+
#[cfg(feature = "tags")]
794798
list_tags(),
795799
],
796800
allowed_mentions: Some(CreateAllowedMentions::new()),

0 commit comments

Comments
 (0)