From 02b0fb76070eb811f6bce73d258a247675b74bc6 Mon Sep 17 00:00:00 2001 From: wandalen Date: Sat, 29 Jun 2024 21:02:06 +0300 Subject: [PATCH] publishing --- module/core/former_meta/Cargo.toml | 12 +++--------- module/core/macro_tools/src/diag.rs | 18 ++++++------------ module/core/macro_tools/src/lib.rs | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/module/core/former_meta/Cargo.toml b/module/core/former_meta/Cargo.toml index a6d39e082c..c4fb3c5c35 100644 --- a/module/core/former_meta/Cargo.toml +++ b/module/core/former_meta/Cargo.toml @@ -36,13 +36,7 @@ default = [ "derive_from_components", ] full = [ - "enabled", - "derive_former", - "derive_components", - "derive_component_from", - "derive_component_assign", - "derive_components_assign", - "derive_from_components", + "default", ] enabled = [ "macro_tools/enabled", "iter_tools/enabled", "former_types/enabled" ] @@ -57,12 +51,12 @@ derive_from_components = [] proc-macro = true [dependencies] -macro_tools = { workspace = true } # qqq : xxx : optimize set of features +macro_tools = { workspace = true, features = [ "attr", "attr_prop", "item_struct", "container_kind", "diag", "phantom", "generic_params", "generic_args", "typ", "derive" ] } # qqq : xxx : optimize set of features former_types = { workspace = true, features = [ "types_component_assign" ] } iter_tools = { workspace = true } convert_case = { version = "0.6.0", default-features = false, optional = true, features = [] } const_format = { version = "0.2.32" } -# zzz : reexport const_format +# xxx : reexport const_format [dev-dependencies] test_tools = { workspace = true, features = [ "full" ] } diff --git a/module/core/macro_tools/src/diag.rs b/module/core/macro_tools/src/diag.rs index 851c6d13b2..7146ef1f35 100644 --- a/module/core/macro_tools/src/diag.rs +++ b/module/core/macro_tools/src/diag.rs @@ -7,12 +7,6 @@ pub( crate ) mod private { use crate::*; - /// - /// Result with syn::Error. - /// - - pub type Result< T > = std::result::Result< T, syn::Error >; - /// Adds indentation and optional prefix/postfix to each line of the given string. /// /// This function iterates over each line in the input string and applies the specified @@ -403,12 +397,12 @@ pub mod orphan #[ allow( unused_imports ) ] pub use super::exposed::*; - #[ doc( inline ) ] - #[ allow( unused_imports ) ] - pub use super::private:: - { - Result, - }; + // #[ doc( inline ) ] + // #[ allow( unused_imports ) ] + // pub use super::private:: + // { + // Result, + // }; } diff --git a/module/core/macro_tools/src/lib.rs b/module/core/macro_tools/src/lib.rs index 6efba82cb5..a0dd729dc8 100644 --- a/module/core/macro_tools/src/lib.rs +++ b/module/core/macro_tools/src/lib.rs @@ -3,6 +3,21 @@ #![ doc( html_root_url = "https://docs.rs/proc_macro_tools/latest/proc_macro_tools/" ) ] #![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ] + +/// Internal namespace. +#[ cfg( feature = "enabled" ) ] +pub( crate ) mod private +{ + use crate::*; + + /// + /// Result with syn::Error. + /// + + pub type Result< T > = std::result::Result< T, syn::Error >; + +} + // qqq : review every page of generated documentation improve how it look as well as its content // // attr @@ -100,6 +115,11 @@ pub mod protected use super::super::*; pub use orphan::*; + pub use private:: + { + Result, + }; + #[ cfg( feature = "attr" ) ] pub use attr::orphan::*; #[ cfg( feature = "attr_prop" ) ]