Summary: Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.8.24 to 0.9.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/serde-yaml/releases">serde_yaml's releases</a>.</em></p> <blockquote> <h2>0.9.2</h2> <ul> <li>Improve <code>Debug</code> representation of <code>serde_yaml::Error</code></li> </ul> <h2>0.9.1</h2> <ul> <li>Fix panic on some documents containing syntax error (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/293">https://github.com/facebook/flipper/issues/293</a>)</li> <li>Improve error messages that used to contain duplicative line/column information (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/294">https://github.com/facebook/flipper/issues/294</a>)</li> </ul> <h2>0.9.0</h2> <p><em>API documentation: <a href="https://docs.rs/serde_yaml/0.9">https://docs.rs/serde_yaml/0.9</a></em></p> <h3>Highlights</h3> <ul> <li> <p>The <code>serde_yaml::Value</code> enum gains a <code>Tagged</code> variant which represents the deserialization of YAML's <code>!Tag</code> syntax. Tagged scalars, sequences, and mappings are all supported.</p> </li> <li> <p>An empty YAML input (or document containing only comments) will deserialize successfully to an empty map, empty sequence, or Serde struct as long as the struct has only optional fields. Previously this would error.</p> </li> <li> <p>A new <code>.apply_merge()</code> method on <code>Value</code> implements YAML's <code><<</code> merge key convention.</p> </li> <li> <p>The <code>Debug</code> representation of <code>serde_yaml::Value</code> has gotten vastly better (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/pull/287">dtolnay/serde-yaml#287</a>).</p> </li> <li> <p>Deserialization of borrowed strings now works.</p> <pre lang="rust"><code>#[derive(Deserialize, Debug)] struct Struct<'a> { borrowed: &'a str, } <p>let yaml = "borrowed: 'kölcsönzött'\n"; let value: Struct = serde_yaml::from_str(yaml)?; println!("{:#?}", value); </code></pre></p> </li> <li> <p><code>Value</code>'s and <code>Mapping</code>'s methods <code>get</code> and <code>get_mut</code> have been generalized to support a &str argument, as opposed to requiring you to allocate and construct a <code>Value::String</code> for indexing into another existing <code>Value</code>.</p> </li> <li> <p><code>Mapping</code> exposes more APIs that have become conventional on map data structures, such as <code>.keys()</code>, <code>.values()</code>, <code>.into_keys()</code>, <code>.into_values()</code>, <code>.values_mut()</code>, and <code>.retain(|k, v| …)</code>.</p> </li> </ul> <h3>Breaking changes</h3> <ul> <li> <p>Serialization no longer produces leading <code>---\n</code> on the serialized output. You can prepend this yourself if your use case demands it.</p> </li> <li> <p>Serialization of enum variants is now based on YAML's <code>!Tag</code> syntax, rather than JSON-style singleton maps.</p> <pre lang="rust"><code>#[derive(Serialize, Deserialize)] enum Enum { Newtype(usize), Tuple(usize, usize, usize), Struct { x: f64, y: f64 }, } </code></pre> </li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="3dd7bcf00a"><code>3dd7bcf</code></a> Release 0.9.2</li> <li><a href="922c18f8d8"><code>922c18f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/296">https://github.com/facebook/flipper/issues/296</a> from dtolnay/debugerror</li> <li><a href="3d62247840"><code>3d62247</code></a> Condense Error's Debug format in a way to include whole message</li> <li><a href="26e67d87b6"><code>26e67d8</code></a> Use mark() in the implementation of location()</li> <li><a href="1c031a631a"><code>1c031a6</code></a> Omit position 0 from error messages</li> <li><a href="3562a13849"><code>3562a13</code></a> Split Error display into message_no_mark + mark</li> <li><a href="790becc406"><code>790becc</code></a> Fix missing message in Debug of libyaml Error</li> <li><a href="bc2f0cab3b"><code>bc2f0ca</code></a> Format with rustfmt 1.5.1-nightly</li> <li><a href="9eca262590"><code>9eca262</code></a> Release 0.9.1</li> <li><a href="1d7fc6b3a3"><code>1d7fc6b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/295">https://github.com/facebook/flipper/issues/295</a> from dtolnay/scan</li> <li>Additional commits viewable in <a href="https://github.com/dtolnay/serde-yaml/compare/0.8.24...0.9.2">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `dependabot rebase` will rebase this PR - `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `dependabot merge` will merge this PR after your CI passes on it - `dependabot squash and merge` will squash and merge this PR after your CI passes on it - `dependabot cancel merge` will cancel a previously requested merge and block automerging - `dependabot reopen` will reopen this PR if it is closed - `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Pull Request resolved: https://github.com/facebook/flipper/pull/3953 Reviewed By: passy Differential Revision: D38315898 Pulled By: LukeDefeo fbshipit-source-id: ca77f8dbfddf4e3e481289870911e35da1ed0fce
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