commit | 21e3a6c47e771e6158a0012063d1d99bdeaca4f1 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Thu Nov 16 00:04:56 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Nov 16 00:04:56 2023 +0000 |
tree | b95f13e5d0581ae8c48bed8555edb24f80bfa7ba | |
parent | 129301cc8a06384523784f740016f0e251fe2fca [diff] | |
parent | 28bc4652aea937bd74d6ba93a64d2ff26160dbb8 [diff] |
Upgrade syn-mid to 0.6.0 am: 336bed4254 am: d8fdf40716 am: 28bc4652ae Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/syn-mid/+/2832419 Change-Id: I8fed778ab61523f16dd166456239848e34b132b1 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.