Add doctate-common crate for shared types

This commit introduces a new `doctate-common` crate to the workspace.
This crate will house shared data structures and constants used by both
the `doctate-server` and any future clients.

This refactoring helps to:
- Reduce code duplication.
- Improve maintainability by centralizing common logic.
- Define a clear API contract for server-client communication.

The following modules have been added:
- `ack`: Contains `AckResponse` and `AckStatus` for server responses.
- `constants`: Defines shared constants like API endpoints and multipart
  field names.
- `timestamp`: Provides utilities for handling RFC3339 timestamps,
  including conversions to and from filesystem-safe strings.
This commit is contained in:
2026-04-17 15:17:37 +02:00
parent 0a8e66eecd
commit ed5047a3ff
7 changed files with 174 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
[workspace]
members = ["server"]
members = ["server", "doctate-common"]
resolver = "3"
[workspace.package]