Create Cargo workspace at v2/ level with members: src-tauri, bterminal-core, bterminal-relay. Extract PtyManager and SidecarManager into shared bterminal-core crate with EventSink trait for abstracting event emission. TauriEventSink wraps AppHandle. src-tauri pty.rs and sidecar.rs become thin re-exports. Move Cargo.lock to workspace root. Add v2/target/ to .gitignore.
13 lines
312 B
TOML
13 lines
312 B
TOML
[package]
|
|
name = "bterminal-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Shared PTY and sidecar management for BTerminal"
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
log = "0.4"
|
|
portable-pty = "0.8"
|
|
uuid = { version = "1", features = ["v4"] }
|