Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | 23-Nov-2023 | - | 862 | 682 | ||
.cargo_vcs_info.json | D | 23-Nov-2023 | 74 | 6 | 5 | |
.clippy.toml | D | 23-Nov-2023 | 14 | 2 | 1 | |
.editorconfig | D | 23-Nov-2023 | 313 | 21 | 16 | |
.gitattributes | D | 23-Nov-2023 | 19 | 2 | 1 | |
.gitignore | D | 23-Nov-2023 | 272 | 7 | 5 | |
.rustfmt.toml | D | 23-Nov-2023 | 1.4 KiB | 35 | 29 | |
Android.bp | D | 23-Nov-2023 | 2.1 KiB | 71 | 65 | |
CHANGELOG.md | D | 23-Nov-2023 | 2 KiB | 78 | 44 | |
Cargo.toml | D | 23-Nov-2023 | 1.3 KiB | 44 | 39 | |
Cargo.toml.orig | D | 23-Nov-2023 | 951 | 32 | 27 | |
LICENSE | D | 23-Nov-2023 | 9.9 KiB | 178 | 150 | |
LICENSE-APACHE | D | 23-Nov-2023 | 9.9 KiB | 178 | 150 | |
LICENSE-MIT | D | 23-Nov-2023 | 1,023 | 24 | 21 | |
METADATA | D | 23-Nov-2023 | 397 | 20 | 19 | |
MODULE_LICENSE_APACHE2 | D | 23-Nov-2023 | 0 | |||
NOTICE | D | 23-Nov-2023 | 9.9 KiB | 178 | 150 | |
OWNERS | D | 23-Nov-2023 | 40 | 2 | 1 | |
README.md | D | 23-Nov-2023 | 1.8 KiB | 58 | 38 |
README.md
1# syn-mid 2 3[![crates.io](https://img.shields.io/crates/v/syn-mid.svg?style=flat-square&logo=rust)](https://crates.io/crates/syn-mid) 4[![docs.rs](https://img.shields.io/badge/docs.rs-syn--mid-blue?style=flat-square)](https://docs.rs/syn-mid) 5[![license](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue.svg?style=flat-square)](#license) 6[![rustc](https://img.shields.io/badge/rustc-1.31+-blue.svg?style=flat-square)](https://www.rust-lang.org) 7[![build status](https://img.shields.io/github/workflow/status/taiki-e/syn-mid/CI/master?style=flat-square)](https://github.com/taiki-e/syn-mid/actions?query=workflow%3ACI+branch%3Amaster) 8 9Providing the features between "full" and "derive" of syn. 10 11This crate provides the following two unique data structures. 12 13- `syn_mid::ItemFn` -- A function whose body is not parsed. 14 15 ```text 16 fn process(n: usize) -> Result<()> { ... } 17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^ 18 ``` 19 20- `syn_mid::Block` -- A block whose body is not parsed. 21 22 ```text 23 { ... } 24 ^ ^ 25 ``` 26 27Other data structures are the same as data structures of [syn]. These are 28defined in this crate because they cannot be used in [syn] without "full" 29feature. 30 31[syn]: https://github.com/dtolnay/syn 32 33## Usage 34 35Add this to your `Cargo.toml`: 36 37```toml 38[dependencies] 39syn-mid = "0.5" 40``` 41 42*Compiler support: requires rustc 1.31+* 43 44[**Examples**](examples) 45 46## Optional features 47 48- **`clone-impls`** — Clone impls for all syntax tree types. 49 50## License 51 52Licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or 53[MIT license](LICENSE-MIT) at your option. 54 55Unless you explicitly state otherwise, any contribution intentionally submitted 56for inclusion in the work by you, as defined in the Apache-2.0 license, shall 57be dual licensed as above, without any additional terms or conditions. 58