Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTO : Forward from refactoring_3 to alpha #1480

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -557,3 +557,15 @@ default-features = false
[workspace.dependencies.paste]
version = "~1.0.14"
default-features = false

[workspace.dependencies.tempdir]
version = "~0.3.7"

[workspace.dependencies.rustversion]
version = "~1.0"

[workspace.dependencies.num-traits]
version = "~0.2"

[workspace.dependencies.rand]
version = "0.8.5"
2 changes: 1 addition & 1 deletion module/alias/instance_of/src/typing/implements_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// #[ macro_use ]
mod implements_impl;

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/alias/instance_of/src/typing/is_slice_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ]

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/alias/wtest_basic/src/test/basic/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Helpers.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/alias/wtest_basic/src/test/basic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Basic tools for testing.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{
}
Expand Down
2 changes: 1 addition & 1 deletion module/core/async_from/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub mod dependency
pub use ::async_trait;
}

/// Internal namespace.
/// Define a private namespace for all its items.
#[ cfg( feature = "enabled" ) ]
mod private
{
Expand Down
2 changes: 1 addition & 1 deletion module/core/async_tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub mod dependency
pub use ::async_from;
}

/// Internal namespace.
/// Define a private namespace for all its items.
#[ cfg( feature = "enabled" ) ]
mod private
{
Expand Down
2 changes: 1 addition & 1 deletion module/core/clone_dyn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub mod dependency
pub use ::clone_dyn_types;
}

/// Internal namespace.
/// Define a private namespace for all its items.
#[ cfg( feature = "enabled" ) ]
mod private
{
Expand Down
2 changes: 1 addition & 1 deletion module/core/clone_dyn_types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub mod dependency
{
}

/// Internal namespace.
/// Define a private namespace for all its items.
// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ]
#[ cfg( feature = "enabled" ) ]
mod private
Expand Down
2 changes: 1 addition & 1 deletion module/core/data_type/src/dt.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{
}
Expand Down
2 changes: 1 addition & 1 deletion module/core/diagnostics_tools/src/diag/rta.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/error_tools/src/error/assert.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{
///
Expand Down
2 changes: 1 addition & 1 deletion module/core/error_tools/src/error/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{
pub use std::error::Error as ErrorTrait;
Expand Down
2 changes: 1 addition & 1 deletion module/core/error_tools/src/error/typed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/error_tools/src/error/untyped.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/for_each/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#![ doc( html_root_url = "https://docs.rs/for_each/latest/for_each/" ) ]
#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ]

/// Internal namespace.
/// Define a private namespace for all its items.
#[ cfg( feature = "enabled" ) ]
mod private
{
Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Collection of mechanisms for formatting and serialization into string.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/as_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Nice print's wrapper.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Print data as table.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/md_math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// xxx : use crate mdmath

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{
use core::
Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/output_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//! ```
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Print data as table.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// xxx : move to crate string_tools

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Table interface.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/format_tools/src/format/to_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Flexible ToString augmentation.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Flexible ToString augmentation.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{
use crate::*;
Expand Down
2 changes: 1 addition & 1 deletion module/core/former_types/src/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! such as vectors, hash maps, and custom collection implementations.
//!

/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/fs_tools/src/fs/fs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
2 changes: 1 addition & 1 deletion module/core/implements/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#[ cfg( feature = "enabled" ) ]
mod implements_impl;

/// Internal namespace.
/// Define a private namespace for all its items.
#[ cfg( feature = "enabled" ) ]
mod private
{
Expand Down
4 changes: 1 addition & 3 deletions module/core/impls_index/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ all-features = false
[features]
default = [ "enabled" ]
full = [ "enabled" ]
no_std = []
use_alloc = [ "no_std" ]
enabled = [ "impls_index_meta/enabled" ]

[dependencies]
impls_index_meta = { workspace = true }

[dev-dependencies]
test_tools = { workspace = true }
tempdir = { version = "0.3.7" }
tempdir = { workspace = true }
2 changes: 1 addition & 1 deletion module/core/impls_index/src/impls_index/func.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down
19 changes: 9 additions & 10 deletions module/core/impls_index/src/impls_index/impls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down Expand Up @@ -382,14 +382,7 @@ pub mod exposed
use super::*;
#[ doc( inline ) ]
pub use prelude::*;
}


/// Prelude to use essentials: `use my_module::prelude::*`.
#[ allow( unused_imports ) ]
pub mod prelude
{
use super::*;
#[ doc( inline ) ]
pub use private::
{
Expand All @@ -403,9 +396,15 @@ pub mod prelude
_impls_callback,
};
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use ::impls_index_meta::impls3;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use impls3 as impls;

}

/// Prelude to use essentials: `use my_module::prelude::*`.
#[ allow( unused_imports ) ]
pub mod prelude
{
use super::*;
}
21 changes: 7 additions & 14 deletions module/core/impls_index/src/impls_index/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Internal namespace.
/// Define a private namespace for all its items.
mod private
{

Expand Down Expand Up @@ -31,6 +31,8 @@ pub mod own
use super::*;
#[ doc( inline ) ]
pub use orphan::*;
#[ doc( inline ) ]
pub use ::impls_index_meta::*;
}

/// Shared with parent namespace of the module
Expand All @@ -40,7 +42,6 @@ pub mod orphan
use super::*;
#[ doc( inline ) ]
pub use exposed::*;
// pub use super::dependency;
}

/// Exposed namespace of the module.
Expand All @@ -51,11 +52,9 @@ pub mod exposed
#[ doc( inline ) ]
pub use prelude::*;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::impls::exposed::*;
pub use impls::exposed::*;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::func::exposed::*;
pub use func::exposed::*;
}

/// Prelude to use essentials: `use my_module::prelude::*`.
Expand All @@ -64,13 +63,7 @@ pub mod prelude
{
use super::*;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::impls::prelude::*;
pub use impls::prelude::*;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::func::prelude::*;
// #[ cfg( any( feature = "meta", feature = "impls_index_meta" ) ) ]
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use ::impls_index_meta::*;
pub use func::prelude::*;
}
5 changes: 1 addition & 4 deletions module/core/impls_index/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![ cfg_attr( feature = "no_std", no_std ) ]
#![ no_std ]
#![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ]
#![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ]
#![ doc( html_root_url = "https://docs.rs/impls_index/latest/impls_index/" ) ]
Expand Down Expand Up @@ -30,7 +30,6 @@ pub mod own
#[ doc( inline ) ]
pub use orphan::*;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::impls_index::orphan::*;
}

Expand All @@ -53,7 +52,6 @@ pub mod exposed
#[ doc( inline ) ]
pub use prelude::*;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::impls_index::exposed::*;
}

Expand All @@ -64,6 +62,5 @@ pub mod prelude
{
use super::*;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::impls_index::prelude::*;
}
2 changes: 1 addition & 1 deletion module/core/impls_index/tests/inc/func_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use super::*;
#[ allow ( unused_imports ) ]
use the_module::prelude::*;
use the_module::exposed::*;
// use test_tools::exposed::*;

//
Expand Down
Loading
Loading