Skip to content

Commit 1ad5ea9

Browse files
tombelieberclaude
andcommitted
refactor: wire claude-view-types into workspace + add codegen propagation
Complete the types crate extraction wiring: - Replace pub mod with pub use re-exports in core/lib.rs - Delete 4 original files from core (2,772 LOC) - Add claude-view-types dep to core + 6 downstream crates - Propagate codegen feature through core → types - Register route_deps module in server-types - Implement DbDeps trait on AppState - Add ISP doc to coaching route - Regenerate workspace-hack Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1e6377f commit 1ad5ea9

18 files changed

Lines changed: 37 additions & 2779 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ http-body-util = "0.1"
102102
bytes = "1"
103103

104104
# Internal crates
105+
claude-view-types = { path = "crates/types" }
105106
claude-view-core = { path = "crates/core" }
106107
claude-view-db = { path = "crates/db" }
107108
claude-view-search = { path = "crates/search" }

crates/core/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ rust-stemmers = "1.2"
2323
reqwest = { workspace = true }
2424
utoipa = { version = "5" }
2525
serde_yaml = "0.9"
26+
claude-view-types = { workspace = true }
2627
workspace-hack = { version = "0.1", path = "../../workspace-hack" }
2728

2829
[features]
2930
# Gate ts-rs file generation behind this feature so `cargo test` alone
3031
# never overwrites formatted types. Only generate-types.sh enables this.
31-
codegen = []
32+
codegen = ["claude-view-types/codegen"]
3233

3334
[dev-dependencies]
3435
tempfile = { workspace = true }

0 commit comments

Comments
 (0)