Commit Graph

10 Commits

Author SHA1 Message Date
Andres Suarez
e936dde821 Apply rustfmt to all rust files
Reviewed By: jsgf

Differential Revision: D14578283

fbshipit-source-id: 9b4a7b1fd445fd033b64c6af04ee52b27eefb616
2019-07-10 20:18:48 -07:00
Greg Cowan
15b886ef45 Transition fbcode Rust crates to 2018 edition
Summary: Marking all Cargo.tomls in fbcode as 2018 edition.

Reviewed By: jsgf

Differential Revision: D15951175

fbshipit-source-id: edf18449c214ee1ff285d6a2cb61839aaf58a8cd
2019-06-24 13:15:55 -07:00
Mark Thomas
1d329cae5d rust: update to 2018 edition
Summary:
Update all rust crates that compile on Rust 2018 to use the 2018 edition.

The `commitcloudsubscriber` crate only compiles with Rust 2015, so make that
explicit in `Cargo.toml`.

Reviewed By: farnz

Differential Revision: D15601648

fbshipit-source-id: 7380e6e695fc3049913af91fcbde105dfe1be4bc
2019-06-03 07:22:36 -07:00
Jeremy Fitzhardinge
6258631c27 Convert scm/hg/lib/hg_watchman_client to Rust 2018
Summary:
Rust 2018 updates to:
  //scm/hg/lib/hg_watchman_client:hg_watchman_client
  //scm/hg/lib/hg_watchman_client:hg_watchman_client-unittest

Reviewed By: wez

Differential Revision: D15465474

fbshipit-source-id: ad7e604cc5915a12fcb80bc43e083a08491dde59
2019-05-22 22:02:10 -07:00
Mark Thomas
3570402d79 watchman_client: use Fallible
Summary:
Use the `Fallible` type alias provided by `failure` rather than defining our
own.

Differential Revision: D13657312

fbshipit-source-id: 55134ee93f1f3aaaeefe5644a4a1f2285603bc1c
2019-01-15 03:50:47 -08:00
Jun Wu
616306543b codemod: use explicit versions in Cargo.toml
Summary:
This is done by running `fix-code.py`. Note that those strings are
semvers so they do not pin down the exact version. An API-compatiable upgrade
is still possible.

Reviewed By: ikostia

Differential Revision: D10213073

fbshipit-source-id: 82f90766fb7e02cdeb6615ae3cb7212d928ed48d
2018-11-15 18:54:06 -08:00
Jun Wu
3adc813687 codemod: add copyright headers
Summary: This is just the result of running `./contrib/fix-code.py $(hg files .)`

Reviewed By: ikostia

Differential Revision: D10213075

fbshipit-source-id: 88577c9b9588a5b44fcf1fe6f0082815dfeb363a
2018-10-26 15:09:12 -07:00
Liubov Dmitrieva
7eb66b2717 watchman rust client for hg: allow fallible deserialization for paths and add tests
Summary: watchman rust client: allow PathBuf fallible deserialization

Reviewed By: wez

Differential Revision: D7939382

fbshipit-source-id: f1d2a2f778ef9dc40ab325346c9428ca0b605750
2018-05-29 13:09:18 -07:00
Liubov Dmitrieva
aa61690c9a watchman rust client for hg: add test for arrays of objects
Summary:
watchman rust client: add tests for arrays of objects

this contains a reproducer test for broken compact arrays in combination with untagged enums

Reviewed By: sunshowers

Differential Revision: D7877495

fbshipit-source-id: 7fc3c05f1590e708a7645f0f9adbfd545e8bae42
2018-05-21 04:30:34 -07:00
Liubov Dmitrieva
44af40467e watchman rust client for hg: hg client
Summary:
Implement fsmonitor interfaces used by Mercurial fsmonitor extension, namely:

 - query_dirs
 - query_files
 - state_enter
 - state_leave

Reviewed By: quark-zju

Differential Revision: D7876428

fbshipit-source-id: 45c7a23bd0da4dcedcc473d75ac75fbd006a599a
2018-05-21 04:30:33 -07:00