Commit Graph

6 Commits

Author SHA1 Message Date
David Tolnay
b813b1a320 rust/thrift: Remove dependency of thrift runtime on folly
Summary:
This unblocks Michael Bolin in producing non-Buck builds of DotSlash.

 ---

**Before:**

- `rust_thrift` (Thrift runtime)
    - depends on `bytes-ext`
    - depends on `iobuf`
        - depends on `iobuf-sys`
            - depends on bindgen / Folly

**After:**

- `rust_thrift`
    - depends on `bytes-ext`
- `iobuf`
    - depends on `bytes-ext`
    - depends on `iobuf-sys`
        - depends on bindgen / Folly

Reviewed By: bolinfest

Differential Revision: D16216165

fbshipit-source-id: d895312711dc75b3ff393e1f0bd71a9e4435a8f6
2019-07-12 18:09:34 -07:00
David Tolnay
df39ac67d6 rust: Remove extern crate from common/rust
Summary:
This diff removes all occurrences of `extern crate` from //fbcode/common/rust// except within files included into bindgen code which are forced to use 2015 edition.

`#[macro_use]` attributes are replaced by 2018-style individual `use` of macros.

Reviewed By: jsgf

Differential Revision: D16179130

fbshipit-source-id: 25771eaec8e38043bfa1f9be267dc185758cd2d7
2019-07-10 11:58:48 -07:00
Greg Cowan
041770b090 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:17 -07:00
Jeremy Fitzhardinge
7cd728c378 Convert //common/rust/bytes-ext:bytes-ext to Rust 2018
Reviewed By: StanislavGlebik

Differential Revision: D15444093

fbshipit-source-id: 27de7462ec5f312dbf4a17cbdc4d56683e51a34a
2019-05-22 01:13:28 -07:00
Liubov Dmitrieva
880f8fe5f4 add cargo build support for local development
Summary: Cargo build support for Commit Cloud Thrift Service.

Reviewed By: jsgf

Differential Revision: D6943597

fbshipit-source-id: de65a81988ef72356be7ea376153df4d3b1548f0
2018-02-22 04:30:32 -08:00
Siddharth Agarwal
f6610ae558 thrift: extract SizeCounter to a separate crate
Summary:
This counter is generally quite useful, so extract it into a location
where Mononoke can also use it.

Also add ShipIt and corresponding license linter rules for this.

Reviewed By: jsgf

Differential Revision: D6600409

fbshipit-source-id: ce63d718ca259ac30d2ed77e72004fb83158f818
2018-01-01 17:52:35 -08:00