Skip to content

Commit 7bf868a

Browse files
committed
fix: Make kanuni-cli standalone project independent of private workspace
- Remove workspace dependencies - Add [workspace] table to mark as standalone - Fix Dockerfile to build without workspace context - Exclude public projects from private workspace
1 parent c272eec commit 7bf868a

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

Cargo.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ clap = { version = "4.5", features = ["derive", "cargo", "env", "wrap_help"] }
2121
clap_complete = "4.5"
2222

2323
# Async runtime
24-
tokio = { workspace = true }
24+
tokio = { version = "1.38", features = ["full"] }
2525

2626
# HTTP client for API calls
2727
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls", "multipart"], default-features = false }
2828

2929
# Serialization
30-
serde = { workspace = true }
31-
serde_json = { workspace = true }
30+
serde = { version = "1.0", features = ["derive"] }
31+
serde_json = "1.0"
3232

3333
# Error handling
34-
anyhow = { workspace = true }
35-
thiserror = { workspace = true }
34+
anyhow = "1.0"
35+
thiserror = "1.0"
3636

3737
# Terminal UI
3838
colored = "2.1"
@@ -47,8 +47,8 @@ directories = "5.0"
4747
toml = "0.8"
4848

4949
# Logging
50-
tracing = { workspace = true }
51-
tracing-subscriber = { workspace = true }
50+
tracing = "0.1"
51+
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
5252

5353
# Utils
5454
chrono = { version = "0.4", features = ["serde"] }
@@ -71,6 +71,9 @@ tempfile = "3.10"
7171
assert_cmd = "2.0"
7272
predicates = "3.1"
7373

74+
[workspace]
75+
# This marks this as a standalone project, not part of parent workspace
76+
7477
[profile.release]
7578
opt-level = 3 # Maximum optimization
7679
lto = true # Enable Link Time Optimization

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ RUN apt-get update && apt-get install -y \
1313
# Create app directory
1414
WORKDIR /build
1515

16-
# Copy workspace files
17-
COPY Cargo.toml Cargo.lock ./
18-
COPY workspace-deps/Cargo.toml ./workspace-deps/
16+
# Copy project files
17+
COPY Cargo.toml ./
1918
COPY src ./src
2019

2120
# Build the binary
22-
RUN cargo build --release --locked
21+
RUN cargo build --release
2322

2423
# Runtime stage
2524
FROM debian:bookworm-slim

0 commit comments

Comments
 (0)