use ServerConfig::into_server instead of server::from_config

This commit is contained in:
Dustin J. Mitchell 2021-01-10 21:35:24 -05:00
parent 15ffc62279
commit b004b6cb93
6 changed files with 65 additions and 51 deletions

View file

@ -3,10 +3,14 @@
This crate implements the core of TaskChampion, the [replica](crate::Replica).
# Replica
A TaskChampion replica is a local copy of a user's task data. As the name suggests, several
replicas of the same data can exist (such as on a user's laptop and on their phone) and can
synchronize with one another.
Replicas are accessed using the [`Replica`](crate::replica) type.
# Task Storage
The [`storage`](crate::storage) module supports pluggable storage for a replica's data.
@ -15,7 +19,10 @@ An implementation is provided, but users of this crate can provide their own imp
# Server
Replica synchronization takes place against a server.
Create a server with [`ServerConfig`](crate::ServerConfig).
The [`server`](crate::server) module defines the interface a server must meet.
Users can define their own server impelementations.
# See Also
@ -28,14 +35,15 @@ mod config;
mod errors;
mod replica;
pub mod server;
pub mod storage;
mod task;
mod taskdb;
pub mod storage;
mod utils;
mod workingset;
pub use config::{ReplicaConfig, ServerConfig};
pub use config::ReplicaConfig;
pub use replica::Replica;
pub use server::{Server, ServerConfig};
pub use task::{Priority, Status, Tag, Task, TaskMut};
pub use workingset::WorkingSet;