Skip to content

Commit b4a57a9

Browse files
committed
chore(config-utils): Integrate into workspace
1 parent 891000c commit b4a57a9

5 files changed

Lines changed: 75 additions & 12 deletions

File tree

Cargo.lock

Lines changed: 38 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ serde_yaml = "0.9.34" # This is the last available version, see https://github.c
8484
# digest 0.11 and signature 3.0, which rsa 0.9 does not support.
8585
sha2 = { version = "0.10.9", features = ["oid"] }
8686
signature = "2.2.0"
87+
similar-asserts = "2.0.0"
8788
snafu = "0.9.2"
8889
stackable-operator-derive = { path = "stackable-operator-derive" }
8990
strum = { version = "0.28.0", features = ["derive"] }
9091
syn = "3.0.3"
9192
sysinfo = "0.39.6"
93+
tempfile = "3.27.0"
9294
time = { version = "0.3.55" }
9395
tokio = { version = "1.53.1", features = ["macros", "rt-multi-thread", "fs"] }
9496
# We use ring instead of aws-lc-rs, as this currently fails to build in "make run-dev"

crates/config-utils/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# The following files are mentioned as an example in the README, so let's exclude them
2+
example.xml
3+
example-password
4+
5+
tests/resources/properties/*.properties
6+
tests/resources/xml/*.xml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# We ideally want something like: https://github.com/j178/prek/issues/1869
2+
---
3+
default_language_version:
4+
node: system
5+
6+
repos:
7+
- repo: local
8+
hooks:
9+
- id: cargo-test-no-default-features
10+
name: cargo-test-no-default-features
11+
language: system
12+
entry: cargo test --no-default-features --package config-utils
13+
stages: [pre-commit, pre-merge-commit]
14+
pass_filenames: false
15+
files: .*\.rs$|Cargo\.toml
16+
17+
- id: cargo-test-all-features
18+
name: cargo-test-no-default-features
19+
language: system
20+
entry: cargo test --all-features --package config-utils
21+
stages: [pre-commit, pre-merge-commit]
22+
pass_filenames: false
23+
files: .*\.rs$|Cargo\.toml

crates/config-utils/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ version = "0.5.0"
44
authors = ["Stackable GmbH <info@stackable.tech>"]
55
license = "Apache-2.0"
66
edition = "2024"
7-
repository = "https://github.com/stackabletech/config-utils"
7+
repository = "https://github.com/stackabletech/operator-rs"
88

99
[dependencies]
1010
# We try hard to have as less dependencies as possible!
11-
clap = { version = "4.6", features = ["derive"] }
12-
snafu = "0.9"
11+
clap.workspace = true
12+
snafu.workspace = true
1313

1414
[dev-dependencies]
15-
rstest = "0.26"
16-
similar-asserts = "2.0"
17-
tempfile = "3.27"
15+
rstest.workspace = true
16+
similar-asserts.workspace = true
17+
tempfile.workspace = true

0 commit comments

Comments
 (0)