Commit Graph

4 Commits

Author SHA1 Message Date
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
Pavel Aslanov
a0a3a421f2 make HgEntryId an enum
Summary: `HgEntryId` is much more useful in a typed from (enum of `(FileType, HgFileNodeId)` and `HgManifestId`), most of the time we now which type entry should contain and it makes it harder to make and error, all other use cases which require just hash should use `HgNodeHash` instead. This diff includes minimal changes which are necessary to make it work. Some of the cases which do sequence of `Entry::get_hash().into_nondehash() -> HgManifestId::new() | HgFileNodeId::new()` are left for future diffs.

Reviewed By: farnz

Differential Revision: D15866081

fbshipit-source-id: 5be9ecc30dbfd0a49ae6c5d084cdfe2dac351dac
2019-06-18 11:11:52 -07:00
Jeremy Fitzhardinge
aafc38da2b Convert scm/mononoke/bonsai_utils to Rust 2018
Summary:
Rust 2018 updates to:
  //scm/mononoke/bonsai_utils:bonsai_utils
  //scm/mononoke/bonsai_utils:bonsai_utils-test
  //scm/mononoke/bonsai_utils:bonsai_utils-test-rust-build-info-lib
  //scm/mononoke/bonsai_utils:bonsai_utils-unittest

Reviewed By: StanislavGlebik

Differential Revision: D15465968

fbshipit-source-id: 2b2a22ef853d43a4a255999d1e2593f7e35738b5
2019-05-24 10:07:44 -07:00
Kostia Balytskyi
e561682ecd mononoke: rename crates to contain underscores instead of dashes
Summary: Let's not use dashes in crate names.

Reviewed By: StanislavGlebik

Differential Revision: D14341596

fbshipit-source-id: 85a7ded60cf2e326997ac70ee47a29116af97590
2019-03-06 07:18:28 -08:00