Skip to content

Commit

Permalink
AUTO : Forward from assistant to alpha (#1373)
Browse files Browse the repository at this point in the history
Introduce foramt_tools, assistant. Add simplistic fields iterator to reflect_tools.
  • Loading branch information
wtools-bot authored Jun 8, 2024
1 parent 957076e commit 7295939
Show file tree
Hide file tree
Showing 164 changed files with 4,151 additions and 190 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
!/.circleci
!/.*

/build
/builder
/binding
/target
/node_modules
Expand All @@ -14,6 +12,7 @@
/.vscode
/_*

.env
_key
_data
target
Expand Down
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ path = "module/core/reflect_tools_meta"
default-features = false
features = [ "enabled" ]

[workspace.dependencies.format_tools]
version = "~0.1.0"
path = "module/core/format_tools"
default-features = false
features = [ "enabled" ]
# xxx : remove features, maybe

# [workspace.dependencies.type_constructor]
# version = "~0.3.0"
# path = "module/core/type_constructor"
Expand Down
4 changes: 2 additions & 2 deletions module/alias/cargo_will/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/file_tools/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/fundamental_data_type/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/instance_of/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/multilayer/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/proc_macro_tools/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/proper_tools/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/werror/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/willbe2/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/wproc_macro/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/wstring_tools/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/wtest/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
#[ ignore ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/alias/wtest_basic/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
#[ ignore ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
34 changes: 34 additions & 0 deletions module/blank/brain_tools/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[package]
name = "brain_tools"
version = "0.1.0"
edition = "2021"
authors = [
"Kostiantyn Wandalen <[email protected]>",
]
license = "MIT"
readme = "Readme.md"
documentation = "https://docs.rs/brain_tools"
repository = "https://github.com/Wandalen/wTools/tree/master/module/core/brain_tools"
homepage = "https://github.com/Wandalen/wTools/tree/master/module/core/brain_tools"
description = """
Tools for second brain.
"""
categories = [ "algorithms", "development-tools" ]
keywords = [ "fundamental", "general-purpose" ]

[lints]
workspace = true

[package.metadata.docs.rs]
features = [ "full" ]
all-features = false

[features]
default = [ "enabled" ]
full = [ "enabled" ]
enabled = []

[dependencies]

[dev-dependencies]
test_tools = { workspace = true }
22 changes: 22 additions & 0 deletions module/blank/brain_tools/License
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright Kostiantyn W and Out of the Box Systems (c) 2013-2024

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 to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
33 changes: 33 additions & 0 deletions module/blank/brain_tools/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- {{# generate.module_header{} #}} -->

# Module :: brain_tools
[![experimental](https://raster.shields.io/static/v1?label=stability&message=experimental&color=orange&logoColor=eee)](https://github.com/emersion/stability-badges#experimental) [![rust-status](https://github.com/Wandalen/wTools/actions/workflows/Modulebrain_toolsPush.yml/badge.svg)](https://github.com/Wandalen/wTools/actions/workflows/Modulebrain_toolsPush.yml) [![docs.rs](https://img.shields.io/docsrs/brain_tools?color=e3e8f0&logo=docs.rs)](https://docs.rs/brain_tools) [![discord](https://img.shields.io/discord/872391416519737405?color=eee&logo=discord&logoColor=eee&label=ask)](https://discord.gg/m3YfbXpUUY)

Tools for second brain.

<!--
### Basic use-case
```rust
use brain_tools::*;
fn main()
{
}
```
### To add to your project
```bash
cargo add brain_tools
```
### Try out from the repository
``` shell test
git clone https://github.com/Wandalen/wTools
cd wTools
cargo run --example brain_tools_trivial
cargo run
```
-->
11 changes: 11 additions & 0 deletions module/blank/brain_tools/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#![ cfg_attr( feature = "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/brain_tools/latest/brain_tools/" ) ]
#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ]

/// Function description.
#[ cfg( feature = "enabled" ) ]
pub fn f1()
{
}
7 changes: 7 additions & 0 deletions module/blank/brain_tools/tests/inc/basic_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#[ allow( unused_imports ) ]
use super::*;

#[ test ]
fn basic()
{
}
4 changes: 4 additions & 0 deletions module/blank/brain_tools/tests/inc/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#[ allow( unused_imports ) ]
use super::*;

mod basic_test;
12 changes: 12 additions & 0 deletions module/blank/brain_tools/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

#[ test ]
fn published_smoke_test()
{
::test_tools::smoke_test_for_published_run();
}
10 changes: 10 additions & 0 deletions module/blank/brain_tools/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

include!( "../../../../module/step/meta/src/module/terminal.rs" );

#[ allow( unused_imports ) ]
use brain_tools as the_module;
#[ allow( unused_imports ) ]
use test_tools::exposed::*;

#[ cfg( feature = "enabled" ) ]
mod inc;
4 changes: 2 additions & 2 deletions module/blank/exe_tools/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
4 changes: 2 additions & 2 deletions module/blank/image_tools/tests/smoke_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

// #[ cfg( feature = "default" ) ]

#[ test ]
fn local_smoke_test()
{
::test_tools::smoke_test_for_local_run();
}

// #[ cfg( feature = "default" ) ]

#[ test ]
fn published_smoke_test()
{
Expand Down
Loading

0 comments on commit 7295939

Please sign in to comment.