commit | 400e02f105c6b23831c6d5359e13b8d1eecbc3d6 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed May 22 23:45:03 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed May 22 23:45:03 2024 +0000 |
tree | 932c18524b61c222706669388ae4bc21db73869a | |
parent | af68bf99ca6c35f44c4ec225f7c5d37a20e2873b [diff] | |
parent | e10a33dfbb35700624db5bb14ca04f26d054d057 [diff] |
Update Android.bp by running cargo_embargo am: 8686508165 am: e10a33dfbb Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/syn-mid/+/3096418 Change-Id: I95cd726d93f0e98ad43222e2690a2a76ffb5b2ff Signed-off-by: Automerger Merge Worker <[email protected]>
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.