commit | dd09380275b4c7adb04c7c9fb35456c256ebaad0 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <[email protected]> | Wed Jul 17 19:27:25 2024 +0000 |
committer | Ivan Lozano <[email protected]> | Wed Jul 17 19:27:25 2024 +0000 |
tree | d848186df1d5700888975a3f56ce3e1f3351a640 | |
parent | e10a33dfbb35700624db5bb14ca04f26d054d057 [diff] |
Update module with host_cross_supported Bug: 353739440 Test: m rust Change-Id: Ic9758f71323dd6ffe0a89dddebb62b6c17a1386b
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.