Summary: `tempdir` has been deprecated since 2018: https://github.com/rust-lang-deprecated/tempdir/pull/46 It's functionality was merged into `tempfile` with minor tweaks: - Methods names: `new` -> `with_prefix`, `new_in` -> `with_prefix_in`. - `with_prefix_in`'s args order is reversed. - Temp dirs no longer have a period between the prefix and the random name (before `foo.123abc`, now `foo123abc`). Reviewed By: shayne-fletcher Differential Revision: D50526255 fbshipit-source-id: bdb3b53a6b09a09c70c8e2533ad2cea46ee2842b
Flipper Packer
A tool for splitting a Flipper build into smaller artifacts that can be distributed and cached separately.
N.B. Buck build files are not included in the open-source export of this tool.
Building
With cargo:
$ cargo build
With Buck:
$ buck build :packer
Testing
With cargo:
$ cargo test
With Buck:
buck test :packer
Usage
See help page:
$ cargo run -- --help
flipper-packer 0.4.0
Facebook, Inc.
Helper tool that breaks down a Flipper release into smaller artifacts.
USAGE:
flipper-packer [OPTIONS] <PLATFORM>
ARGS:
<PLATFORM> Platform to build for
OPTIONS:
-d, --dist <DIST> Flipper dist directory to read from [default:
~/fbsource/xplat/sonar/dist]
-h, --help Print help information
--no-compression Skip compressing the archives (for debugging)
-o, --output <OUTPUT> Directory to write output files to [default: .]
-p, --packlist <PACKLIST> Custom list of files to pack
-V, --version Print version information
Buck:
buck run :packer