[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. \ """ edition = "2018" [dependencies] anyhow = "1.0.20" eventsource = "0.3.0" lazy_static = "1.2.0" log = "0.4.6" serde = { version = "1.0.80", features = ["derive"] } serde_json = "1.0.33" reqwest = "0.9.4" rust-ini = "*" regex = "1.0.6" thiserror = "1.0.5" [dev-dependencies] tempfile = "3.0.4"