Migrate to cargo_embargo. am: d00ce5421d am: 10834ab64a am: bbb41e98bf

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/syn-mid/+/2832420

Change-Id: I4d35ee319fb7ce0d56abfffaa58f85d7cd5993aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
tree: b5292124981f207ffbb2a12b3a78d6e5a65c0d77
  1. src/
  2. .cargo_vcs_info.json
  3. .gitignore
  4. Android.bp
  5. Cargo.toml
  6. Cargo.toml.orig
  7. cargo_embargo.json
  8. CHANGELOG.md
  9. LICENSE-APACHE
  10. LICENSE-MIT
  11. METADATA
  12. MODULE_LICENSE_APACHE2
  13. OWNERS
  14. README.md
README.md

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.56+

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.