Commit graph

38 commits

Author SHA1 Message Date
Stiopa Koltsov
00a4d01ee2 format_code_in_doc_comments = true
Summary: D52632085

Reviewed By: zertosh

Differential Revision: D52640376

fbshipit-source-id: da918401a991b1f15dd84e1e9066cca1457afd28
2024-01-09 16:54:59 -08:00
Andreas Backx
9a92f2f4e9 colored 1.9 -> 2.1.0
Summary: A newer version of colored adds support for true color terminal text coloring. The changelog only indicates "Alter Color interface to return Cow<'static, str>" besides the true color support as a "change" in the changelog and I'm not expecting people to really use this. If they do, I'll see it in Sandcastle?

Reviewed By: dtolnay

Differential Revision: D52391497

fbshipit-source-id: c08fffc171f7d5f9b75f96617aa673867ab45312
2024-01-02 15:28:35 -08:00
Andres Suarez
9ce4ac6e2b Add default crate information
Summary: Adds basic info that every crate should have.

Reviewed By: dtolnay

Differential Revision: D52051107

fbshipit-source-id: 828ac6a752dbb4b419577fca08815014c8b96c42
2023-12-11 15:49:03 -08:00
Jake Bailey
7d08fc8085 Upgrade heapless 0.7.15 -> 0.8.0
Summary: Sync with fw-rust.

Reviewed By: zertosh

Differential Revision: D51963086

fbshipit-source-id: 22021abffef9d8815f98b0c6fc3c9d4e3971331f
2023-12-08 02:19:57 -08:00
David Tolnay
ccaa2e5f1d update platform010 & platform010-aarch64 symlinks
Summary:
Release notes: https://blog.rust-lang.org/2023/10/05/Rust-1.73.0.html

This release is coupled with an update of the `anyhow` and `thiserror` crates because the unstable standard library API for backtraces has changed.

Fbcode changes:

- `feature(default_free_fn)` deleted (D50300881)
- `noop_method_call` lint becomes warn-by-default (D50486032, D50516201)
- stronger `invalid_reference_casting` detection (D50488164)
- `feature(unix_chown)` has been stabilized
- `feature(provide_any)` and `std::provider` deleted
- `clippy::unwrap_or_else_default` renamed to `clippy::unwrap_or_default`
- type inference ambiguities (D51780425)
- `nu-command` build error (D51779062)

Reviewed By: AndreasBackx, shayne-fletcher

Differential Revision: D50294321

fbshipit-source-id: 0fac87f6ba072ad029f9ce41ce94ed813e855b20
2023-12-02 13:52:50 -08:00
Andres Suarez
d22b5fa9de Update autocargo component on FBS:master
Reviewed By: dtolnay

Differential Revision: D51692353

fbshipit-source-id: 44864a348711875983de81758bbe05b46ad4c604
2023-11-29 18:35:29 -08:00
David Tolnay
d744c1f65b Update proc-macro2 to 1.0.70
Summary:
This release includes a fix to `proc_macro2::Ident::new` to report invalid input at the call site using #[track_caller], instead of inside proc-macro2 code.

This affects LLVM staging (which is LLVM 18) because old bindgen (<0.62.0) is incompatible with Clang 16+, manifesting as panicks in `Ident::new`. See {D40685340}.

**Before:**

```
Action failed: fbsource//third-party/rust:loopdev-0.4.0-build-script-run (buildscript)
thread 'main' panicked at '"enum_(unnamed_at_/usr/include/linux/loop_h_21_1)" is not a valid Ident', third-party/rust/vendor/proc-macro2-1.0.69/src/fallback.rs:817:9

Action failed: fbsource//third-party/rust:virt-sys-0.1.0-build-script-run (buildscript)
thread 'main' panicked at '"_virTypedParameter_union_(unnamed_at___/__/__/__/__/__/fbcode/ca3f1b68f56b9220/third-party-buck/platform010/build/libvirt/__include__/include/include/libvirt/libvirt-common_h_206_5)" is not a valid Ident', third-party/rust/vendor/proc-macro2-1.0.69/src/fallback.rs:817:9
```

**After:**

