Files
doctate/common/Cargo.toml
T
Brummel 7b4fe87f95 refactor: split server and clients/desktop into standalone workspaces
Add [workspace] / [workspace.package] / [workspace.dependencies]
blocks to server/Cargo.toml and clients/desktop/Cargo.toml so each
becomes a self-contained workspace with its own Cargo.lock.

Remove the root Cargo.toml and Cargo.lock; the repo now hosts
three independent build worlds: server, clients/desktop, experiments.

Convert common/Cargo.toml to concrete versions (was workspace-
inherited from the root). common/ is consumed via path-dep from
all three worlds, but is not itself a workspace -- consumers
unify versions via their own lockfiles. Add common/Cargo.lock to
.gitignore per Cargo lib-only-crate convention.

Verification:
- server/Cargo.lock has 0 eframe/egui/winit entries
- cargo build --release --locked passes in server/
- test split: server 385 + desktop 89 + common 34 = 508 total
- bin output: clients/desktop/target/debug/doctate (named "doctate")
2026-05-02 12:17:50 +02:00

20 lines
713 B
TOML

[package]
name = "doctate-common"
version = "0.1.0"
edition = "2024"
description = "Shared types and helpers between doctate server and clients"
# Concrete versions instead of workspace inheritance: this crate is
# consumed via path-dep from server/, clients/desktop/, and experiments/,
# so it cannot rely on a parent [workspace] that no longer exists at
# the repo root. Versions are kept in sync with each consumer's
# [workspace.dependencies] block manually.
[dependencies]
serde = { version = "1", features = ["derive"] }
uuid = { version = "1", features = ["v4", "serde"] }
time = { version = "0.3.47", features = ["local-offset", "parsing", "formatting", "macros"] }
[dev-dependencies]
serde_json = "1"