ed5047a3ff
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.
14 lines
315 B
TOML
14 lines
315 B
TOML
[package]
|
|
name = "doctate-common"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description = "Shared types and helpers between doctate server and clients"
|
|
|
|
[dependencies]
|
|
serde = { workspace = true }
|
|
uuid = { workspace = true }
|
|
time = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
serde_json = { workspace = true }
|