commit | 2f1a65eb5d0eb876b37b7f174eb2d663f91c6cc3 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <[email protected]> | Fri Jul 19 13:33:01 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Fri Jul 19 13:33:01 2024 +0000 |
tree | d848186df1d5700888975a3f56ce3e1f3351a640 | |
parent | 400e02f105c6b23831c6d5359e13b8d1eecbc3d6 [diff] | |
parent | dd09380275b4c7adb04c7c9fb35456c256ebaad0 [diff] |
Update module with host_cross_supported am: dd09380275 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/syn-mid/+/3180524 Change-Id: I446daaaf1b79e48a93eedb8ca9fa734fd5f6d962 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.