enclose-1.1.8/.gitignore010064400017500001751000000005001353002111700133470ustar0000000000000000# Generated by Cargo # will have compiled files and executables /target/ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html Cargo.lock # These are backup files generated by rustfmt **/*.rs.bk enclose-1.1.8/.travis.yml010064400017500001751000000003131353002111700134720ustar0000000000000000language: rust cache: cargo rust: - stable - beta - nightly branches: only: - master matrix: allow_failures: - rust: nightly script: - cargo build --verbose - cargo test --verbose enclose-1.1.8/Cargo.toml.orig010064400017500001751000000007301353002111700142530ustar0000000000000000[package] name = "enclose" version = "1.1.8" authors = ["Denis Kotlyarov (Денис Котляров) "] repository = "https://github.com/clucompany/Enclose.git" homepage = "https://crates.io/crates/enclose" license = "MIT" readme = "README.md" edition = "2018" description = "A convenient macro for cloning values into a closure." keywords = ["enclose", "enclose_macro", "macro", "clucompany"] categories = ["development-tools"] [dependencies] enclose-1.1.8/Cargo.toml0000644000000017440000000000000105360ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "enclose" version = "1.1.8" authors = ["Denis Kotlyarov (Денис Котляров) "] description = "A convenient macro for cloning values into a closure." homepage = "https://crates.io/crates/enclose" readme = "README.md" keywords = ["enclose", "enclose_macro", "macro", "clucompany"] categories = ["development-tools"] license = "MIT" repository = "https://github.com/clucompany/Enclose.git" [dependencies] enclose-1.1.8/LICENSE010064400017500001751000000021461353002111700123740ustar0000000000000000MIT License Copyright (c) 2019 #UlinProject Denis Kotlyarov (Денис Котляров) cluCompany Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. enclose-1.1.8/README.md010064400017500001751000000054641353002111700126540ustar0000000000000000# Enclose A convenient macro for cloning values into a closure. [![Build Status](https://travis-ci.org/clucompany/Enclose.svg?branch=master)](https://travis-ci.org/clucompany/Enclose) [![Apache licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![crates.io](http://meritbadge.herokuapp.com/enclose)](https://crates.io/crates/enclose) [![Documentation](https://docs.rs/enclose/badge.svg)](https://docs.rs/enclose) # Use ```rust use enclose::enclose; fn main() { let clone_data = 0; let add_data = 100; my_enclose( enclose!((mut clone_data, add_data) || { println!("#0 {:?}", clone_data); clone_data += add_data; println!("#1 {:?}", clone_data); assert_eq!(clone_data, 100); })); assert_eq!(clone_data, 0); } fn my_enclose R, R>(a: F) -> R { a() } ``` # Use 1 ```rust use std::sync::Arc; use std::sync::Mutex; use std::thread; use enclose::enclose; fn main() { let mutex_data = Arc::new(Mutex::new( 0 )); let thread = thread::spawn( enclose!((mutex_data => d) move || { let mut lock = match d.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; *lock += 1; })); thread.join().unwrap(); { let lock = match mutex_data.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*lock, 1); } } ``` # Use 2 ```rust use std::sync::Arc; use std::sync::Mutex; use std::sync::RwLock; use std::thread; use enclose::enclose; fn main() { let data1 = Arc::new(Mutex::new( 0 )); let data2 = Arc::new(RwLock::new( (0, 2, 3, 4) )); let count_thread = 5; let mut waits = Vec::with_capacity(count_thread); for _a in 0..count_thread { waits.push({ thread::spawn( enclose!((data1, data2) move || { //(data1, data2) -> //let data1 = 'root.data1.clone(); //let data2 = 'root.data2.clone(); let mut v_lock = match data1.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; *v_lock += 1; drop( data2 ); //ignore warning })) }); } for a in waits { a.join().unwrap(); } { //Check data1_lock let data1_lock = match data1.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*data1_lock, 5); } { //Check data2_lock let data2_lock = match data2.write() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*data2_lock, (0, 2, 3, 4)); } } ``` # Use 3 ```rust use enclose::enclose; use std::sync::Arc; fn main() { let clone_data = Arc::new(0); let add_data = Arc::new(100); my_enclose( enclose!((mut *clone_data, *add_data) || { println!("#0 {:?}", clone_data); clone_data += add_data; println!("#1 {:?}", clone_data); assert_eq!(clone_data, 100); })); assert_eq!(*clone_data, 0); } fn my_enclose R, R>(a: F) -> R { a() } ``` # License Copyright 2019 #UlinProject (Denis Kotlyarov) Денис Котляров Licensed under the MIT License enclose-1.1.8/examples/cogitri_issue.rs010064400017500001751000000024371353002402200164240ustar0000000000000000 //https://github.com/clucompany/Enclose/issues/1 /* error: no rules expected the token `.` --> src/editview/src/view_item.rs:154:38 | 154 | enclose!((edit_view, self.gestures.drag_data => drag_data) move |_, start_x, start_y| { | ^ no rules expected this token in macro call */ //thank! //14.08.2019 13:48 Minsk/Europe UTC+03:00 //UlinKot 1819 use enclose::run_enclose; #[derive(Debug, Clone, PartialEq, PartialOrd)] struct CheckData { a: u32, } impl CheckData { #[inline] pub const fn new(a: u32) -> Self { Self { a: a, } } pub fn calculate(&self, mul_num: &u32) -> u32 { //let mut num0 = self.a.clone(); //let mul_num = *mul_num; //analog, enclose!((edit_view, self.gestures.drag_data => drag_data) move |_, start_x, start_y| { run_enclose!((*mul_num, self.a => mut num0) move || { num0 *= mul_num; num0 += 1024; num0 }) //run_enclose // //let mut enclose = $crate::enclose!( $($tt)* ); //enclose() } } fn main() { let data = CheckData::new(1024); let calculate = data.calculate(&2); //(data.a * 2) + 1024 assert_eq!(calculate, 3072); //check data assert_eq!(data.a, 1024); println!("#0 {:?}", data); println!("#! calculate: {}", calculate); println!("#1 {:?}", data); }enclose-1.1.8/examples/deref_use.rs010064400017500001751000000006211353002111700155100ustar0000000000000000 use enclose::enclose; use std::sync::Arc; fn main() { let clone_data = Arc::new(0); let add_data = Arc::new(100); my_enclose( enclose!((mut *clone_data, *add_data) || { println!("#0 {:?}", clone_data); clone_data += add_data; println!("#1 {:?}", clone_data); assert_eq!(clone_data, 100); })); assert_eq!(*clone_data, 0); } fn my_enclose R, R>(a: F) -> R { a() }enclose-1.1.8/examples/hard_use.rs010064400017500001751000000017661353002111700153540ustar0000000000000000 use std::sync::Arc; use std::sync::Mutex; use std::sync::RwLock; use std::thread; use enclose::enclose; fn main() { let data1 = Arc::new(Mutex::new( 0 )); let data2 = Arc::new(RwLock::new( (0, 2, 3, 4) )); let count_thread = 5; let mut waits = Vec::with_capacity(count_thread); for _a in 0..count_thread { waits.push({ thread::spawn( enclose!((data1, data2) move || { //(data1, data2) -> //let data1 = 'root.data1.clone(); //let data2 = 'root.data2.clone(); let mut v_lock = match data1.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; *v_lock += 1; drop( data2 ); //ignore warning })) }); } for a in waits { a.join().unwrap(); } { //Check data1_lock let data1_lock = match data1.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*data1_lock, 5); } { //Check data2_lock let data2_lock = match data2.write() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*data2_lock, (0, 2, 3, 4)); } }enclose-1.1.8/examples/mut_use.rs010064400017500001751000000005461353002111700152360ustar0000000000000000 use enclose::enclose; fn main() { let clone_data = 0; let add_data = 100; my_enclose( enclose!((mut clone_data, add_data) || { println!("#0 {:?}", clone_data); clone_data += add_data; println!("#1 {:?}", clone_data); assert_eq!(clone_data, 100); })); assert_eq!(clone_data, 0); } fn my_enclose R, R>(a: F) -> R { a() }enclose-1.1.8/examples/mutex_use.rs010064400017500001751000000011211353002111700155610ustar0000000000000000 use std::sync::Arc; use std::sync::Mutex; use std::thread; use enclose::enclose; fn main() { let mutex_left_data = Arc::new(Mutex::new( 0 )); let right_data = Arc::new(1); let thread = thread::spawn( enclose!((mutex_left_data, right_data) move || { let mut lock = match mutex_left_data.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; *lock += *right_data; })); thread.join().unwrap(); { let left_data = match mutex_left_data.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*left_data, *right_data); // if *left_data == *right_data } } enclose-1.1.8/examples/rename_use.rs010064400017500001751000000007111353002111700156720ustar0000000000000000 use std::sync::Arc; use std::sync::Mutex; use std::thread; use enclose::enclose; fn main() { let mutex_data = Arc::new(Mutex::new( 0 )); let thread = thread::spawn( enclose!((mutex_data => d) move || { let mut lock = match d.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; *lock += 1; })); thread.join().unwrap(); { let lock = match mutex_data.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*lock, 1); } } enclose-1.1.8/src/lib.rs010064400017500001751000000261131353002465000132770ustar0000000000000000//Copyright (c) 2019 #UlinProject Denis Kotlyarov (Денис Котляров) //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell //copies of the Software, and to permit persons to whom the Software is //furnished to do so, subject to the following conditions: //The above copyright notice and this permission notice shall be included in all //copies or substantial portions of the Software. //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE //SOFTWARE. // #Ulin Project 1819 /*! A convenient macro for cloning values into a closure. # Use ``` use enclose::enclose; fn main() { let clone_data = 0; let add_data = 100; my_enclose( enclose!((mut clone_data, add_data) || { println!("#0 {:?}", clone_data); clone_data += add_data; println!("#1 {:?}", clone_data); assert_eq!(clone_data, 100); })); assert_eq!(clone_data, 0); } fn my_enclose R, R>(a: F) -> R { a() } ``` # Use 1 ``` use std::sync::Arc; use std::sync::Mutex; use std::thread; use enclose::enclose; fn main() { let mutex_data = Arc::new(Mutex::new( 0 )); let thread = thread::spawn( enclose!((mutex_data => d) move || { let mut lock = match d.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; *lock += 1; })); thread.join().unwrap(); { let lock = match mutex_data.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*lock, 1); } } ``` # Use 2 ``` use std::sync::Arc; use std::sync::Mutex; use std::sync::RwLock; use std::thread; use enclose::enclose; fn main() { let data1 = Arc::new(Mutex::new( 0 )); let data2 = Arc::new(RwLock::new( (0, 2, 3, 4) )); let count_thread = 5; let mut waits = Vec::with_capacity(count_thread); for _a in 0..count_thread { waits.push({ thread::spawn( enclose!((data1, data2) move || { //(data1, data2) -> //let data1 = 'root.data1.clone(); //let data2 = 'root.data2.clone(); let mut v_lock = match data1.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; *v_lock += 1; drop( data2 ); //ignore warning })) }); } for a in waits { a.join().unwrap(); } { //Check data1_lock let data1_lock = match data1.lock() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*data1_lock, 5); } { //Check data2_lock let data2_lock = match data2.write() { Ok(a) => a, Err(e) => e.into_inner(), }; assert_eq!(*data2_lock, (0, 2, 3, 4)); } } ``` # Use 3 ``` use enclose::enclose; use std::sync::Arc; fn main() { let clone_data = Arc::new(0); let add_data = Arc::new(100); my_enclose( enclose!((mut *clone_data, *add_data) || { println!("#0 {:?}", clone_data); clone_data += add_data; println!("#1 {:?}", clone_data); assert_eq!(clone_data, 100); })); assert_eq!(*clone_data, 0); } fn my_enclose R, R>(a: F) -> R { a() } ``` */ ///To create and start short circuit. ///```rust ///use enclose::run_enclose; /// ///#[derive(Debug, Default)] ///struct StructData { /// a: i32, ///} /// ///let data = StructData::default(); /// ///run_enclose!((data.a => mut num_data) || { /// num_data += 1; /// assert_eq!(num_data, 1); ///}); /// /// ///assert_eq!(data.a, 0); ///``` #[macro_export] macro_rules! run_enclose { [$($tt:tt)*] => {{ #[allow(unused_mut)] let mut enclose = $crate::enclose!( $($tt)* ); enclose() }} } ///To create and start short circuit. Alternative short record. ///```rust ///use enclose::run_enc; /// ///#[derive(Debug, Default)] ///struct StructData { /// a: i32, ///} /// ///let data = StructData::default(); /// ///run_enc!((data.a => mut num_data) || { /// num_data += 1; /// assert_eq!(num_data, 1); ///}); /// /// ///assert_eq!(data.a, 0); ///``` #[macro_export] macro_rules! run_enc { [$($tt:tt)*] => {{ let mut enclose = $crate::enc!( $($tt)* ); enclose() }} } ///Macro for cloning values to close. #[macro_export] macro_rules! enclose { [@deprecated ( $($tt:tt)* ) $b:expr ] => {{ $crate::enclose_data! { $( $tt )* } $b }}; //deprecated method. [@!prev ( $($d_tt:tt)* ) move || $($b:tt)* ] => {{ move || { $crate::enclose_data! { $( $d_tt )* } $($b)* } }}; [( $($d_tt:tt)* ) move || $($b:tt)* ] => {{ $crate::enclose_data! { $( $d_tt )* } move || $($b)* }}; [@prev ( $($d_tt:tt)* ) || $($b:tt)* ] => {{ $crate::enclose_data! { $( $d_tt )* } || $($b)* }}; [( $($d_tt:tt)* ) || $($b:tt)* ] => {{ || { $crate::enclose_data! { $( $d_tt )* } $($b)* } }}; //end, empty enclose [@!prev ( $($d_tt:tt)* ) move |$( $all_data:tt ),*| $($b:tt)* ] => {{ move |$($all_data),*| { $crate::enclose_data! { $( $d_tt )* } $($b)* } }}; [( $($d_tt:tt)* ) move |$( $all_data:tt ),*| $($b:tt)* ] => {{ $crate::enclose_data! { $( $d_tt )* } move |$($all_data),*| $($b)* }}; [@prev ( $($d_tt:tt)* ) |$( $all_data:tt ),*| $($b:tt)* ] => {{ $crate::enclose_data! { $( $d_tt )* } |$( $all_data ),*| $($b)* }}; [( $($d_tt:tt)* ) |$( $all_data:tt ),*| $($b:tt)* ] => {{ |$( $all_data ),*| { $crate::enclose_data! { $( $d_tt )* } $($b)* } }}; /* data.run_closure2( enclose!(() StructData::null_fn) ); */ [( $($d_tt:tt)* ) $($b:tt)* ] => {{ $crate::enclose_data! { $( $d_tt )* } $($b)* }}; () => () } ///Macro for cloning values to close. Alternative short record. #[macro_export] macro_rules! enc { [$($tt:tt)*] => { $crate::enclose!{ $($tt)* } }; } #[doc(hidden)] #[macro_export] macro_rules! enclose_data { [ *$a: expr => mut $b: ident, $($tt:tt)*] => { let mut $b = *$a; $crate::enclose_data!{ $($tt)* } }; [ $a: expr => mut $b: ident, $($tt:tt)*] => { let mut $b = $a.clone(); $crate::enclose_data!{ $($tt)* } }; [ *$a: expr => $b: ident, $($tt:tt)*] => { let $b = *$a; $crate::enclose_data!{ $($tt)* } }; [ $a: expr => $b: ident, $($tt:tt)*] => { let $b = $a.clone(); $crate::enclose_data!{ $($tt)* } }; [ mut *$a: ident, $($tt:tt)*] => { let mut $a = *$a; $crate::enclose_data!{ $($tt)* } }; [ mut $a: ident, $($tt:tt)*] => { let mut $a = $a.clone(); $crate::enclose_data!{ $($tt)* } }; [ *$a: ident, $($tt:tt)*] => { let $a = *$a; $crate::enclose_data!{ $($tt)* } }; [ $a: ident, $($tt:tt)*] => { let $a = $a.clone(); $crate::enclose_data!{ $($tt)* } }; //NO ,! [ *$a: expr => mut $b: ident] => { let mut $b = *$a; }; [ $a: expr => mut $b: ident] => { let mut $b = $a.clone(); }; [ *$a: expr => $b: ident] => { let $b = *$a; }; [ $a: expr => $b: ident] => { let $b = $a.clone(); }; [ mut *$a: ident] => { let $a = *$a; }; [ mut $a: ident] => { let mut $a = $a.clone(); }; [ *$a: ident] => { let $a = *$a; }; [ $a: ident] => { let $a = $a.clone(); }; () => () } #[cfg(test)] mod tests { use std::thread; use std::sync::Arc; use std::sync::Mutex; use std::sync::MutexGuard; use std::sync::RwLock; struct MutexSafeData(Mutex); impl MutexSafeData { #[inline] pub fn new(def: usize) -> Self { MutexSafeData(Mutex::new(def)) } pub fn set(&self, size: usize) { *self.get_mut() = size; } pub fn get_mut<'a>(&'a self) -> MutexGuard<'a, usize> { match self.0.lock() { Ok(a) => a, Err(e) => e.into_inner(), } } } #[test] fn easy() { let mutex_data = Arc::new(MutexSafeData::new(0)); let thread = thread::spawn( enclose!((mutex_data) move || { //NEW THREAD, NEW ARC! //let data = data.clone(); mutex_data.set(10); })); thread.join().unwrap(); assert_eq!(*mutex_data.get_mut(), 10); } #[test] fn easy_extract() { let mutex_data = Arc::new(MutexSafeData::new(0)); let thread = thread::spawn( enclose!((mutex_data => new_data) move || { //NEW THREAD, NEW ARC! //let data = data.clone(); new_data.set(10); })); thread.join().unwrap(); assert_eq!(*mutex_data.get_mut(), 10); } #[test] fn easy_2name() { let safe_data = Arc::new(MutexSafeData::new(0)); let v2 = Arc::new(RwLock::new( (0, 2, 3, 4) )); let count_thread = 5; let mut join_all = Vec::with_capacity(count_thread); for _a in 0..count_thread { join_all.push({ thread::spawn( enclose!((safe_data, v2) move || { *safe_data.get_mut() += 1; drop( v2 ); //ignore warning })) }); } for a in join_all { a.join().unwrap(); } assert_eq!(*safe_data.get_mut(), 5); } #[test] fn clone_mut_data() { let data = 10; run_enclose!((data => mut new_data) || { //let mut new_data = data; new_data += 1; assert_eq!(new_data, 11); }); assert_eq!(data, 10); } #[test] fn appeal_data() { #[derive(Debug, Default)] struct StructData { a: i32, } impl StructData { fn run_closure(&self, f: F) { f(0, 0) } fn run_closure2(&self, f: F) { f(0,0) } fn null_fn(_a: u64, _b: i32) {} } let data = StructData::default(); data.run_closure(enclose!((data.a => mut num_data) |_, num| { num_data += 1; num_data += num; assert_eq!(num_data, 1); })); data.run_closure(enclose!((data.a => mut num_data) move |_, num| { num_data += 1; num_data += num; assert_eq!(num_data, 1); })); run_enclose!( (data.a => _a) || StructData::null_fn ); data.run_closure2( enclose!(() StructData::null_fn) ); assert_eq!(data.a, 0); } #[test] fn check_copy_clone_operations() { static mut CHECK_COPY_CLONE_OPERATIONS: u32 = 0; #[derive(Debug)] struct AlwaysClone; impl Clone for AlwaysClone { #[inline] fn clone(&self) -> Self { unsafe{ CHECK_COPY_CLONE_OPERATIONS += 1; } AlwaysClone } } impl Copy for AlwaysClone {} let data = AlwaysClone; assert_eq!(unsafe{ CHECK_COPY_CLONE_OPERATIONS }, 0); //Checking the number of operations run_enclose!((data => d) || { assert_eq!(unsafe{ CHECK_COPY_CLONE_OPERATIONS }, 1); //Checking the number of operations std::thread::spawn(enclose!((d) move || { assert_eq!(unsafe{ CHECK_COPY_CLONE_OPERATIONS }, 2); //Checking the number of operations run_enclose!((d) || { run_enclose!((d => _d) move || { //'Move 'is not mandatory here, but since the semantics of the macro are different, we will leave it here for tests. }); }); assert_eq!(unsafe{ CHECK_COPY_CLONE_OPERATIONS }, 4); //Checking the number of operations })).join().unwrap(); }); //Checking the number of operations, //Closure = 2 assert_eq!(unsafe { CHECK_COPY_CLONE_OPERATIONS }, 4); } } enclose-1.1.8/.cargo_vcs_info.json0000644000000001120000000000000125240ustar00{ "git": { "sha1": "8d9111400948efa3b6c8337b2a5e6fad1bfdf09f" } } enclose-1.1.8/Cargo.lock0000644000000002120000000000000105000ustar00# This file is automatically @generated by Cargo. # It is not intended for manual editing. [[package]] name = "enclose" version = "1.1.8"