Commit Graph

167 Commits

Author SHA1 Message Date
Thomas Orozco
22e700ccf3 (reland) rust/third-party: update to futures 0.3.28
Summary:
Note: this is a re-land of D44623815, which was was reverted because of a land race with D44626072

In particular this fixes `FlattenUnordered` having a nasty deadlock, but also
some other  bugs:

```
# 0.3.28 - 2023-03-30

* Update to syn 2. This raises MSRV of utility crates to 1.56. (#2730, #2733)
* Fix bug in `FlattenUnordered` (#2726, #2728)

# 0.3.27 - 2023-03-11

* Add `TryFlattenUnordered` (#2577, #2590, #2606, #2607)
* Add `AbortHandle::is_aborted` (#2710)
* Add `AbortRegistration::handle` (#2712)
* Make `BiLock` strict-provenance compatible (#2716)

# 0.3.26 - 2023-01-30

* Add `Either::as_pin_mut` and `Either::as_pin_ref` (#2691)
* Add `Shared::ptr_eq` and `Shared::ptr_hash` (#2691)
* Implement `FusedStream` for `Buffered` (#2676)
* Implement `FusedStream` for all streams in `ReadyChunks` (#2693)
* Fix bug in `FuturesOrdered::push_front` (#2664)
* Remove `Fut::Output: Clone` bounds from some `Shared` methods (#2662)
* Remove `T: Debug` bounds from `Debug` implementations of `mpsc` and `oneshot` types (#2666, #2667)

# 0.3.25 - 2022-10-20

* Fix soundness issue in `join!` and `try_join!` macros (#2649)
* Implement `Clone` for `sink::Drain` (#2650)

# 0.3.24 - 2022-08-29

* Fix incorrect termination of `select_with_strategy` streams (#2635)

# 0.3.23 - 2022-08-14

* Work around MSRV increase due to a cargo bug.
```

Reviewed By: zertosh

Differential Revision: D44632588

fbshipit-source-id: bdd87cb02b3aef63a65b1f9b852579225adfedbd
2023-04-04 10:14:43 -07:00
Mark Isaacson
3463e3d61b Revert D44623815: rust/third-party: update to futures 0.3.28
Differential Revision:
D44623815

Original commit changeset: 343ddb9277e1

Original Phabricator Diff: D44623815

fbshipit-source-id: 2d99e8d24fd9b13343dfeb082788b0a6258fbe8c
2023-04-03 09:25:13 -07:00
Thomas Orozco
159cf5c5e6 rust/third-party: update to futures 0.3.28
Summary:
In particular this fixes `FlattenUnordered` having a nasty deadlock, but also
some other  bugs:

```
# 0.3.28 - 2023-03-30

* Update to syn 2. This raises MSRV of utility crates to 1.56. (#2730, #2733)
* Fix bug in `FlattenUnordered` (#2726, #2728)

# 0.3.27 - 2023-03-11

* Add `TryFlattenUnordered` (#2577, #2590, #2606, #2607)
* Add `AbortHandle::is_aborted` (#2710)
* Add `AbortRegistration::handle` (#2712)
* Make `BiLock` strict-provenance compatible (#2716)

# 0.3.26 - 2023-01-30

* Add `Either::as_pin_mut` and `Either::as_pin_ref` (#2691)
* Add `Shared::ptr_eq` and `Shared::ptr_hash` (#2691)
* Implement `FusedStream` for `Buffered` (#2676)
* Implement `FusedStream` for all streams in `ReadyChunks` (#2693)
* Fix bug in `FuturesOrdered::push_front` (#2664)
* Remove `Fut::Output: Clone` bounds from some `Shared` methods (#2662)
* Remove `T: Debug` bounds from `Debug` implementations of `mpsc` and `oneshot` types (#2666, #2667)

# 0.3.25 - 2022-10-20

* Fix soundness issue in `join!` and `try_join!` macros (#2649)
* Implement `Clone` for `sink::Drain` (#2650)

# 0.3.24 - 2022-08-29

* Fix incorrect termination of `select_with_strategy` streams (#2635)

# 0.3.23 - 2022-08-14

* Work around MSRV increase due to a cargo bug.
```

