commit | 5126965c506c0401004a698d2c909223213d1f01 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 15 16:43:10 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 15 16:43:10 2021 +0000 |
tree | fd03f94c918973c95c752e8f728ce1ea606ae9f2 | |
parent | 0f636ae4b1736bf963788627f665bbc073a9b76c [diff] | |
parent | dd9c11272621ad0987e9706f99fa193cc87945a2 [diff] |
Refresh Android.bp, cargo2android.json, TEST_MAPPING. am: 55de903d08 am: dd9c112726 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/syn-mid/+/1912455 Change-Id: I197c9e534c2cd86cd3e72696e3bd9e4fbe3499dc
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.31+
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.