From 4310e14e480359fb414b30bf35123fdf0f439c1a Mon Sep 17 00:00:00 2001 From: Inkvisto Date: Mon, 22 Jul 2024 12:20:04 +0300 Subject: [PATCH 1/2] willbe_former --- .../inc/former_tests/compiletime/field_attr_bad.stderr | 6 ------ .../inc/former_tests/compiletime/struct_attr_bad.stderr | 7 ------- module/core/former/tests/inc/mod.rs | 2 -- 3 files changed, 15 deletions(-) diff --git a/module/core/former/tests/inc/former_tests/compiletime/field_attr_bad.stderr b/module/core/former/tests/inc/former_tests/compiletime/field_attr_bad.stderr index 8162f72bf2..fb55aab9ef 100644 --- a/module/core/former/tests/inc/former_tests/compiletime/field_attr_bad.stderr +++ b/module/core/former/tests/inc/former_tests/compiletime/field_attr_bad.stderr @@ -1,9 +1,3 @@ -error: Unknown field attribute #[defaultx(31)] - --> tests/inc/former_tests/compiletime/field_attr_bad.rs:6:3 - | -6 | #[ defaultx( 31 ) ] - | ^^^^^^^^^^^^^^^^^^^ - error: cannot find attribute `defaultx` in this scope --> tests/inc/former_tests/compiletime/field_attr_bad.rs:6:6 | diff --git a/module/core/former/tests/inc/former_tests/compiletime/struct_attr_bad.stderr b/module/core/former/tests/inc/former_tests/compiletime/struct_attr_bad.stderr index 7425033f39..28318443e2 100644 --- a/module/core/former/tests/inc/former_tests/compiletime/struct_attr_bad.stderr +++ b/module/core/former/tests/inc/former_tests/compiletime/struct_attr_bad.stderr @@ -1,10 +1,3 @@ -error: Known structure attirbutes are : `storage_fields`, `perform`, `debug`. - Unknown structure attribute : #[defaultx] - --> tests/inc/former_tests/compiletime/struct_attr_bad.rs:4:1 - | -4 | #[ defaultx ] - | ^^^^^^^^^^^^^ - error: cannot find attribute `defaultx` in this scope --> tests/inc/former_tests/compiletime/struct_attr_bad.rs:4:4 | diff --git a/module/core/former/tests/inc/mod.rs b/module/core/former/tests/inc/mod.rs index 30563db874..30bcd81c0f 100644 --- a/module/core/former/tests/inc/mod.rs +++ b/module/core/former/tests/inc/mod.rs @@ -196,8 +196,6 @@ only_for_terminal_module! fn former_trybuild() { - assert!( false ); - println!( "current_dir : {:?}", std::env::current_dir().unwrap() ); let t = test_tools::compiletime::TestCases::new(); From b278ec6a98bf80537d82977aa53be033ef3bf1b8 Mon Sep 17 00:00:00 2001 From: Inkvisto Date: Mon, 22 Jul 2024 13:20:11 +0300 Subject: [PATCH 2/2] ref: cargo.toml futures ref --- module/core/former/Cargo.toml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/module/core/former/Cargo.toml b/module/core/former/Cargo.toml index 8daab36ac1..660e4977d2 100644 --- a/module/core/former/Cargo.toml +++ b/module/core/former/Cargo.toml @@ -44,15 +44,7 @@ default = [ "types_component_assign", ] full = [ - "enabled", - "derive_former", - "derive_components", - "derive_component_from", - "derive_component_assign", - "derive_components_assign", - "derive_from_components", - "types_former", - "types_component_assign", + "default", ] enabled = [ "former_meta/enabled", "former_types/enabled" ]