Skip to content

Commit f3a0923

Browse files
stackable-operator: Add feature test-support
1 parent c4ff8f5 commit f3a0923

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

crates/stackable-operator/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ repository.workspace = true
99

1010
[features]
1111
default = ["crds"]
12-
full = ["client-feature-gates", "crds", "certs", "time", "webhook", "kube-ws"]
12+
full = ["client-feature-gates", "crds", "certs", "test-support", "time", "webhook", "kube-ws"]
1313

1414
client-feature-gates = ["dep:winnow"]
1515
crds = ["dep:stackable-versioned"]
1616
certs = ["dep:stackable-certs"]
17+
test-support = []
1718
time = ["stackable-shared/time"]
1819
webhook = ["dep:stackable-webhook"]
1920
kube-ws = ["kube/ws"]

crates/stackable-operator/src/v2/macros/attributed_string_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ macro_rules! attributed_string_type {
187187
}
188188
}
189189

190-
#[cfg(test)]
190+
#[cfg(any(feature = "test-support", test))]
191191
impl $name {
192192
#[allow(dead_code)]
193193
pub fn from_str_unsafe(s: &str) -> Self {

0 commit comments

Comments
 (0)