Commit Graph

10 Commits

Author SHA1 Message Date
Siddharth Agarwal
de9df8c5e2 remove deprecated tokio APIs from filebookmarks
Summary:
I'm going to factor out some of this code into a new crate, and I want
to get these changes out of the way first.

Reviewed By: lukaspiatkowski

Differential Revision: D5924471

fbshipit-source-id: 7007638ce688e62397637ff6f9a2e51247ec9312
2017-09-28 22:10:04 -07:00
Dzmitry Dulko
63e92b7825 Remove usage of deprecated Tokio APIs
Summary: Switch to new futures API

Reviewed By: sid0

Differential Revision: D5888635

fbshipit-source-id: 22c06797ee62ce08132526369764607f3a73ceef
2017-09-23 10:50:20 -07:00
Jeremy Fitzhardinge
faa58a1052 mononoke: bookmarks: use ! for membookmarks errors
Summary: membookmarks can't fail, so use `!` for its `Error` type

Reviewed By: sid0

Differential Revision: D5849875

fbshipit-source-id: 5dbb4edf9bb57dde55877d2c90936b51dcc5d7ff
2017-09-19 16:11:54 -07:00
Siddharth Agarwal
81f2ac473b make bookmark error type implement std::error::Error
Summary: All its users need this, and it makes sense.

Reviewed By: jsgf

Differential Revision: D5847753

fbshipit-source-id: 042c7b5637e5f83918fa9bc5d131c8745d7bbc3e
2017-09-18 00:35:52 -07:00
Siddharth Agarwal
a74542da60 update and pull in uuid + subprocess
Summary:
Finally got an update working by removing the `mysql_async` crate.

Some notes:

* The `mysql_async` crate was responsible in this case: see https://github.com/rust-lang/cargo/issues/4066#issuecomment-328210204 for why.
* tokio/futures deprecated a bunch of stuff. I've filed a TODO for now.
* We finally pulled in error-chain 0.11, which has a bunch of nice improvements.

Reviewed By: kulshrax

Differential Revision: D5798282

fbshipit-source-id: a38a7b17ee0205428e2ea63334722aa408582493
2017-09-08 17:05:38 -07:00
Arun Kulshreshtha
8b6310dcef Switch from url to percent_encoding crate in FileBookmarks
Summary:
The url::percent_encoding module was split into its own crate. Use
that instead.

Reviewed By: jsgf

Differential Revision: D5769525

fbshipit-source-id: 4d95c5d791e486f56a16091ffa5114b3cfbfd47e
2017-09-07 10:50:55 -07:00
Jeremy Fitzhardinge
144bea971a mononoke: bookmarks: add helpers for boxing Bookmarks trait objects
Summary:
Add BoxedBookmark to assist in boxing a Bookmark trait, and implement Bookmark
for Box<_> and Arc<_> Bookmark trait objects.

Reviewed By: sid0

Differential Revision: D5540675

fbshipit-source-id: 7582adbd2858f6814d57b7e54089b922886a4d54
2017-08-02 17:43:24 -07:00
Jeremy Fitzhardinge
09b25e1507 mononoke: bookmarks: fold ListBookmarks into Bookmarks
Summary:
In practice, no users of Bookmarks will not want listing, and all
implementations need to be able to support it.

Reviewed By: StanislavGlebik

Differential Revision: D5540672

fbshipit-source-id: d64a3894c7cd14d329bd23809525935461289bc3
2017-08-02 17:43:24 -07:00
Jeremy Fitzhardinge
6cfc6704b6 mononoke: stockbookmarks: make Error a parameter
Summary: Allow the error type to be any type the internal errors can be converted to.

Reviewed By: sid0

Differential Revision: D5540671

fbshipit-source-id: 1077132d25bcc13ba2a3a509c916f2e07ac10dcf
2017-08-02 17:43:24 -07:00
facebook-github-bot
2b6af6b941 Initial commit
fbshipit-source-id: f75baa4ff6aa71973f677b752d7aba582cf4927f
2017-07-27 18:00:19 -07:00