Add METADATA / Licensing info

Change-Id: I9e32c5080eaa0a10367a0c6a78e82fb0d1b13dcb
4 files changed
tree: db57ecc1e7aec063f939b01ccbe7b3375b9769dd
  1. .cargo_vcs_info.json
  2. .editorconfig
  3. .gitattributes
  4. .github/
  5. .gitignore
  6. .rustfmt.toml
  7. CHANGELOG.md
  8. Cargo.toml
  9. Cargo.toml.orig
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. README.md
  15. ci/
  16. src/
README.md

syn-mid

crates-badge docs-badge license-badge rustc-badge

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"

The current syn-mid requires Rust 1.31 or later.

Examples

Documentation

Optional features

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

License

Licensed under either of

at your option.

Contribution

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.