```
Action failed: fbsource//third-party/rust:loopdev-0.4.0-build-script-run (buildscript)
thread 'main' panicked at '"enum_(unnamed_at_/usr/include/linux/loop_h_21_1)" is not a valid Ident', third-party/rust/vendor/bindgen-0.59.2/src/ir/context.rs:878:9

Action failed: fbsource//third-party/rust:virt-sys-0.1.0-build-script-run (buildscript)
thread 'main' panicked at '"_virTypedParameter_union_(unnamed_at___/__/__/__/__/__/fbcode/ca3f1b68f56b9220/third-party-buck/platform010/build/libvirt/__include__/include/include/libvirt/libvirt-common_h_206_5)" is not a valid Ident', third-party/rust/vendor/bindgen-0.59.2/src/ir/context.rs:878:9
```

Of course, that panic still needs to be fixed properly. I will pursue that next. But at least the location of the faulty code is reported correctly.

Reviewed By: zertosh

Differential Revision: D51633230

fbshipit-source-id: db9794ed4ea70f773925bdaf9a11de289d2aa25c
2023-11-28 15:53:02 -08:00
Andres Suarez
730e0d23e6 Require at least tempfile-0.3.8
Reviewed By: shayne-fletcher

Differential Revision: D50529920

fbshipit-source-id: 444774ef543c2d0b4cd8e3d82cf4addf1435e6ca
2023-10-21 12:15:21 -07:00
David Tolnay
ce2758b437 Deny stable_features lint
Summary:
Let's get these cleaned up. Some of these features have been stable (and therefore warning) for 2 years.

Codebases that need to support a compiler out of sync with the fbcode compiler can use `#![allow(stable_features)]`.

https://www.internalfb.com/code/fbsource/[cbb2d272daffb00e4b04465978a4fcfbf4beb204]/fbcode/buck2/starlark-rust/starlark/src/lib.rs?lines=353

Reviewed By: shayne-fletcher

Differential Revision: D50487806

fbshipit-source-id: a5e6ede09b815faa0a64cbd5fac606b89821edb3
2023-10-20 10:29:23 -07:00
David Tolnay
613bea7f70 Eliminate cast from &T to &mut T
Summary:
This code is 100% UB and no longer compiles in Rust 1.73.

```
error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
   --> fbcode/hermetic_infra/reverie/experimental/reverie-sabre/src/thread.rs:652:32
    |
652 |             let slot_map_mut = &mut *((&*SLOT_MAP as *const _) as *mut _);
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[deny(invalid_reference_casting)]` on by default
```

Reviewed By: JakobDegen

Differential Revision: D50488164

fbshipit-source-id: ea649d97f47ccc329a44650aff5dc467ed12b48c
2023-10-20 00:57:17 -07:00
Andres Suarez
890bb937a0 Update and pin anyhow to 1.0.72
Summary:
anyhow-1.0.73 [uses][1] the new `Error::provide` API. This API is
available starting in Rust 1.73. This means that if you want backtraces,
you need one:

- anyhow-1.0.72 & Rust 1.72
- anyhow-1.0.73 & Rust 1.73

Since we're still on 1.72, pin the version to avoid accidentally losing
backtraces.

There are no real changes between anyhow-1.0.71 and anyhow-1.0.72. But
update to anyhow-1.0.72 so that we're right up until the point where we
get backtrace support.

[1]: https://github.com/dtolnay/anyhow/pull/319

Reviewed By: shayne-fletcher

Differential Revision: D49970958

fbshipit-source-id: 1193611e6d16bc840e63b689e932ea3d33562152
2023-10-05 15:20:03 -07:00
Andres Suarez
e3c97826ef Update serde from 1.0.176 to 1.0.185
Summary:
This release most notably removes the precompiled serde_derive:
https://github.com/serde-rs/serde/releases/tag/v1.0.184

Reviewed By: shayne-fletcher

Differential Revision: D48516549

fbshipit-source-id: 077f650094f9424982de9283d04ede59306947b0
2023-08-21 06:07:02 -07:00
David Tolnay
033ce7edf7 Update serde from 1.0.167 to 1.0.176
Reviewed By: quark-zju

Differential Revision: D47811862

fbshipit-source-id: 03cefc52f3d024a2d0fb5580bed079ff2b4651e0
2023-07-26 21:23:58 -07:00
Astrid Yu
460387b9c8 third-party/rust: bump tokio v1.25.0 -> v1.29.1
Summary: Needed for reqwest QUIC support (requirement of ^1.28)

Reviewed By: zertosh

Differential Revision: D47304356

fbshipit-source-id: d39999373ae51f79123927a073f3073e21a10078
2023-07-12 15:32:56 -07:00
David Tolnay
254ff4a7f5 Update proc-macro2 from 1.0.63 to 1.0.64
Summary:
This fixes a bug related to bare carriage returns that caused D47318798 to fail in `third-party-rust-verification`. The `schemafy_core` crate contains a file that uses carriage returns which are not followed by newlines 🤮. When that file fails to parse, Reindeer falls back to using non-precise srcs, which produced the following difference to the generated output.

```
 diff --git a/third-party/rust/BUCK b/third-party/rust/BUCK
 --- a/third-party/rust/BUCK
