2018-05-24 22:12:47 +03:00
|
|
|
[package]
|
|
|
|
name = "commitcloudsubscriber"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = """ \
|
|
|
|
Cross platform client for subscribing to Commit Cloud eventsource (http server-sent events) \
|
|
|
|
The workflow is the following: \
|
|
|
|
* define 'subscription' as a unique [repo_name, workspace] pair \
|
|
|
|
* read set of 'subscribers', defined as [repo_name, workspace, repo_root] \
|
|
|
|
* runs a Commit Cloud eventsource listener in a separate thread for every 'subscription' \
|
|
|
|
(and a set of 'subscribers' (repo_roots)) \
|
|
|
|
* triggers `hg cloud sync` command on notifications in all 'subscribers' (repo_roots) \
|
|
|
|
for a given 'subscription' \
|
|
|
|
* the library also contains a module to find OAuth token, \
|
|
|
|
this logic should be in sync with `hg cloud auth` command. \
|
|
|
|
"""
|
2019-07-02 07:39:13 +03:00
|
|
|
edition = "2018"
|
2018-05-24 22:12:47 +03:00
|
|
|
|
|
|
|
[dependencies]
|
2019-11-22 19:51:58 +03:00
|
|
|
anyhow = "1.0.20"
|
2018-11-16 05:18:31 +03:00
|
|
|
eventsource = "0.3.0"
|
|
|
|
lazy_static = "1.2.0"
|
|
|
|
log = "0.4.6"
|
2019-09-12 08:00:24 +03:00
|
|
|
serde = { version = "1.0.80", features = ["derive"] }
|
2018-11-16 05:18:31 +03:00
|
|
|
serde_json = "1.0.33"
|
|
|
|
reqwest = "0.9.4"
|
2018-05-24 22:12:47 +03:00
|
|
|
rust-ini = "*"
|
2018-11-16 05:18:31 +03:00
|
|
|
regex = "1.0.6"
|
2019-11-15 09:02:57 +03:00
|
|
|
thiserror = "1.0.5"
|
2018-05-24 22:12:47 +03:00
|
|
|
|
2018-08-02 21:51:42 +03:00
|
|
|
[dev-dependencies]
|
2018-11-16 05:18:31 +03:00
|
|
|
tempfile = "3.0.4"
|