Skip to content

Commit

Permalink
1. Added code of conduct
Browse files Browse the repository at this point in the history
2. Increasing the “edition” of rust until 2021
3. Minor fixes
4. Improved documentation
5. Updating the version to 1.2.0.
  • Loading branch information
denisandroid committed Apr 8, 2024
1 parent 426646e commit d0ae106
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
1 change: 1 addition & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## CODE_OF_CONDUCT.md
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "enclose"
version = "1.1.9"
version = "1.2.0"
authors = ["Denis Kotlyarov (Денис Котляров) <denis2005991@gmail.com>"]
repository = "https://github.com/clucompany/Enclose.git"
homepage = "https://crates.io/crates/enclose"
license = "MIT/Apache-2.0"
readme = "README.md"
edition = "2018"
edition = "2021"

description = "A convenient macro for cloning values into a closure."
keywords = ["enclose", "enclose_macro", "macro", "no_std", "clucompany"]
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2019-2020 #UlinProject (Denis Kotlyarov) Денис Котляров
Copyright 2019-2024 #UlinProject (Denis Kotlyarov) Денис Котляров
-------------------------------------------------------------------------------
Apache License
Version 2.0, January 2004
Expand Down
2 changes: 0 additions & 2 deletions LICENSE_MIT
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
MIT License

Copyright [yyyy] [name of copyright owner]

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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fn my_enclose<F: FnOnce() -> R, R>(a: F) -> R {

### License

Copyright 2019-2020 #UlinProject (Denis Kotlyarov) Денис Котляров
Copyright 2022 #UlinProject (Denis Kotlyarov) Денис Котляров

Licensed under the MIT License

Expand Down
5 changes: 4 additions & 1 deletion src/enclose/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ mod var;
mod prev;
mod ignore_prev;

#[allow(unused_imports)]
pub use self::var::*;
#[allow(unused_imports)]
pub use self::prev::*;
#[allow(unused_imports)]
pub use self::ignore_prev::*;

/// A macro for creating a closure, as well as cloning, copying values ​​into the closure.
Expand Down Expand Up @@ -105,7 +108,7 @@ macro_rules! enclose {
[] => {};
}

///Macro for cloning values to close. Alternative short record.
/// Macro for cloning values to close. Alternative short record.
#[macro_export]
macro_rules! enc {
[$($tt:tt)*] => {
Expand Down
17 changes: 7 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Copyright (c) 2019-2020 #UlinProject Denis Kotlyarov (Денис Котляров)
//Copyright (c) 2019-2024 #UlinProject Denis Kotlyarov (Денис Котляров)

//-----------------------------------------------------------------------------
//Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -35,7 +35,7 @@
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
//SOFTWARE.

// #Ulin Project 20
// #Ulin Project 2022
// #Ulin Project 1819

/*!
Expand Down Expand Up @@ -200,19 +200,12 @@ fn my_enclose<F: FnOnce() -> R, R>(a: F) -> R {
}
```
### License
Copyright 2019-2020 #UlinProject (Denis Kotlyarov) Денис Котляров
Licensed under the MIT License
Licensed under the Apache License, Version 2.0
*/

#![no_std]

mod enclose;
#[allow(unused_imports)]
pub use self::enclose::*;

// ext
Expand All @@ -221,10 +214,13 @@ mod enclose_ext {
mod run;
mod set;

#[allow(unused_imports)]
pub use self::run::*;
#[allow(unused_imports)]
pub use self::set::*;
}

#[allow(unused_imports)]
#[cfg(not(disable_ext))]
pub use self::enclose_ext::*;
//
Expand All @@ -233,6 +229,7 @@ pub use self::enclose_ext::*;
#[cfg(not(disable_dep))]
mod dep;

#[allow(unused_imports)]
#[cfg(not(disable_dep))]
pub use self::dep::*;
//

0 comments on commit d0ae106

Please sign in to comment.