Bug: 157243205

Clone this repo:
  1. 55de903 Refresh Android.bp, cargo2android.json, TEST_MAPPING. by Joel Galenson · 7 weeks ago master
  2. 0f636ae [automerger skipped] Mark ab/7061308 as merged in stage. am: 2bde94d36c -s ours am: 84f89fb9ee -s ours by Xin Li · 11 months ago android-s-v2-preview-1 android12--mainline-release android12-dev android12-qpr1-d-release android12-qpr1-d-s1-release android12-qpr1-d-s2-release android12-qpr1-d-s3-release android12-qpr1-release android-12.0.0_r16 android-12.0.0_r18 android-12.0.0_r19 android-12.0.0_r20 android-12.0.0_r21 android-12.0.0_r26 android-12.0.0_r27 android-mainline-12.0.0_r4 android-s-v2-beta-2 android-s-v2-preview-2
  3. 84f89fb [automerger skipped] Mark ab/7061308 as merged in stage. am: 2bde94d36c -s ours by Xin Li · 11 months ago
  4. 2bde94d Mark ab/7061308 as merged in stage. by Xin Li · 11 months ago android-s-beta-4 android-s-beta-5 android-s-beta-1 android-s-beta-2 android-s-beta-3
  5. 3f86327 [LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/syn-mid am: 478f08ef80 am: 2a064d2576 am: 483b3168f7 by Bob Badour · 11 months ago

syn-mid

crates.io docs.rs license rustc build status

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.

Usage

Add this to your Cargo.toml:

[dependencies]
syn-mid = "0.5"

Compiler support: requires rustc 1.31+

Examples

Optional features

  • clone-impls — Clone impls for all syntax tree types.

License

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.