commit | e4ce8511072e69ee4bc652856337a945c4ab0176 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Aug 27 18:30:01 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 27 18:30:01 2020 +0000 |
tree | c6ca34ec53e9a6cd8790000cbe2c25ff1465fbd1 | |
parent | be17ba159152b21f8aac4d99a31885fa9cfa1efc [diff] | |
parent | 6b0d266d0b2a0c3cf646f98441dd8408a6e75fe8 [diff] |
[automerger skipped] Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged am: 6b0d266d0b -s ours am skip reason: Change-Id I8ff480dd2e7d7e9cdcc498d91cbaf5b385487a94 with SHA-1 9a1f0f2cb8 is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/syn-mid/+/12469941 Change-Id: I1156c446d033c8db363622ff2343879d2d43bc99
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"
The current syn-mid requires Rust 1.31 or later.
clone-impls
— Clone impls for all syntax tree types.Licensed under either of
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.