Commit 8c6eaf3
committed
refactor(Mountain/gRPC): Restructure Vine IPC code generation
- Moved `Proto2/Vine.proto` to `Proto/Vine.proto` and removed header comments
- Deleted old gRPC build script (`Proto2/Build.rs`) and generated module (`Source/Vine/Generated.rs`)
- Added new generated files using `prost` output: `vine_ipc.rs` and updated `mod.rs`
- Integrated gRPC compilation into main `build.rs` using `tonic-build`
- Added required dependencies (`tonic-build`, `prost`) to `Cargo.toml`
This refactor aligns with Land's final architecture by:
1. Standardizing the IPC layer (`Vine`) directory structure
2. Switching to `prost` for Protocol Buffers implementation (used in `tonic`)
3. Consolidating build processes - Tauri version embedding and gRPC generation now coexist in `build.rs`
4. Improving maintainability through proper error propagation in build scripts
The changes ensure robust gRPC communication between `Mountain` and `Cocoon`, critical for implemented workflows like extension hosting, file operations, and command execution. Generated code structure follows Rust best practices with explicit module inclusion.1 parent c9c7330 commit 8c6eaf3
7 files changed
Lines changed: 1007 additions & 56 deletions
File tree
- Proto2
- Proto
- Source/Vine
- Generated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments