mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
b82c5672fc
Summary: Update versions for several of the crates we depend on. Reviewed By: danobi Differential Revision: D29165283 fbshipit-source-id: baaa9fa106b7dad000f93d2eefa95867ac46e5a1
34 lines
1.3 KiB
TOML
34 lines
1.3 KiB
TOML
# @generated by autocargo from //eden/hg-server/lib/commitcloudsubscriber:commitcloudsubscriber
|
|
[package]
|
|
name = "commitcloudsubscriber"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
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.
|
|
'''
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
eventsource = "0.5"
|
|
filetime = "0.2.9"
|
|
lazy_static = "1.0"
|
|
log = { version = "0.4.8", features = ["kv_unstable"] }
|
|
regex = "1.4.2"
|
|
reqwest = { version = "0.10", features = ["json", "rustls-tls", "stream"] }
|
|
rust-ini = { version = "0.17", features = ["inline-comment"] }
|
|
serde = { version = "1.0.126", features = ["derive", "rc"] }
|
|
serde_json = { version = "1.0", features = ["float_roundtrip"] }
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1"
|