-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1356 from Wandalen/program_tools_v1
AUTO : Forward from program_tools_v1 to alpha
- Loading branch information
Showing
80 changed files
with
2,960 additions
and
1,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[program_tools_v1 0b9968c19] former : property hint - | ||
1 file changed, 1 insertion(+) | ||
Already up to date. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "clone_dyn" | ||
version = "0.16.0" | ||
version = "0.17.0" | ||
edition = "2021" | ||
authors = [ | ||
"Kostiantyn Wandalen <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "clone_dyn_meta" | ||
version = "0.16.0" | ||
version = "0.17.0" | ||
edition = "2021" | ||
authors = [ | ||
"Kostiantyn Wandalen <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "derive_tools" | ||
version = "0.22.0" | ||
version = "0.23.0" | ||
edition = "2021" | ||
authors = [ | ||
"Kostiantyn Wandalen <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
module/core/derive_tools/tests/inc/from_inner_variants_duplicates_some_off.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#![ allow( dead_code ) ] | ||
#[ allow( unused_imports ) ] | ||
use super::*; | ||
|
||
#[ derive( Debug, PartialEq, the_module::From ) ] | ||
// #[ debug ] | ||
pub enum GetData | ||
{ | ||
Nothing, | ||
Nothing2, | ||
#[ from( off ) ] | ||
FromString( String ), | ||
FromString2( String ), | ||
#[ from( off ) ] | ||
FromPair( String, String ), | ||
FromPair2( String, String ), | ||
FromBin( &'static [ u8 ] ), | ||
Nothing3, | ||
} | ||
|
||
// == begin of generated | ||
|
||
// == end of generated | ||
|
||
include!( "./only_test/from_inner_variants_duplicates.rs" ); |
27 changes: 27 additions & 0 deletions
27
module/core/derive_tools/tests/inc/from_inner_variants_duplicates_some_off_default_off.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#![ allow( dead_code ) ] | ||
#[ allow( unused_imports ) ] | ||
use super::*; | ||
|
||
#[ derive( Debug, PartialEq, the_module::From ) ] | ||
#[ from( off ) ] | ||
// #[ debug ] | ||
pub enum GetData | ||
{ | ||
Nothing, | ||
Nothing2, | ||
FromString( String ), | ||
#[ from( on ) ] | ||
// #[ from( debug ) ] | ||
FromString2( String ), | ||
FromPair( String, String ), | ||
#[ from( on ) ] | ||
FromPair2( String, String ), | ||
#[ from( on ) ] | ||
FromBin( &'static [ u8 ] ), | ||
Nothing3, | ||
} | ||
|
||
// == begin of generated | ||
// == end of generated | ||
|
||
include!( "./only_test/from_inner_variants_duplicates.rs" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
module/core/derive_tools/tests/inc/only_test/from_inner_variants_duplicates.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#[ allow( unused_imports ) ] | ||
use super::*; | ||
|
||
#[ test ] | ||
fn variant_from_duplicates() | ||
{ | ||
|
||
let got : GetData = From::from( &b"abc"[ .. ] ); | ||
let exp = GetData::FromBin( b"abc" ); | ||
a_id!( got, exp ); | ||
|
||
let got : GetData = From::from( "abc".to_string() ); | ||
let exp = GetData::FromString2( "abc".to_string() ); | ||
a_id!( got, exp ); | ||
|
||
let got : GetData = From::from( ( "a".to_string(), "b".to_string() ) ); | ||
let exp = GetData::FromPair2( "a".to_string(), "b".to_string() ); | ||
a_id!( got, exp ); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "derive_tools_meta" | ||
version = "0.21.0" | ||
version = "0.22.0" | ||
edition = "2021" | ||
authors = [ | ||
"Kostiantyn Wandalen <[email protected]>", | ||
|
@@ -63,7 +63,10 @@ derive_variadic_from = [] | |
[dependencies] | ||
macro_tools = { workspace = true, features = [ "full" ] } | ||
iter_tools = { workspace = true, features = [ "full" ] } | ||
# xxx : qqq : for Petro : optimize features set | ||
former_types = { workspace = true, features = [ "enabled", "types_component_assign" ] } | ||
const_format = { version = "0.2.32" } | ||
|
||
# qqq : optimize features set | ||
|
||
[dev-dependencies] | ||
test_tools = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.