GetBaseSidecarDirectory

Function GetBaseSidecarDirectory 

Source
fn GetBaseSidecarDirectory() -> Result<PathBuf>
Expand description

Returns the root directory where all sidecars will be stored. This is determined dynamically by navigating up from the executable’s location and detecting the SideCar project root. It handles both:

  • Standalone builds: .../SideCar/Target/release/
  • Workspace builds: .../workspace/Target/release/SideCar (where the workspace root contains multiple crates including Element/SideCar)