9 releases (1 stable)

new 1.0.0 Dec 10, 2024
0.9.0 Oct 31, 2024
0.8.1-pre Oct 13, 2024
0.6.0 Jun 29, 2024
0.2.0 Nov 30, 2020

#257 in Web programming

Download history 151/week @ 2024-08-22 154/week @ 2024-08-29 118/week @ 2024-09-05 151/week @ 2024-09-12 162/week @ 2024-09-19 272/week @ 2024-09-26 193/week @ 2024-10-03 460/week @ 2024-10-10 224/week @ 2024-10-17 127/week @ 2024-10-24 457/week @ 2024-10-31 388/week @ 2024-11-07 293/week @ 2024-11-14 300/week @ 2024-11-21 368/week @ 2024-11-28 335/week @ 2024-12-05

1,457 downloads per month
Used in taskchampion-lib

MIT license

3MB
10K SLoC

This crate implements the core of TaskChampion, the replica.

Users of this crate can manipulate a task database using this API, including synchronizing that task database with others via a synchronization server.

Example uses of this crate:

  • user interfaces for task management, such as mobile apps, web apps, or command-line interfaces
  • integrations for task management, such as synchronization with ticket-tracking systems or request forms.

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 type.

Task Storage

Replicas access the task database via a storage object. Create a storage object with StorageConfig.

The storage module supports pluggable storage for a replica's data. An implementation is provided, but users of this crate can provide their own implementation as well.

Server

Replica synchronization takes place against a server. Create a server with ServerConfig.

The server module defines the interface a server must meet. Users can define their own server impelementations.

Feature Flags

Support for some optional functionality is controlled by feature flags.

  • server-aws - sync to Amazon Web Services
  • server-gcp - sync to Google Cloud Platform
  • server-sync - sync to the taskchampion-sync-server
  • sync - enables all of the sync features above
  • bundled - activates bundling system libraries like sqlite
  • tls-native-roots - use native (system) TLS roots, instead of those bundled with rustls, by (indirectly) enabling the rustls feature rustls-tls-native-roots.

By default, sync and bundled are enabled.

See Also

See the TaskChampion Book for more information about the design and usage of the tool.

Minimum Supported Rust Version (MSRV)

This crate supports Rust version 1.73.0 and higher.

Dependencies

~24–43MB
~722K SLoC