+++ b/third-party/rust/BUCK
@@ -77047,6 +77047,7 @@
     name = "schemafy_core-0.5.1",
     srcs = [
         "vendor/schemafy_core-0.5.1/src/lib.rs",
+        "vendor/schemafy_core-0.5.1/src/main.rs",
         "vendor/schemafy_core-0.5.1/src/one_or_many.rs",
     ],
     crate = "schemafy_core",
```

Reviewed By: zertosh

Differential Revision: D47318928

fbshipit-source-id: 086b96393cc43371b724ac95e841990385576432
2023-07-09 08:54:33 -07:00
David Tolnay
2124de21b0 Updates of dtolnay crate-o-matic universe
Reviewed By: zertosh

Differential Revision: D47316925

fbshipit-source-id: d6d374466693cff397a0358bb38c790575998a21
2023-07-08 14:36:37 -07:00
David Tolnay
3c7aee92ee Update serde and serde_json
Reviewed By: zertosh

Differential Revision: D47316922

fbshipit-source-id: bc9c0b407d27fee3d590e456d4ddba34e0228f34
2023-07-08 14:34:39 -07:00
David Tolnay
af144fa575 Update syn from 2.0.16 to 2.0.23
Summary: This supports new syntax added in the past months, including `c"..."` CStr literals.

Reviewed By: shayne-fletcher

Differential Revision: D47316927

fbshipit-source-id: ac0e514ca89dad282e64decd01d3a94b3bff8490
2023-07-08 14:32:40 -07:00
Shayne Fletcher
09a86f99f9 codemods to remove lazy static 1/N
Summary:
first in a set of diffs with the intent of removing `lazy_static!` from fbcode.

this diff changes `std::sync::Mutex` and `parking_lot::Mutex` to plain `static` initializations where possible.

Reviewed By: zertosh

Differential Revision: D46335784

fbshipit-source-id: 105848f38dcb8083be77a4ad4db267058081fe53
2023-06-05 17:01:50 -07:00
Shayne Fletcher
41880aaa0e upgrade to parking_lot-0.12.1
Summary: upgrade parking_lot from version 0.11.2 to version 0.12.1

Reviewed By: zertosh, diliop, dtolnay

Differential Revision: D46398501

fbshipit-source-id: ffae0ea188abad5253f1524216dd18ce9a53a74c
2023-06-02 18:45:03 -07:00
Andres Suarez
7dbdc85c58 update clap-3 and clap_complete-3
Summary: Update to latest versions.

Reviewed By: AndreasBackx

Differential Revision: D45947093

fbshipit-source-id: 64ac9ac86a3180e0de57b79408829ef920706c0c
2023-05-19 06:51:50 -07:00
generatedunixname89002005287564
80b606d661 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: zertosh

Differential Revision: D45487289

fbshipit-source-id: d4a5f0f2ee4d10e8ee1c15ac34e7166945cd6aed
2023-05-02 09:19:48 -07:00
Andres Suarez
9e481229b3 Update tempfile from 3.4 to 3.5
Reviewed By: quark-zju

Differential Revision: D44524245

fbshipit-source-id: 167471d01b0afbbc34ced88574dbfb09799aadf6
2023-03-30 17:11:37 -07:00
Jason White
c5786cf741 Open-source syscall scraper
Reviewed By: VladimirMakaev

Differential Revision: D44388612

fbshipit-source-id: baf5eb0a350e0c902874726689a0aacf6d585013
2023-03-25 16:12:24 -07:00
Jason White
e5e7a3a70e Delete traceviz
Reviewed By: VladimirMakaev

Differential Revision: D44387797

fbshipit-source-id: 158781fef9de3d707684bb3e79094df7b516473a
2023-03-25 16:12:24 -07:00
Jason White
8e716edec1 Publish no-std design doc
Summary: Trying to publish more of our docs and materials.

Reviewed By: VladimirMakaev

Differential Revision: D44387507

fbshipit-source-id: 32cd324db73483ec3f0dd7c2c1b0817f559fa958
2023-03-25 16:12:24 -07:00
Jeremy Fitzhardinge
f51250f09c third-party/rust: update tempfile to 3.4
Summary:
Removes need for patch.

It had already been updated to 3.4 but this just formalizes it.

Reviewed By: jasonwhite

Differential Revision: D44274378

fbshipit-source-id: d17ecbbee06c7df30f689eb859fb31fdf07d8d44
2023-03-21 15:25:59 -07:00
Arun Thulasi
d51b9e8a1c Update libc-0.2.137 to libc-0.2.139
Reviewed By: zertosh

Differential Revision: D43203556

fbshipit-source-id: 460f339f603fec97f367967a20a4c6e7a81ad027
2023-02-12 16:30:00 -08:00
Zoltán Nagy
689731cb18 Upgrade Clap 3 to 3.2.23
Reviewed By: zertosh

Differential Revision: D43186409

fbshipit-source-id: 09583c5f6ff82c5cecf6263355c23c48ba6208f5
2023-02-10 09:18:20 -08:00
Andres Suarez
4dd84a499d 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
Jason White
5590fdacb2 Remove unused dotslash files
Reviewed By: VladimirMakaev

Differential Revision: D41821643

fbshipit-source-id: 36dbd6c26c6986e8acb771b5825a1e09c2255340
2022-12-07 16:47:04 -08:00
Ryan Johnson
6f03658469 Remove call to trace_start_init
Summary:
`trace_start_init` relies on the deprecated/removed symbol `initForTraceStart`,
and it's not critical, so this diff removes it.

Reviewed By: jasonwhite

Differential Revision: D41447262

fbshipit-source-id: a291b822d7e6c620f15182374d8923bc18ad2ec8
2022-11-21 17:16:10 -08:00
generatedunixname89002005294178
81ca16a694 Update traceviz component on FBS:master
Differential Revision: D41332214

fbshipit-source-id: 3b6a7e09e124d11a9501c2aa03b0c3cbce39b89f
2022-11-15 23:30:37 -08:00
generatedunixname89002005294178
6bea3e3f73 Update traceviz component on FBS:master
Differential Revision: D41297952

fbshipit-source-id: 0deb4885917aa482cfa4a0cb790775c9a486b8cc
2022-11-14 23:25:53 -08:00
generatedunixname89002005294178
775308ee49 Update traceviz component on FBS:master
Differential Revision: D41259923

fbshipit-source-id: dbf84d6130a30547fb1579ddbd3f54cdb2bdab7f
2022-11-13 23:25:20 -08:00
Jason White
de3a571bb9 Fix dotslash paths
Summary: Fixes the paths after moving `reverie/fb-only/` to `reverie/experimental/`.

Reviewed By: VladimirMakaev

Differential Revision: D41240531

fbshipit-source-id: bba17fa598c2bb53f2765f9e6edddd59b7543048
2022-11-11 17:43:40 -08:00
Dimitris Iliopoulos
84da445a0d update to Rust 1.65.0
Summary:
Added `fbcode` symlinks for `platform010` & `platform010-aarch64` and addressed the following fixes:
* Account for stabilized [`#![feature(backtrace)]`](https://github.com/rust-lang/rust/pull/99573) and [`#![feature(generic_associated_types)]`](https://github.com/rust-lang/rust/pull/99573)
* Account for removal of [`#![feature(result_into_ok_or_err)]`](https://github.com/rust-lang/rust/pull/100604)
* Account for migration of [`std::io::ReadBuf` to `std::io::BorrowBuf|BorrowCursor`](https://github.com/rust-lang/rust/pull/97015)
* Account for [`Error` trait move into core](https://github.com/rust-lang/rust/pull/99917)
* Account for `#[warn(non_camel_case_types)]`
* Various function signature, lifetime requirement changes and lint fixes

Reviewed By: zertosh

Differential Revision: D40923615

fbshipit-source-id: f7ac2828d74edeae39aae517172207b0ee998a59
2022-11-09 19:37:29 -08:00
Jason White
c6532de85d Open source experimental in-guest interception
Differential Revision: D41099658

fbshipit-source-id: 52b414e27abd3c0c3a6367dea225724f4220793b
2022-11-09 01:03:49 -08:00