commit | 456bc78c98d6eb814c83509757477375b43a98c5 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Wed Nov 15 23:35:27 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 15 23:35:27 2023 +0000 |
tree | b5292124981f207ffbb2a12b3a78d6e5a65c0d77 | |
parent | bfe5f6874ddff3bdededdbad428b47ca9f2dd5b1 [diff] | |
parent | 62b396558291aa2926431d39649b2e52fd621488 [diff] |
Upgrade syn-mid to 0.6.0 am: 336bed4254 am: 62b3965582 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/syn-mid/+/2832419 Change-Id: If76e62595108d47b5d786631b00e1362db7bdde3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Providing the features between "full" and "derive" of syn.
This crate provides the following two unique data structures.
syn_mid::ItemFn
-- A function whose body is not parsed.
fn process(n: usize) -> Result<()> { ... } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^
syn_mid::Block
-- A block whose body is not parsed.
{ ... } ^ ^
Other data structures are the same as data structures of syn. These are defined in this crate because they cannot be used in syn without "full" feature.
Add this to your Cargo.toml
:
[dependencies] syn-mid = "0.5"
Compiler support: requires rustc 1.56+
clone-impls
— Clone impls for all syntax tree types.Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.