Reviewed By: zertosh

Differential Revision: D44623815

fbshipit-source-id: 343ddb9277e1703104e516d07fe0610b5020930a
2023-04-03 08:30:49 -07:00
Pierre Chevalier
c0a82f23bd Remove useless into_iter() calls
Summary:
In Rust 1.68.0, the `useless_conversion` clippy lint [got smarter](https://github.com/rust-lang/rust-clippy/pull/10020).
Fix all instances of that lint in Mononoke.

Reviewed By: markbt

Differential Revision: D44378069

fbshipit-source-id: acfd6c77c6a400830c378b4040661323e7232441
2023-03-24 13:41:24 -07:00
Rajiv Sharma
1bd3622990 Clippy 3/N
Summary: As in title

Reviewed By: YousefSalama

Differential Revision: D43835146

fbshipit-source-id: e0f99b02c9c514cb86f51cea2e335bef19041622
2023-03-10 06:09:26 -08:00
Mark Juggurnauth-Thomas
3d85662df3 caching_ext: add cache handler factory
Summary: Collect construction of cache handlers into a single cache handler factory.  This moves code that is scattered across the codebase into a single cache handler constructor.  We will use this to better control when caches are enabled and which caches are in use.

Reviewed By: RajivTS

Differential Revision: D43410855

fbshipit-source-id: cb38ec7a03673fcbdb7e3e381e7bae4fe9c0d626
2023-03-01 02:10:41 -08:00
Mark Juggurnauth-Thomas
3929956341 newfilenodes: use memcache handler for mocks and noops
Summary: The `newfilenodes` crate implements its own no-op and mock memcache handler.  Switch to using the memcache handler's versions.

Differential Revision: D43410857

fbshipit-source-id: adf973924fa70c33794eb02370a19a14317d4960
2023-02-23 11:51:31 -08:00
Mark Juggurnauth-Thomas
f6583ed36a newfilenodes: use cachelib handler
Summary: The `newfilenodes` crate implements its own mock cache, rather than using the common one via the cachelib handler.  Change to using the common one.

Differential Revision: D43410858

fbshipit-source-id: 915255a67dc545e7678a9283fb81ddbe1c820b55
2023-02-23 11:51:31 -08:00
Mark Juggurnauth-Thomas
df70f3e7a4 newfilenodes: use filenodes types for caching
Summary: The `newfilenodes` crate has wrappers around `FilenodeInfo` and `FilenodeRange`, however these are no longer necessary and can be removed.

Differential Revision: D43410859

fbshipit-source-id: 08171581f6fdda3b711aa0c04996c90231328710
2023-02-23 11:51:31 -08:00
Mark Juggurnauth-Thomas
d18bcf9903 filenodes: remove FilenodeRangeResult
Summary:
The `FilenodeRangeResult` type conflates two concepts: a range being too large, and the result of filenodes lookups being unavailable because filenodes are disabled.

Replace it with `FilenodeResult<FilenodeRange>`, keeping the notion of whether or not filenodes are disabled to `FilenodeResult`, and handling this concept always through that.

The type was also pointlessly generic.  It almost always contained `Vec<FilenodeInfo>`, except in a couple of places where that is easily removed, so remove the generic parameter.

Differential Revision: D43410852

fbshipit-source-id: 6be34555b8b56b72d2ea4b071fb03c64648e8406
2023-02-23 11:51:31 -08:00
Youssef Ibrahim
0c5939f6a7 tunables: optionify tunables and remove get_ prefix
Summary: Currently fetching a tunable (except by repo ones) returns the default value when the tunable is not set. This can be error prune as it doesn't enforce handling the not set case and makes it awkward to set default values, it's also not consistent with the by repo tunables which return an option instead. This diff changes tunable fetching to make it return an option, and adds a .unwrap_or_default() at every callsite to maintain the current behaviour.

Reviewed By: yancouto

Differential Revision: D43123305

fbshipit-source-id: 32cb69ba78d52bc22979250c6e16edd1800cd1de
2023-02-09 08:43:11 -08:00
Andres Suarez
00b1f93276 Update tokio-1.21.2 to tokio-1.25.0
Reviewed By: diliop

Differential Revision: D42837228

fbshipit-source-id: 5e891cf1ff8ab1beff6e3c845b913144655778ea
2023-01-30 14:49:36 -08:00
Mark Juggurnauth-Thomas
ca851e8c17 vendor abomonation with smallvec support
Reviewed By: liubov-dmitrieva

Differential Revision: D42511631

fbshipit-source-id: a551ed64bfbd02e354baf647f66260507b606798
2023-01-18 09:43:07 -08:00
Pierre Chevalier
c8a2e59ac2 Fix lints
Summary: Mostly `needless_borrow` and `explicit_auto_deref`

Reviewed By: YousefSalama

Differential Revision: D41475135

fbshipit-source-id: 0a0d1bbccbd095d87be210d8a1c4b2c45cd5f872
2022-11-22 12:15:56 -08:00
Yan Soares Couto
b0b5859380 Rename retryable queries to mononoke queries
Summary:
On the rest of this stack, I plan to also add caching for queries, not only retrying. So let's name this more appropriately.

This macro will be our generic layer on top of SQL that we can use to add generic features for all our SQL queries, in some way similar to how we add a bunch of stuff on top of Manifold/blobstores.

Reviewed By: RajivTS

Differential Revision:
D40553047

LaMa Project: L1122763

fbshipit-source-id: 96abc7f477b82db9018fbf7b512b020aeb0e282d
2022-11-10 16:52:18 -08:00
Yan Soares Couto
3b07cc6d77 Auto implement SqlConstruct from SqlShardedConstruct
Summary: Make it not necessary to implement both variants since non-sharded can be derived from sharded (which was what newfilenodes was doing manually).

Reviewed By: liubov-dmitrieva

Differential Revision: D40637482

fbshipit-source-id: 1e3495a9792e6e253e46a93179bb34dd6e00055b
2022-11-03 15:12:55 -07:00
Yan Soares Couto
6259f8346e Use Vec1 for list of sharded sql connections
Summary: We always have at least one connection, so let's guarantee it on compile time. Some places did manual checks on runtime, now that's not necessary anymore!

Reviewed By: liubov-dmitrieva

Differential Revision: D40637483

fbshipit-source-id: 057f6464a016b6c2fa196e6b83db6e7cbc05756d
2022-11-03 15:12:55 -07:00
Yan Soares Couto
e9a79a674f Mass migrate all SQL queries to use queries_with_retry! with fast revert path
Summary:
Context: See D40105656

With the rest of the stack adding all necessary features to the `queries_with_retry!` macro, we can now move all use cases from Mononoke to use it!

Next steps:
- Retry more SQL error codes
- Maybe customize retry attempts/delay

Reviewed By: mitrandir77

Differential Revision: D40181860

fbshipit-source-id: 7a1b67d9af26efb6410b125e9fdfc13d874d40f0
2022-10-20 17:16:59 -07:00
Yan Soares Couto
11c395e36a Make SQL queries be retried when using query_with_retries
Summary:
Context: See D40105656

This diff makes the `query_with_retries!` macro actually try to retry errors. To do that it uses our `retry` library, for which I added new features in D40105659.

For now, this only retries on errors 1914-1916, see [error descriptions](https://www.internalfb.com/intern/sv/DBCLIENT_MYSQL_WARNING_TEXT/?query=DBCLIENT_MYSQL_WARNING_TEXT). This happens on admission control failures, which should be ok to retry a couple times.

Retries wait a long time, 10-15s, but that's good to avoid overwhelming SQL and making things worse.

Reviewed By: RajivTS

Differential Revision: D40105655

fbshipit-source-id: 14cbf223d9779fa01c07543bef1ad3fca8590463
2022-10-20 17:16:59 -07:00
Stiopa Koltsov
a4f9d57f54 bump version to 0.1.2
Summary: This is the latest version number [on crates](https://crates.io/crates/fbinit_macros/0.1.2).

Reviewed By: jsgf

Differential Revision: D40536148

fbshipit-source-id: 86fc58f09cdb716e2aed8571a8ddee65f5dfc844
2022-10-20 12:08:11 -07:00
David Tolnay
0be906fba0 Update to async-trait 0.1.58
Summary: This release makes async trait methods work better with rust-analyzer's "go to definition" and other IDE functionality.

Reviewed By: zertosh

Differential Revision: D40532047

fbshipit-source-id: 1871d1819ebe1aab0846b0135f051c45e6e8821b
2022-10-19 17:35:20 -07:00
Andrey Buchinskiy
5b2403f8ff bump tokio version to 1.21.2
Reviewed By: zertosh

Differential Revision: D40199323

fbshipit-source-id: 32355e73ea669a180ac759ddb02760db10c8b02b
2022-10-14 15:24:20 -07:00
Andres Suarez
25bec96f4c update to rust 1.64.0
Summary: https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html

Reviewed By: diliop, dtolnay

Differential Revision: D39825734

fbshipit-source-id: 4a789f2c24707fbc6a14b506448d405d5a60a53d
2022-09-27 15:18:58 -07:00
David Tolnay
e747fc4585 third-party/rust: Revert D39418421 "unpin thiserror"
Summary: D39418421 (a1593af094) prematurely upgraded `thiserror`. Various projects in fbcode use nightly features including std::backtrace but the current fbcode Rust toolchain is 1.63.0, in which the backtrace API is different from the API of the latest nightlies.

Reviewed By: quark-zju

Differential Revision: D39562441

fbshipit-source-id: d1f8a993ec776cf82b1736b242bd4466def21230
2022-09-15 17:20:40 -07:00
Edwin Smith
a1593af094 unpin thiserror
Reviewed By: bolinfest, zertosh

Differential Revision: D39418421

fbshipit-source-id: 2f0246f190403a6f481e8803834174f229c0849a
2022-09-13 07:15:29 -07:00
Michael Bolin
1c4c2f65aa use git-config@0.7.1 instead of patched version
Reviewed By: mzr

Differential Revision: D39331880

fbshipit-source-id: 5990d68d718297a6df72e5eea3c16fed5b84169e
2022-09-09 21:01:16 -07:00
Jan Mazur
3c235cf6d3 futures 0.3.21 -> 0.3.24
Summary: We have some deprecated functions in GH builds.

Differential Revision: D38909563

fbshipit-source-id: 3e8b77b10c352bfdfcbfe344f0ea2e95d4a339ad
2022-09-05 13:49:07 -07:00
Mark Juggurnauth-Thomas
e5b2131ec4 reorder import groups
Summary: Reorder import groups in "StdExternalCrate" order.

Reviewed By: mzr

Differential Revision: D38426225

fbshipit-source-id: b7bc8ccc0843f72bfa66ce6e04acf8e2e299ce81
2022-08-04 13:24:30 -07:00
Jan Mazur
33cb6059db handle 'warning: use of ok_or followed by a function call'
Summary:
I ran `arc clippy-check //eden/mononoke/...` and the handled the type of errors like in the title with clippy's suggestion.

I didn't use a global regex over files. I only made changes in lines and files that clippy complained about.

Reviewed By: yancouto

Differential Revision: D38246419

fbshipit-source-id: a474de9de28363ff3f04904f8a488e35b8eabce1
2022-07-28 12:24:19 -07:00
Yan Soares Couto
fb9ddef1f7 Clippy it all! (11/N)
Summary:
See D37647178 (bb7c43bd3d)

Unfortunately, this was the farthest I could go with automation + handholding :( (and there was more handholding than I expected).

619 warnings left. Too many to manually look at everything. See P515751504. Maybe it is possible to search and replace for some of those to drive the number down.

Here is the breakdown:
```
> pastry P515751504 | grep "Warning  (RUSTFIX) clippy::" | sort | uniq -c
      2    Warning  (RUSTFIX) clippy::assertions_on_constants
      1    Warning  (RUSTFIX) clippy::async_yields_async
      1    Warning  (RUSTFIX) clippy::await_holding_lock
     73    Warning  (RUSTFIX) clippy::bool_assert_comparison
      4    Warning  (RUSTFIX) clippy::borrow_interior_mutable_const
    112    Warning  (RUSTFIX) clippy::clone_double_ref
      3    Warning  (RUSTFIX) clippy::comparison_chain
      4    Warning  (RUSTFIX) clippy::declare_interior_mutable_const
      7    Warning  (RUSTFIX) clippy::derivable_impls
      1    Warning  (RUSTFIX) clippy::double_parens
      1    Warning  (RUSTFIX) clippy::drop_copy
      2    Warning  (RUSTFIX) clippy::extra_unused_lifetimes
      8    Warning  (RUSTFIX) clippy::field_reassign_with_default
      1    Warning  (RUSTFIX) clippy::for_loops_over_fallibles
     17    Warning  (RUSTFIX) clippy::from_over_into
      6    Warning  (RUSTFIX) clippy::identity_op
      3    Warning  (RUSTFIX) clippy::inherent_to_string_shadow_display
      2    Warning  (RUSTFIX) clippy::iter_nth
      5    Warning  (RUSTFIX) clippy::len_without_is_empty
      4    Warning  (RUSTFIX) clippy::manual_flatten
      2    Warning  (RUSTFIX) clippy::map_unwrap_or
      5    Warning  (RUSTFIX) clippy::match_ref_pats
      3    Warning  (RUSTFIX) clippy::needless_range_loop
      1    Warning  (RUSTFIX) clippy::never_loop
      1    Warning  (RUSTFIX) clippy::op_ref
     82    Warning  (RUSTFIX) clippy::or_fun_call
     10    Warning  (RUSTFIX) clippy::ptr_arg
      3    Warning  (RUSTFIX) clippy::result_unit_err
      2    Warning  (RUSTFIX) clippy::should_implement_trait
      1    Warning  (RUSTFIX) clippy::unnecessary_filter_map
      4    Warning  (RUSTFIX) clippy::unnecessary_mut_passed
      1    Warning  (RUSTFIX) clippy::unnecessary_to_owned
      3    Warning  (RUSTFIX) clippy::unnecessary_unwrap
      6    Warning  (RUSTFIX) clippy::unused_io_amount
```

Reviewed By: mitrandir77

Differential Revision: D37859976

fbshipit-source-id: d8a7cdedd81531f73621a1d476512209adbf2a0b
2022-07-27 07:13:49 -07:00
Yan Soares Couto
d2c7cee8be Clippy it all! (9/N)
Summary: See D37647178 (bb7c43bd3d)

Reviewed By: markbt

Differential Revision: D37649911

fbshipit-source-id: 48f19547ee9ffe3cdee82fa9de4294e62c73061a
2022-07-14 10:44:21 -07:00
Yan Soares Couto
bac1f40476 Clippy it all! (6/N)
Summary: See D37647178 (bb7c43bd3d)

Reviewed By: mitrandir77

Differential Revision: D37647742

fbshipit-source-id: a22aa6f2899e4587928339b46063edb0b83fcd2b
2022-07-14 10:44:21 -07:00
Mateusz Kwapich
45190441ae fix self imports
Summary:
The reformatter can't deal with self imports, let's help it.

I've ran:

```
fd -g  '**/*.rs' -x sd -s '::{self}' ''
arc f
```

Reviewed By: stepancheg

Differential Revision: D37494566

fbshipit-source-id: badc7aff2ea931085df61ce241ae26e13916c1eb
2022-06-28 15:27:12 -07:00
Mateusz Kwapich
b8384b6c8e reformat rust sources to one import per line
Reviewed By: yancouto, mzr

Differential Revision: D37493536

fbshipit-source-id: f0e07b725236ffa8326f90e6dce7e06869ba23af
2022-06-28 11:44:12 -07:00
David Tolnay
4a03469e09 third-party/rust: Update async-trait from 0.1.52 to 0.1.56
Summary:
Release notes:

- https://github.com/dtolnay/async-trait/releases/tag/0.1.53 (improved error messages)
- https://github.com/dtolnay/async-trait/releases/tag/0.1.54 (`impl Trait` support)
- https://github.com/dtolnay/async-trait/releases/tag/0.1.55 (compatibility with 2021 edition closure capture rules)
- https://github.com/dtolnay/async-trait/releases/tag/0.1.56 (more `impl Trait` work)

Reviewed By: zertosh

Differential Revision: D36881793

fbshipit-source-id: ce9b86693dd18efa6884d29419970b41ebff5447
2022-06-02 17:05:05 -07:00
Huapeng Zhou
a232791ef1 rust: update anyhow to 1.0.56
Summary:
Needed by cloud-hypervisor https://github.com/cloud-hypervisor/cloud-hypervisor/blob/main/Cargo.toml#L19.

(Note: this ignores all push blocking failures!)

Reviewed By: jsgf

Differential Revision: D34432496

fbshipit-source-id: deaa320c74a22e325a116bcc0d5b0120c4f3744b
2022-04-07 04:31:34 -07:00
Huapeng Zhou
484f6b1be2 rust: update thiserror to 1.0.30
Summary: Needed to import [cloud-hypervisor](https://github.com/cloud-hypervisor/cloud-hypervisor/blob/main/Cargo.toml#L31).

Reviewed By: dtolnay

Differential Revision: D34437972

fbshipit-source-id: 9f22bb1fde83308a319f40e138d9ab7f180c7fa0
2022-03-31 00:26:06 -07:00
David Tolnay
1194f1a5e0 Prepare for rustfmt upgrade 6/13
Summary:
Context: I am upgrading rustfmt in D35234535.

 ---

This diff contains all the formatting changes which are idempotent between the old and the new version of rustfmt. It's generated by formatting with the new rustfmt, then formatting immediately again with the old rustfmt. If there are any big changes in here, that's code that old rustfmt used to crash on but new rustfmt handles correctly.

Separating out this part of the changes prior to flipping the rustfmt version switch globally allows the amount of code that needs to be landed atomically to be smaller, since this diff is independent and can land at any point before the rest of the stack.

 ---

Reviewed By: zertosh

Differential Revision: D35234531

fbshipit-source-id: 2ab036e03d602f6385992283c2b04381550ebae7
2022-03-29 18:54:21 -07:00
Simon Farnsworth
389b98b050 Support TTLs in cachelib variant of caching_ext
Summary: I'm going to use TTLs in Mutable Renames caching. Make it work

Reviewed By: mitrandir77

Differential Revision: D34527803

fbshipit-source-id: 3b53ee4e89153814981dcb68b838ee86f5ac7388
2022-03-08 03:10:41 -08:00
Alex Hornby
1a644e779e restore getdeps build (#109)
Summary:
Pull Request resolved: https://github.com/facebookexperimental/eden/pull/109

Bring back getdeps build of Mononoke so it can be built in opensource.

Includes cargo generation and marking a couple of comments as text to stop cargo trying to build them as rust doc tests

Successful GitHub Linux Build: https://github.com/facebookexperimental/eden/runs/5147129282?check_suite_focus=true

Successful GitHub Mac Build:
https://github.com/facebookexperimental/eden/runs/5147129271?check_suite_focus=true

Reviewed By: markbt

Differential Revision: D34114848

fbshipit-source-id: a18f4370048054b087d421deced29f0b7ba7ada1
2022-02-11 01:42:04 -08:00
Andres Suarez
68955fe35b Update async-trait to 0.1.52
Summary:
Fixes some clippy issues:
685b68b090

Reviewed By: dtolnay

Differential Revision: D34100067

fbshipit-source-id: fa49e68645b6e99d87f92a7b9ac73ba5d567fa0b
2022-02-09 02:05:17 -08:00
David Tolnay
215f6d4249 third-party/rust: Import forked terminfo crate
Summary:
The published `terminfo` crate has a WTFPL license which is forbidden from being used by Meta.

{F687594009}

However the WTFPL allows forking and relicensing, so I've gone ahead and relicensed the same code as dual MIT OR Apache 2.0 for fbsource to use. We can patch the properly licensed code in place of all transitive dependencies on the `terminfo` crate, as they have the same public Rust API.

The relevant changes: 9b4e1c6aae

Reviewed By: metajack

Differential Revision: D33190944

fbshipit-source-id: 0a9002b8799b5ceeaca3c20a211f15beec5a407f
2022-02-08 15:32:51 -08:00
Alex Hornby
9e4c168806 rust: remove mockall patch
Summary: The mentioned PR https://github.com/asomers/mockall/pull/330 was superceded by https://github.com/asomers/mockall/pull/333 and is part of 0.11 release

Reviewed By: dtolnay

Differential Revision: D33881560

fbshipit-source-id: 1676f725739939695e4b7b2b8eb14b08ad27e6c1
2022-01-31 02:09:13 -08:00
Andres Suarez
edd73c3cb8 Update tokio to 1.15
Reviewed By: Imxset21

Differential Revision: D33759920

fbshipit-source-id: 7fd02dc93a7c1c564454a1fece3ff4b12dba3d3e
2022-01-25 02:05:10 -08:00
Jason White
98afff9c91 third-party/rust: Update gimli, object, and addr2line crates
Reviewed By: Imxset21

Differential Revision: D33275115

fbshipit-source-id: 9a8eb9dd6c64f834ae76ae77aa7bbe510dda1a5c
2022-01-07 13:24:59 -08:00
Stanislau Hlebik
48f4afc0a9 mononoke: fix license headers for rust files
Summary:
Followed instructions from T109329442

```
arc lint --take LICENSELINT --paths-cmd 'hg files path/to/project' --apply-patches
```

drop-conflicts

Reviewed By: mitrandir77

Differential Revision: D33431338

fbshipit-source-id: 1c01ed0b484755fd98593112a267876166bcbd53
2022-01-06 00:20:51 -08:00
Thomas Orozco
0d632d8278 autocargo: ctp: depend on pxl instead of re-declaring its crates
Summary:
You can't run Autocargo right now, it fails with:

```
Error: File CargoTomlPath { file: PathInFbcode("configerator/structs/data_access_policies/upf/eval/Cargo.toml"), dir: PathInFbcode("configerator/structs/data_access_policies/upf/eval") } is covered by both ctp and pxl projects
```

This is affecting me (on Buck2) since some of our dependencies use Autocargo
for their Cargo.tomls and those are now missing some dependencies (notably,
`below` needs `nix`). This also affects people trying to vendor crates:

https://fb.workplace.com/groups/rust.language/permalink/7625318880849994/
https://fb.workplace.com/groups/rust.language/permalink/7577471608968055/

This diff fixes it, and regenerates Cargo.tomls as a result.

Note: I'm not sure exactly what "pxl" is, but it seems to be owned by the team working on data access so that's a better home for that crate than ctp.

Reviewed By: ahornby

Differential Revision: D33428045

fbshipit-source-id: f3feab3ae04069672040423c145c69a58445ef96
2022-01-05 06:26:54 -08:00
Alex Hornby
35a17d90e0 rust: remove mysql_common patch by updating mysql_async
Summary: 0.27 onwards has support for large tuples so can remove patch

Reviewed By: farnz

Differential Revision: D33100620

fbshipit-source-id: 68348b16113043826dfb253acc64048d01bba7d1
2021-12-16 13:21:10 -08:00
Zeyi (Rice) Fan
c833b5d992 un-pin ring
Reviewed By: dtolnay

Differential Revision: D33069565

fbshipit-source-id: a2254a8414bc840ce596aa52c952a2c99f496cae
2021-12-16 11:07:48 -08:00
Alex Hornby
95a0f0ea19 rust: remove slog-syslog patch
Summary: The change is in upstream slog-syslog release 0.13.0 so we can remove the patch

Reviewed By: jsgf

Differential Revision: D33099611

fbshipit-source-id: a30b89179d18cbd7b3d9dbe6ac8a461b143b01c0
2021-12-16 07:53:52 -08:00