mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
754a755eee
Summary: Context: https://fb.workplace.com/groups/rust.language/permalink/3338940432821215/ This codemod replaces all dependencies on `//common/rust/renamed:tokio-preview` with `fbsource//third-party/rust:tokio-preview` and their uses in Rust code from `tokio_preview::` to `tokio::`. This does not introduce any collisions with `tokio::` meaning 0.1 tokio because D20235404 previously renamed all of those to `tokio_old::` in crates that depend on both 0.1 and 0.2 tokio. This is the tokio version of what D20213432 did for futures. Codemod performed by: ``` rg \ --files-with-matches \ --type-add buck:TARGETS \ --type buck \ --glob '!/experimental' \ --regexp '(_|\b)rust(_|\b)' \ | sed 's,TARGETS$,:,' \ | xargs \ -x \ buck query "labels(srcs, rdeps(%Ss, //common/rust/renamed:tokio-preview, 1))" \ | xargs sed -i 's,\btokio_preview::,tokio::,' rg \ --files-with-matches \ --type-add buck:TARGETS \ --type buck \ --glob '!/experimental' \ --regexp '(_|\b)rust(_|\b)' \ | xargs sed -i 's,//common/rust/renamed:tokio-preview,fbsource//third-party/rust:tokio-preview,' ``` Reviewed By: k21 Differential Revision: D20236557 fbshipit-source-id: 15068b93a0a944d6249a1d9f63840a4c61c9c1ba |
||
---|---|---|
.. | ||
src | ||
test_utils |