diff --git a/.github/workflows/ModulewErrorPush.yml b/.github/workflows/ModuleErrorToolsPush.yml similarity index 53% rename from .github/workflows/ModulewErrorPush.yml rename to .github/workflows/ModuleErrorToolsPush.yml index cf665b5483..4b97390a9f 100644 --- a/.github/workflows/ModulewErrorPush.yml +++ b/.github/workflows/ModuleErrorToolsPush.yml @@ -7,9 +7,18 @@ env : jobs : - # werror + # error_tools test : + uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@master + with : + manifest_path : 'module/rust/error_tools/Cargo.toml' + module_name : 'error_tools' + commit_message : ${{ github.event.head_commit.message }} + + # werror + + test_werror : uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@master with : manifest_path : 'module/rust/werror/Cargo.toml' diff --git a/.github/workflows/ModuleStrsToolsPush.yml b/.github/workflows/ModuleStrsToolsPush.yml new file mode 100644 index 0000000000..4e23c55786 --- /dev/null +++ b/.github/workflows/ModuleStrsToolsPush.yml @@ -0,0 +1,26 @@ +name : strs_tools + +on : push + +env : + CARGO_TERM_COLOR : always + +jobs : + + # strs_tools + + test : + uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@master + with : + manifest_path : 'module/rust/strs_tools/Cargo.toml' + module_name : 'strs_tools' + commit_message : ${{ github.event.head_commit.message }} + + # wstring_tools + + test_wstring_tools : + uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@master + with : + manifest_path : 'module/rust/wstring_tools/Cargo.toml' + module_name : 'wstring_tools' + commit_message : ${{ github.event.head_commit.message }} diff --git a/.github/workflows/ModulewStringToolsPush.yml b/.github/workflows/ModulewStringToolsPush.yml deleted file mode 100644 index 18fe52f2af..0000000000 --- a/.github/workflows/ModulewStringToolsPush.yml +++ /dev/null @@ -1,17 +0,0 @@ -name : wstring_tools - -on : push - -env : - CARGO_TERM_COLOR : always - -jobs : - - # string_tools - - test : - uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@master - with : - manifest_path : 'module/rust/wstring_tools/Cargo.toml' - module_name : 'string_tools' - commit_message : ${{ github.event.head_commit.message }} diff --git a/Readme.md b/Readme.md index 0821512808..2488d553a0 100644 --- a/Readme.md +++ b/Readme.md @@ -33,10 +33,10 @@ Collection of general purpose tools for solving problems. Fundamentally extend t | [time_tools](./module/rust/time_tools) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/time_tools?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleTimeToolsPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/time_tools/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleTimeToolsPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/time_tools) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Ftime_tools_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20time_tools_trivial_sample/https://github.com/Wandalen/wTools) | | [typing_tools](./module/rust/typing_tools) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/typing_tools?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleTypingToolsPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/typing_tools/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleTypingToolsPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/typing_tools) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Ftyping_tools_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20typing_tools_trivial_sample/https://github.com/Wandalen/wTools) | | [diagnostics_tools](./module/rust/diagnostics_tools) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/diagnostics_tools?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleDiagnosticsToolsPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/diagnostics_tools/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleDiagnosticsToolsPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/typing_tools) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fdiagnostics_tools_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20diagnostics_tools_trivial_sample/https://github.com/Wandalen/wTools) | -| [werror](./module/rust/werror) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/werror?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewErrorPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/werror/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewErrorPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/werror) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fwerror_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20werror_trivial_sample/https://github.com/Wandalen/wTools) | +| [error_tools](./module/rust/error_tools) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/error_tools?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleErrorToolsPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/error_tools/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleErrorToolsPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/error_tools) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Ferror_tools_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20error_tools_trivial_sample/https://github.com/Wandalen/wTools) | | [winterval](./module/rust/winterval) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/winterval?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewIntervalPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/winterval/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewIntervalPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/winterval) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fwinterval_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20winterval_trivial_sample/https://github.com/Wandalen/wTools) | | [woptions](./module/rust/woptions) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/woptions?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewOptionsPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/woptions/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewOptionsPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/woptions) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fwoptions_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20woptions_trivial_sample/https://github.com/Wandalen/wTools) | -| [wstring_tools](./module/rust/wstring_tools) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/wstring_tools?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewStringToolsPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/wstring_tools/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewStringToolsPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/wstring_tools) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fwstring_tools_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20wstring_tools_trivial_sample/https://github.com/Wandalen/wTools) | +| [strs_tools](./module/rust/strs_tools) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/strs_tools?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleStrsToolsPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/strs_tools/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleStrsToolsPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/strs_tools) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fstrs_tools_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20strs_tools_trivial_sample/https://github.com/Wandalen/wTools) | | [test_tools](./module/rust/test_tools) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/test_tools?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleTestToolsPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/test_tools/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModuleTestToolsPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/test_tools) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Ftest_tools_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20test_tools_trivial_sample/https://github.com/Wandalen/wTools) | | [wtest_basic](./module/rust/wtest_basic) | [![experimental](https://raster.shields.io/static/v1?label=&message=experimental&color=orange)](https://github.com/emersion/stability-badges#experimental) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/wtest_basic?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewTestBasicPush.yml) | [![rust-status](https://img.shields.io/github/workflow/status/Wandalen/wTools/wtest_basic/alpha?label=)](https://github.com/Wandalen/wTools/actions/workflows/ModulewTestBasicPush.yml) | [![docs.rs](https://raster.shields.io/static/v1?label=&message=docs&color=eee)](https://docs.rs/wtest_basic) | [![Open in Gitpod](https://raster.shields.io/static/v1?label=&message=try&color=eee)](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fwtest_basic_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20wtest_basic_trivial_sample/https://github.com/Wandalen/wTools) | diff --git a/module/_/_select_matching/Cargo.toml b/module/_/_select_matching/Cargo.toml index 2e42871b9d..b9f629c3cd 100644 --- a/module/_/_select_matching/Cargo.toml +++ b/module/_/_select_matching/Cargo.toml @@ -56,4 +56,3 @@ include = [ [dev-dependencies] # trybuild = { version = "~1.0", features = [ "diff" ] } test_tools = { version = "~0.1", path = "../../rust/test_tools" } -werror = { version = "~0.1", path = "../../rust/werror" } diff --git a/module/alias/non_std/Cargo.toml b/module/alias/non_std/Cargo.toml index 557d00f6c8..d63754cf49 100644 --- a/module/alias/non_std/Cargo.toml +++ b/module/alias/non_std/Cargo.toml @@ -139,8 +139,23 @@ string_full = [ # error error = [ "wtools/error" ] -error_default = [ "error" ] -error_full = [ "error" ] +error_default = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] +error_full = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] + +error_tools_use_std = [ "error", "wtools/error_tools_use_std" ] +error_tools_use_alloc = [ "error", "wtools/error_tools_use_alloc" ] +error_handling_for_lib = [ "error", "wtools/error_handling_for_lib" ] +error_handling_for_app = [ "error", "wtools/error_handling_for_app" ] # derive diff --git a/module/alias/std_tools/Cargo.toml b/module/alias/std_tools/Cargo.toml index 315b38d32d..bc009c3454 100644 --- a/module/alias/std_tools/Cargo.toml +++ b/module/alias/std_tools/Cargo.toml @@ -140,8 +140,23 @@ string_full = [ # error error = [ "wtools/error" ] -error_default = [ "error" ] -error_full = [ "error" ] +error_default = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] +error_full = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] + +error_tools_use_std = [ "error", "wtools/error_tools_use_std" ] +error_tools_use_alloc = [ "error", "wtools/error_tools_use_alloc" ] +error_handling_for_lib = [ "error", "wtools/error_handling_for_lib" ] +error_handling_for_app = [ "error", "wtools/error_handling_for_app" ] # derive diff --git a/module/alias/std_x/Cargo.toml b/module/alias/std_x/Cargo.toml index 626e4c7cd3..133e2eb70b 100644 --- a/module/alias/std_x/Cargo.toml +++ b/module/alias/std_x/Cargo.toml @@ -140,8 +140,23 @@ string_full = [ # error error = [ "wtools/error" ] -error_default = [ "error" ] -error_full = [ "error" ] +error_default = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] +error_full = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] + +error_tools_use_std = [ "error", "wtools/error_tools_use_std" ] +error_tools_use_alloc = [ "error", "wtools/error_tools_use_alloc" ] +error_handling_for_lib = [ "error", "wtools/error_handling_for_lib" ] +error_handling_for_app = [ "error", "wtools/error_handling_for_app" ] # derive diff --git a/module/alias/wTools/Cargo.toml b/module/alias/wTools/Cargo.toml index e8ef9e86da..df68d5600c 100644 --- a/module/alias/wTools/Cargo.toml +++ b/module/alias/wTools/Cargo.toml @@ -142,8 +142,23 @@ string_full = [ # error error = [ "wtools/error" ] -error_default = [ "error" ] -error_full = [ "error" ] +error_default = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] +error_full = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] + +error_tools_use_std = [ "error", "wtools/error_tools_use_std" ] +error_tools_use_alloc = [ "error", "wtools/error_tools_use_alloc" ] +error_handling_for_lib = [ "error", "wtools/error_handling_for_lib" ] +error_handling_for_app = [ "error", "wtools/error_handling_for_app" ] # derive diff --git a/module/rust/werror/Cargo.toml b/module/alias/werror/Cargo.toml similarity index 56% rename from module/rust/werror/Cargo.toml rename to module/alias/werror/Cargo.toml index 0d8eea7ee1..65d20b8d15 100644 --- a/module/rust/werror/Cargo.toml +++ b/module/alias/werror/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "werror" -version = "0.1.2" +version = "0.1.3" edition = "2021" authors = [ "Kostiantyn Wandalen ", @@ -10,8 +10,8 @@ authors = [ license = "MIT" readme = "Readme.md" documentation = "https://docs.rs/werror" -repository = "https://github.com/Wandalen/wTools/tree/master/module/rust/werror" -homepage = "https://github.com/Wandalen/wTools/tree/master/module/rust/werror" +repository = "https://github.com/Wandalen/wTools/tree/master/module/alias/werror" +homepage = "https://github.com/Wandalen/wTools/tree/master/module/alias/werror" description = """ Basic exceptions handling mechanism. """ @@ -22,16 +22,35 @@ keywords = [ "fundamental", "general-purpose" ] all-features = true include = [ - "/rust/impl/error", + "/rust/impl/error/werror_lib.rs", "/Cargo.toml", "/Readme.md", "/License", ] +# = features + [features] -use_std = [] -use_alloc = [] -default = [ "use_std" ] + +error_handling_for_lib = [ "error_tools/error_handling_for_lib" ] +error_handling_for_app = [ "error_tools/error_handling_for_app" ] + +# common + +use_std = [ "error_tools/use_std" ] +use_alloc = [ "error_tools/use_alloc" ] +default = [ + "use_std", + "error_handling_for_lib", + "error_handling_for_app", +] +full = [ + "use_std", + "error_handling_for_lib", + "error_handling_for_app", +] + +# = entry [lib] name = "werror" @@ -39,17 +58,18 @@ path = "rust/impl/error/werror_lib.rs" [[test]] name = "error_test" -path = "rust/test/error/tests.rs" +path = "rust/test/error/werror_tests.rs" [[test]] name = "werror_smoke_test" path = "rust/test/_integration_test/smoke_test.rs" -[[example]] -name = "werror_trivial_sample" -path = "sample/rust/werror_trivial_sample/src/main.rs" +# [[example]] +# name = "werror_trivial_sample" +# path = "sample/rust/werror_trivial_sample/src/main.rs" [dependencies] +error_tools = { version = "~0.1", path = "../../rust/error_tools", default-features = false } [dev-dependencies] test_tools = { version = "~0.1", path = "../../rust/test_tools" } diff --git a/module/rust/werror/License b/module/alias/werror/License similarity index 100% rename from module/rust/werror/License rename to module/alias/werror/License diff --git a/module/rust/werror/Readme.md b/module/alias/werror/Readme.md similarity index 92% rename from module/rust/werror/Readme.md rename to module/alias/werror/Readme.md index 2d2cdd26d2..fc58b5d122 100644 --- a/module/rust/werror/Readme.md +++ b/module/alias/werror/Readme.md @@ -10,7 +10,7 @@ Basic exceptions handling mechanism. { use werror::*; - let err1 = Error::new( "Some error" ); + let err1 = BasicError::new( "Some error" ); println!( "err1 : {}", err1 ); // < err1 : Some error } @@ -27,6 +27,6 @@ cargo add werror ```sh git clone https://github.com/Wandalen/wTools cd wTools -cd sample/rust/werror_trivial +cd sample/rust/error_tools_trivial cargo run ``` diff --git a/module/rust/werror/rust b/module/alias/werror/rust similarity index 100% rename from module/rust/werror/rust rename to module/alias/werror/rust diff --git a/module/rust/werror/sample b/module/alias/werror/sample similarity index 100% rename from module/rust/werror/sample rename to module/alias/werror/sample diff --git a/module/move/wcensor/Cargo.toml b/module/move/wcensor/Cargo.toml index f31e23001f..f77dda7047 100644 --- a/module/move/wcensor/Cargo.toml +++ b/module/move/wcensor/Cargo.toml @@ -55,7 +55,6 @@ path = "rust/test/_integration_test/smoke_test.rs" [dependencies] wtools = { version = "~0.2", path = "../../rust/wtools" } -# werror = { version = "~0.1", path = "../../rust/werror" } [dev-dependencies] test_tools = { version = "~0.1", path = "../../rust/test_tools" } diff --git a/module/rust/_integration_test/Cargo.toml b/module/rust/_integration_test/Cargo.toml index 475b5cec4b..86dc445f1a 100644 --- a/module/rust/_integration_test/Cargo.toml +++ b/module/rust/_integration_test/Cargo.toml @@ -64,8 +64,6 @@ type_constructor_local = { version = "*", path = "../../rust/type_constructor", type_constructor_published = { version = "*", package = "type_constructor" } typing_tools_local = { version = "*", path = "../../rust/typing_tools", package = "typing_tools" } typing_tools_published = { version = "*", package = "typing_tools" } -werror_local = { version = "*", path = "../../rust/werror", package = "werror" } -werror_published = { version = "*", package = "werror" } winterval_local = { version = "*", path = "../../rust/winterval", package = "winterval" } winterval_published = { version = "*", package = "winterval" } woptions_local = { version = "*", path = "../../rust/woptions", package = "woptions" } @@ -75,6 +73,14 @@ woptions_meta_published = { version = "*", package = "woptions_meta" } woptions_runtime_local = { version = "*", path = "../../rust/woptions_runtime", package = "woptions_runtime" } woptions_runtime_published = { version = "*", package = "woptions_runtime" } +# error + +error_tools_local = { version = "*", path = "../../rust/error_tools", package = "error_tools" } +# error_tools_published = { version = "*", package = "error_tools" } xxx2 +werror_local = { version = "*", path = "../../alias/werror", package = "werror" } +werror_published = { version = "*", package = "werror" } + + # strs strs_tools_local = { version = "*", path = "../../rust/strs_tools", package = "strs_tools" } diff --git a/module/rust/error_tools/Cargo.toml b/module/rust/error_tools/Cargo.toml new file mode 100644 index 0000000000..0201abe4eb --- /dev/null +++ b/module/rust/error_tools/Cargo.toml @@ -0,0 +1,76 @@ +[package] +name = "error_tools" +version = "0.1.3" +edition = "2021" +authors = [ + "Kostiantyn Wandalen ", + "Volodymyr M. ", + "Dmytro Kryvoruchko ", +] +license = "MIT" +readme = "Readme.md" +documentation = "https://docs.rs/error_tools" +repository = "https://github.com/Wandalen/wTools/tree/master/module/rust/error_tools" +homepage = "https://github.com/Wandalen/wTools/tree/master/module/rust/error_tools" +description = """ +Basic exceptions handling mechanism. +""" +categories = [ "algorithms", "development-tools" ] +keywords = [ "fundamental", "general-purpose" ] + +[package.metadata.docs.rs] +all-features = true + +include = [ + "/rust/impl/error", + "/Cargo.toml", + "/Readme.md", + "/License", +] + +# = features + +[features] + +error_handling_for_lib = [ "thiserror" ] +error_handling_for_app = [ "anyhow" ] + +# common + +use_std = [] +use_alloc = [] +default = [ + "use_std", + "error_handling_for_lib", + "error_handling_for_app", +] +full = [ + "use_std", + "error_handling_for_lib", + "error_handling_for_app", +] + +# = entry + +[lib] +name = "error_tools" +path = "rust/impl/error/error_tools_lib.rs" + +[[test]] +name = "error_test" +path = "rust/test/error/error_tools_tests.rs" + +[[test]] +name = "error_tools_smoke_test" +path = "rust/test/_integration_test/smoke_test.rs" + +[[example]] +name = "error_tools_trivial_sample" +path = "sample/rust/error_tools_trivial_sample/src/main.rs" + +[dependencies] +anyhow = { version = "~1.0", optional = true } +thiserror = { version = "~1.0", optional = true } + +[dev-dependencies] +test_tools = { version = "~0.1", path = "../../rust/test_tools" } diff --git a/module/rust/error_tools/License b/module/rust/error_tools/License new file mode 100644 index 0000000000..4c24e25786 --- /dev/null +++ b/module/rust/error_tools/License @@ -0,0 +1,22 @@ +Copyright Kostiantyn W. (c) 2013-2022 + +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. diff --git a/module/rust/error_tools/Readme.md b/module/rust/error_tools/Readme.md new file mode 100644 index 0000000000..24d1095b0e --- /dev/null +++ b/module/rust/error_tools/Readme.md @@ -0,0 +1,32 @@ +# Module :: werror +[![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/ModulewErrorPush.yml/badge.svg)](https://github.com/Wandalen/wTools/actions/workflows/ModulewErrorPush.yml) [![docs.rs](https://img.shields.io/docsrs/werror?color=e3e8f0&logo=docs.rs)](https://docs.rs/werror) [![discord](https://img.shields.io/discord/872391416519737405?color=eee&logo=discord&logoColor=eee&label=ask)](https://discord.gg/m3YfbXpUUY) + +Basic exceptions handling mechanism. + +### Sample + +```rust +#[ cfg( feature = "use_std" ) ] +{ + use error_tools::*; + + let err1 = BasicError::new( "Some error" ); + println!( "err1 : {}", err1 ); + // < err1 : Some error +} +``` + +### To add to your project + +```sh +cargo add werror +``` + +### Try out from the repository + +```sh +git clone https://github.com/Wandalen/wTools +cd wTools +cd sample/rust/error_tools_trivial +cargo run +``` diff --git a/module/rust/error_tools/rust b/module/rust/error_tools/rust new file mode 120000 index 0000000000..742dc49e9a --- /dev/null +++ b/module/rust/error_tools/rust @@ -0,0 +1 @@ +../../../rust \ No newline at end of file diff --git a/module/rust/error_tools/sample b/module/rust/error_tools/sample new file mode 120000 index 0000000000..befc504bd6 --- /dev/null +++ b/module/rust/error_tools/sample @@ -0,0 +1 @@ +../../../sample \ No newline at end of file diff --git a/module/rust/former/former_meta/Cargo.toml b/module/rust/former/former_meta/Cargo.toml index 6e0121e5a1..120cabafea 100644 --- a/module/rust/former/former_meta/Cargo.toml +++ b/module/rust/former/former_meta/Cargo.toml @@ -34,11 +34,8 @@ name = "former_meta" path = "rust/impl/former/meta/former_lib.rs" [dependencies] -# proc-macro2 = "~1.0" -# quote = "~1.0" -# syn = { version = "~1.0", features = [ "full", "extra-traits", "parsing", "printing" ] } iter_tools = { path = "../../rust/iter_tools", version = "~0.1" } -werror = { path = "../../rust/werror", version = "~0.1" } +error_tools = { path = "../../rust/error_tools", version = "~0.1" } proc_macro_tools = { version = "~0.1", path = "../../rust/proc_macro_tools" } [dev-dependencies] diff --git a/module/rust/former_meta/Cargo.toml b/module/rust/former_meta/Cargo.toml index b04b1de282..c5c26af685 100644 --- a/module/rust/former_meta/Cargo.toml +++ b/module/rust/former_meta/Cargo.toml @@ -43,7 +43,6 @@ proc-macro2 = "~1.0" quote = "~1.0" syn = { version = "~1.0", features = [ "full", "extra-traits", "parsing", "printing" ] } iter_tools = { path = "../../rust/iter_tools", version = "~0.1" } -# werror = { path = "../../rust/werror", version = "~0.1" } proc_macro_tools = { version = "~0.1", path = "../../rust/proc_macro_tools" } [dev-dependencies] diff --git a/module/rust/strs_tools/Cargo.toml b/module/rust/strs_tools/Cargo.toml index 5e295cbe23..596d8c1281 100644 --- a/module/rust/strs_tools/Cargo.toml +++ b/module/rust/strs_tools/Cargo.toml @@ -71,7 +71,7 @@ former = { version = "~0.1", path = "../../rust/former" } lexical = { version = "~6.1", optional = true } # woptions = { version = "~0.1", path = "../../rust/woptions" } # wtools = { version = "~0.2", path = "../../rust/wtools" } -# werror = { version = "~0.1", path = "../../rust/werror" } +# error_tools = { version = "~0.1", path = "../../rust/error_tools" } [dev-dependencies] test_tools = { version = "~0.1", path = "../../rust/test_tools" } diff --git a/module/rust/wtools/Cargo.toml b/module/rust/wtools/Cargo.toml index 9e713319f3..4d4dec850b 100644 --- a/module/rust/wtools/Cargo.toml +++ b/module/rust/wtools/Cargo.toml @@ -154,9 +154,24 @@ string_full = [ # error -error = [ "werror" ] -error_default = [ "error", 'werror/use_std' ] -error_full = [ "error", 'werror/use_std' ] +error = [ "error_tools" ] +error_default = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] +error_full = [ + "error", + "error_handling_for_lib", + "error_handling_for_app", + "error_tools_use_std", +] + +error_tools_use_std = [ "error", "error_tools/use_std" ] +error_tools_use_alloc = [ "error", "error_tools/use_alloc" ] +error_handling_for_lib = [ "error", "error_tools/error_handling_for_lib" ] +error_handling_for_app = [ "error", "error_tools/error_handling_for_app" ] # derive @@ -361,7 +376,7 @@ time_tools = { version = "~0.1", path = "../../rust/time_tools", optional = true strs_tools = { version = "~0.1", path = "../../rust/strs_tools", optional = true, default-features = false } # err -werror = { version = "~0.1", path = "../../rust/werror", optional = true, default-features = false } +error_tools = { version = "~0.1", path = "../../rust/error_tools", optional = true, default-features = false } # derive derive_tools = { version = "~0.1", path = "../../rust/derive_tools", optional = true, default-features = false } @@ -378,6 +393,4 @@ diagnostics_tools = { version = "~0.1", path = "../../rust/diagnostics_tools", o test_tools = { version = "~0.1", path = "../../rust/test_tools" } # xxx : import -# anyhow = { version = "~1.0" } # lexical = { version = "~6.1" } -# thiserror = { version = "1.0.31" } diff --git a/rust/impl/ca/wca_lib.rs b/rust/impl/ca/wca_lib.rs index d29f6accda..38e72d78cb 100644 --- a/rust/impl/ca/wca_lib.rs +++ b/rust/impl/ca/wca_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wca/latest/wca/" ) ] diff --git a/rust/impl/censor/censor_lib.rs b/rust/impl/censor/censor_lib.rs index f2406eb078..e723389f3a 100644 --- a/rust/impl/censor/censor_lib.rs +++ b/rust/impl/censor/censor_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wcensor/latest/wcensor/" ) ] diff --git a/rust/impl/censor/instruction.rs b/rust/impl/censor/instruction.rs index 5c725ad100..52848dd5c5 100644 --- a/rust/impl/censor/instruction.rs +++ b/rust/impl/censor/instruction.rs @@ -1,5 +1,4 @@ -// pub use werror::*; pub use wtools::error::*; use std::collections::HashMap; diff --git a/rust/impl/censor/props.rs b/rust/impl/censor/props.rs index 77d74bd1cb..9b8b9ab760 100644 --- a/rust/impl/censor/props.rs +++ b/rust/impl/censor/props.rs @@ -1,5 +1,4 @@ -// pub use werror::*; use std::collections::HashMap; // diff --git a/rust/impl/derive/derive_tools_lib.rs b/rust/impl/derive/derive_tools_lib.rs index 3cb4d0e616..93837e7a5c 100644 --- a/rust/impl/derive/derive_tools_lib.rs +++ b/rust/impl/derive/derive_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/derive_tools/latest/derive_tools/" ) ] diff --git a/rust/impl/diagnostics/diagnostics_tools_lib.rs b/rust/impl/diagnostics/diagnostics_tools_lib.rs index bfbc644480..8fe8f3335c 100644 --- a/rust/impl/diagnostics/diagnostics_tools_lib.rs +++ b/rust/impl/diagnostics/diagnostics_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/diagnostics_tools/latest/diagnostics_tools/" ) ] diff --git a/rust/impl/dt/data_type_lib.rs b/rust/impl/dt/data_type_lib.rs index 3fdd055275..e3c8122303 100644 --- a/rust/impl/dt/data_type_lib.rs +++ b/rust/impl/dt/data_type_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/data_type/latest/data_type/" ) ] diff --git a/rust/impl/dt/interval_lib.rs b/rust/impl/dt/interval_lib.rs index 3c65e69af2..3771c6218e 100644 --- a/rust/impl/dt/interval_lib.rs +++ b/rust/impl/dt/interval_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/winterval/latest/winterval/" ) ] diff --git a/rust/impl/dt/type_constructor/fundamental_data_type_lib.rs b/rust/impl/dt/type_constructor/fundamental_data_type_lib.rs index 290f2ca636..11c1afb7db 100644 --- a/rust/impl/dt/type_constructor/fundamental_data_type_lib.rs +++ b/rust/impl/dt/type_constructor/fundamental_data_type_lib.rs @@ -1,5 +1,5 @@ // xxx -// #![ cfg_attr( not( feature = "use_std"), no_std ) ] +// #![ cfg_attr( not( feature = "use_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/fundamental_data_type/latest/fundamental_data_type/")] diff --git a/rust/impl/dt/type_constructor/type_constructor_lib.rs b/rust/impl/dt/type_constructor/type_constructor_lib.rs index 9090b5d2b5..8a29d116eb 100644 --- a/rust/impl/dt/type_constructor/type_constructor_lib.rs +++ b/rust/impl/dt/type_constructor/type_constructor_lib.rs @@ -1,6 +1,6 @@ // qqq : for Dima : add for each module -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/type_constructor/latest/type_constructor/")] diff --git a/rust/impl/error/error.rs b/rust/impl/error/error.rs index abb0aa245e..dc80008906 100644 --- a/rust/impl/error/error.rs +++ b/rust/impl/error/error.rs @@ -1,15 +1,15 @@ /// -/// Alias for std::error::Error. +/// Alias for std::error::BasicError. /// -pub use std::error::Error as ErrorAdapter; +pub use std::error::Error as ErrorInterface; /// /// Macro to generate error. /// /// ### Sample /// ``` -/// # use werror::*; +/// # use error_tools::*; /// err!( "No attr" ); /// ``` /// @@ -20,29 +20,29 @@ macro_rules! err ( $msg : expr ) => { - $crate::Error::new( $msg ) + $crate::BasicError::new( $msg ) }; ( $msg : expr, $( $arg : expr ),+ ) => { - $crate::Error::new( format!( $msg, $( $arg ),+ ) ) + $crate::BasicError::new( format!( $msg, $( $arg ),+ ) ) }; } -/// baic implementation of generic Error +/// baic implementation of generic BasicError #[ derive( core::fmt::Debug, core::clone::Clone, core::cmp::PartialEq ) ] -pub struct Error +pub struct BasicError { msg : String, } -impl Error +impl BasicError { /// Constructor expecting message with description. - pub fn new< Msg : Into< String > >( msg : Msg ) -> Error + pub fn new< Msg : Into< String > >( msg : Msg ) -> BasicError { - Error { msg : msg.into() } + BasicError { msg : msg.into() } } /// Message with description getter. pub fn msg( &self ) -> &String @@ -51,7 +51,7 @@ impl Error } } -impl core::fmt::Display for Error +impl core::fmt::Display for BasicError { fn fmt(&self, f: &mut core::fmt::Formatter< '_ >) -> core::fmt::Result { @@ -59,10 +59,12 @@ impl core::fmt::Display for Error } } -impl std::error::Error for Error +impl ErrorInterface for BasicError { fn description( &self ) -> &str { &self.msg } } + +// xxx : mod interface \ No newline at end of file diff --git a/rust/impl/error/error_tools_lib.rs b/rust/impl/error/error_tools_lib.rs new file mode 100644 index 0000000000..c69f388be1 --- /dev/null +++ b/rust/impl/error/error_tools_lib.rs @@ -0,0 +1,92 @@ +#![ cfg_attr( not( feature = "use_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/error_tools/latest/error_tools/" ) ] +#![ warn( rust_2018_idioms ) ] +#![ warn( missing_debug_implementations ) ] +#![ warn( missing_docs ) ] + +//! +//! Basic exceptions handling mechanism. +//! + +#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/Readme.md" ) ) ] + +/// Assertions. +pub mod assert; +#[ cfg( feature = "use_std" ) ] +/// Default error object. +pub mod error; + +/// Dependencies. +pub mod dependencies +{ + + #[ doc( inline ) ] + #[ cfg( feature = "error_handling_for_lib" ) ] + pub use ::thiserror; + + #[ doc( inline ) ] + #[ cfg( feature = "error_handling_for_app" ) ] + pub use ::anyhow; + +} + +/// Exceptions handling mechanism for libs. +pub mod for_lib +{ + #[ doc( inline ) ] + #[ cfg( feature = "error_handling_for_lib" ) ] + pub use ::thiserror::*; +} + +/// Exceptions handling mechanism for apps. +pub mod for_app +{ + #[ doc( inline ) ] + #[ cfg( feature = "error_handling_for_app" ) ] + pub use ::anyhow::*; +} + +/// Protected namespace of the module. +pub mod protected +{ + #[ doc( inline ) ] + pub use super::orphan::*; +} + +#[ doc( inline ) ] +pub use protected::*; +// pub use protected::BasicError; +// #[ cfg( feature = "use_std" ) ] +// #[ doc( inline ) ] +// pub use protected::Error; + +/// Shared with parent namespace of the module +pub mod orphan +{ + #[ doc( inline ) ] + pub use super::exposed::*; +} + +/// Exposed namespace of the module. +pub mod exposed +{ + #[ doc( inline ) ] + pub use super::prelude::*; + #[ doc( inline ) ] + pub use super::assert::*; + + #[ cfg( feature = "use_std" ) ] + #[ doc( inline ) ] + pub use super::error::*; + // #[ cfg( feature = "use_std" ) ] + // #[ doc( inline ) ] + // pub use super::error::Error; + +} + +/// Prelude to use essentials: `use my_module::prelude::*`. +pub mod prelude +{ +} diff --git a/rust/impl/error/werror_lib.rs b/rust/impl/error/werror_lib.rs index b47d11fd31..5a566e6918 100644 --- a/rust/impl/error/werror_lib.rs +++ b/rust/impl/error/werror_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/werror/latest/werror/" ) ] @@ -12,39 +12,5 @@ #![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/Readme.md" ) ) ] -mod assert; -#[ cfg( feature = "use_std" ) ] -mod error; - -/// Dependencies. -pub mod dependencies -{ -} - -/// Protected namespace of the module. -pub mod protected -{ - pub use super::orphan::*; -} - -pub use protected::*; - -/// Shared with parent namespace of the module -pub mod orphan -{ - pub use super::exposed::*; -} - -/// Exposed namespace of the module. -pub mod exposed -{ - pub use super::prelude::*; - pub use super::assert::*; - #[ cfg( feature = "use_std" ) ] - pub use super::error::*; -} - -/// Prelude to use essentials: `use my_module::prelude::*`. -pub mod prelude -{ -} +#[ doc( inline ) ] +pub use error_tools::*; diff --git a/rust/impl/former/front/former_lib.rs b/rust/impl/former/front/former_lib.rs index a1c3db9d7f..35593656e5 100644 --- a/rust/impl/former/front/former_lib.rs +++ b/rust/impl/former/front/former_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/former/latest/former/" ) ] diff --git a/rust/impl/former/meta/former_lib.rs b/rust/impl/former/meta/former_lib.rs index f02c8628df..735b8e1543 100644 --- a/rust/impl/former/meta/former_lib.rs +++ b/rust/impl/former/meta/former_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/former_meta/latest/former_meta/" ) ] diff --git a/rust/impl/former/runtime/former_lib.rs b/rust/impl/former/runtime/former_lib.rs index d36343048a..e5ebd79efd 100644 --- a/rust/impl/former/runtime/former_lib.rs +++ b/rust/impl/former/runtime/former_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/former_runtime/latest/former_runtime/" ) ] diff --git a/rust/impl/fs/fs_tools_lib.rs b/rust/impl/fs/fs_tools_lib.rs index 6998d9a84c..6733045073 100644 --- a/rust/impl/fs/fs_tools_lib.rs +++ b/rust/impl/fs/fs_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/fs_tools/latest/fs_tools/" ) ] diff --git a/rust/impl/graph/automata_tools_lib.rs b/rust/impl/graph/automata_tools_lib.rs index 9654676eaf..e8a9d9b8d7 100644 --- a/rust/impl/graph/automata_tools_lib.rs +++ b/rust/impl/graph/automata_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_std" ), no_std ) ] #![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/graph_logo_v1_trans.png" ) ] #![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/graph_logo_v1_trans.ico" ) ] #![ doc( html_root_url = "https://docs.rs/automata_tools/latest/automata_tools/" ) ] diff --git a/rust/impl/graph/graphs_tools_lib.rs b/rust/impl/graph/graphs_tools_lib.rs index 981c0834cc..7a623973e5 100644 --- a/rust/impl/graph/graphs_tools_lib.rs +++ b/rust/impl/graph/graphs_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_std" ), no_std ) ] #![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/graph_logo_v1_trans.png" ) ] #![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/graph_logo_v1_trans.ico" ) ] #![ doc( html_root_url = "https://docs.rs/graphs_tools/latest/graphs_tools/" ) ] diff --git a/rust/impl/graph/wautomata_lib.rs b/rust/impl/graph/wautomata_lib.rs index f06948046c..1e564ce05a 100644 --- a/rust/impl/graph/wautomata_lib.rs +++ b/rust/impl/graph/wautomata_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_std" ), no_std ) ] #![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/graph_logo_v1_trans.png" ) ] #![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/graph_logo_v1_trans.ico" ) ] #![ doc( html_root_url = "https://docs.rs/wautomata/latest/wautomata/" ) ] diff --git a/rust/impl/iter/iter_tools_lib.rs b/rust/impl/iter/iter_tools_lib.rs index ae6a686286..74a8b96a91 100644 --- a/rust/impl/iter/iter_tools_lib.rs +++ b/rust/impl/iter/iter_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/iter_tools/latest/iter_tools/" ) ] diff --git a/rust/impl/meta/meta_tools_lib.rs b/rust/impl/meta/meta_tools_lib.rs index aaffbaea27..6720bdcbc7 100644 --- a/rust/impl/meta/meta_tools_lib.rs +++ b/rust/impl/meta/meta_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/meta_tools/latest/meta_tools/" ) ] diff --git a/rust/impl/meta/meta_tools_min_lib.rs b/rust/impl/meta/meta_tools_min_lib.rs index 638a07e7ee..5fa035a8c4 100644 --- a/rust/impl/meta/meta_tools_min_lib.rs +++ b/rust/impl/meta/meta_tools_min_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/meta_tools_min/latest/meta_tools_min/" ) ] diff --git a/rust/impl/non_std_lib.rs b/rust/impl/non_std_lib.rs index df56dd7037..39b0f3cda5 100644 --- a/rust/impl/non_std_lib.rs +++ b/rust/impl/non_std_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/non_std/latest/non_std/" ) ] diff --git a/rust/impl/options/front/woptions_lib.rs b/rust/impl/options/front/woptions_lib.rs index 3df0741cd4..798655772b 100644 --- a/rust/impl/options/front/woptions_lib.rs +++ b/rust/impl/options/front/woptions_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/woptions/latest/woptions/" ) ] diff --git a/rust/impl/options/meta/woptions_lib.rs b/rust/impl/options/meta/woptions_lib.rs index 88ee71794a..413bdaf0f7 100644 --- a/rust/impl/options/meta/woptions_lib.rs +++ b/rust/impl/options/meta/woptions_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/woptions_meta/latest/woptions_meta/" ) ] diff --git a/rust/impl/options/runtime/woptions_lib.rs b/rust/impl/options/runtime/woptions_lib.rs index 6001eef546..f6ab87acef 100644 --- a/rust/impl/options/runtime/woptions_lib.rs +++ b/rust/impl/options/runtime/woptions_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/woptions_runtime/latest/woptions_runtime/" ) ] diff --git a/rust/impl/proc_macro/macro_tools_lib.rs b/rust/impl/proc_macro/macro_tools_lib.rs index 5a3f921c0c..cfdf24b98e 100644 --- a/rust/impl/proc_macro/macro_tools_lib.rs +++ b/rust/impl/proc_macro/macro_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/macro_tools/latest/macro_tools/" ) ] diff --git a/rust/impl/proc_macro/proc_macro_tools_lib.rs b/rust/impl/proc_macro/proc_macro_tools_lib.rs index 515ddfcf5b..3355d0871e 100644 --- a/rust/impl/proc_macro/proc_macro_tools_lib.rs +++ b/rust/impl/proc_macro/proc_macro_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/proc_macro_tools/latest/proc_macro_tools/" ) ] diff --git a/rust/impl/proc_macro/wproc_macro_lib.rs b/rust/impl/proc_macro/wproc_macro_lib.rs index ad339e10f7..d7dff06d5f 100644 --- a/rust/impl/proc_macro/wproc_macro_lib.rs +++ b/rust/impl/proc_macro/wproc_macro_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wproc_macro/latest/wproc_macro/" ) ] diff --git a/rust/impl/publisher/wpublisher_entry.rs b/rust/impl/publisher/wpublisher_entry.rs index 3d9e191846..145f9427ee 100644 --- a/rust/impl/publisher/wpublisher_entry.rs +++ b/rust/impl/publisher/wpublisher_entry.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wpublisher/" ) ] diff --git a/rust/impl/publisher/wpublisher_lib.rs b/rust/impl/publisher/wpublisher_lib.rs index 127bc2489f..3a04e4868b 100644 --- a/rust/impl/publisher/wpublisher_lib.rs +++ b/rust/impl/publisher/wpublisher_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wpublisher/" ) ] diff --git a/rust/impl/sketch_alias/sketch_alias_lib.rs b/rust/impl/sketch_alias/sketch_alias_lib.rs index 828ed6f485..3b399d648b 100644 --- a/rust/impl/sketch_alias/sketch_alias_lib.rs +++ b/rust/impl/sketch_alias/sketch_alias_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/sketch_alias/latest/sketch_alias/" ) ] diff --git a/rust/impl/sketch_blank/sketch_blank_lib.rs b/rust/impl/sketch_blank/sketch_blank_lib.rs index ea29cd8c64..149f65234d 100644 --- a/rust/impl/sketch_blank/sketch_blank_lib.rs +++ b/rust/impl/sketch_blank/sketch_blank_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/sketch_blank/latest/sketch_blank/" ) ] diff --git a/rust/impl/std_tools_lib.rs b/rust/impl/std_tools_lib.rs index d71110d9fc..8aab0f98f3 100644 --- a/rust/impl/std_tools_lib.rs +++ b/rust/impl/std_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/std_tools/latest/std_tools/" ) ] diff --git a/rust/impl/std_x_lib.rs b/rust/impl/std_x_lib.rs index 2377a317ba..cdf89259a3 100644 --- a/rust/impl/std_x_lib.rs +++ b/rust/impl/std_x_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/std_x/latest/std_x/" ) ] diff --git a/rust/impl/string/strs_tools_lib.rs b/rust/impl/string/strs_tools_lib.rs index ea9b059b3f..8a111616f3 100644 --- a/rust/impl/string/strs_tools_lib.rs +++ b/rust/impl/string/strs_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/strs_tools/latest/strs_tools/" ) ] diff --git a/rust/impl/string/wstring_tools_lib.rs b/rust/impl/string/wstring_tools_lib.rs index 51c4f6495e..97ffc26bb3 100644 --- a/rust/impl/string/wstring_tools_lib.rs +++ b/rust/impl/string/wstring_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wstring_tools/latest/wstring_tools/" ) ] diff --git a/rust/impl/test/test_tools_lib.rs b/rust/impl/test/test_tools_lib.rs index 80bbb9003e..33a25c1ace 100644 --- a/rust/impl/test/test_tools_lib.rs +++ b/rust/impl/test/test_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/test_tools/latest/test_tools/" ) ] diff --git a/rust/impl/test/wtest_basic_lib.rs b/rust/impl/test/wtest_basic_lib.rs index bf8369f3a0..1dcdf3b83d 100644 --- a/rust/impl/test/wtest_basic_lib.rs +++ b/rust/impl/test/wtest_basic_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wtest_basic/latest/wtest_basic/" ) ] diff --git a/rust/impl/test/wtest_lib.rs b/rust/impl/test/wtest_lib.rs index a678515f9d..6cde45c647 100644 --- a/rust/impl/test/wtest_lib.rs +++ b/rust/impl/test/wtest_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wtest/latest/wtest/" ) ] diff --git a/rust/impl/time/time_tools_lib.rs b/rust/impl/time/time_tools_lib.rs index 7e4140dbca..8e5ae88782 100644 --- a/rust/impl/time/time_tools_lib.rs +++ b/rust/impl/time/time_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/time_tools/latest/time_tools/" ) ] diff --git a/rust/impl/typing/implements_lib.rs b/rust/impl/typing/implements_lib.rs index dc92a3126d..477130d471 100644 --- a/rust/impl/typing/implements_lib.rs +++ b/rust/impl/typing/implements_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/implements/latest/implements/" ) ] diff --git a/rust/impl/typing/inspect_type_lib.rs b/rust/impl/typing/inspect_type_lib.rs index 6e7556fab3..c378ae1189 100644 --- a/rust/impl/typing/inspect_type_lib.rs +++ b/rust/impl/typing/inspect_type_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/inspect_type/latest/inspect_type/" ) ] diff --git a/rust/impl/typing/instance_of_lib.rs b/rust/impl/typing/instance_of_lib.rs index 57630f6ccf..a73f806d59 100644 --- a/rust/impl/typing/instance_of_lib.rs +++ b/rust/impl/typing/instance_of_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/instance_of/latest/instance_of/" ) ] diff --git a/rust/impl/typing/is_slice_lib.rs b/rust/impl/typing/is_slice_lib.rs index add7b2d780..f7b95656a3 100644 --- a/rust/impl/typing/is_slice_lib.rs +++ b/rust/impl/typing/is_slice_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/is_slice/latest/is_slice/" ) ] diff --git a/rust/impl/typing/typing_tools_lib.rs b/rust/impl/typing/typing_tools_lib.rs index 858501493a..56a689f164 100644 --- a/rust/impl/typing/typing_tools_lib.rs +++ b/rust/impl/typing/typing_tools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/typing_tools/latest/typing_tools/" ) ] diff --git a/rust/impl/wtools_alias_lib.rs b/rust/impl/wtools_alias_lib.rs index 413c306848..b076fef162 100644 --- a/rust/impl/wtools_alias_lib.rs +++ b/rust/impl/wtools_alias_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] +#![ cfg_attr( not( feature = "use_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/wtools/latest/wtools/" ) ] diff --git a/rust/impl/wtools_lib.rs b/rust/impl/wtools_lib.rs index 6107fd5dee..21d00ef435 100644 --- a/rust/impl/wtools_lib.rs +++ b/rust/impl/wtools_lib.rs @@ -1,4 +1,4 @@ -#![ cfg_attr( not( feature = "use_std"), no_std ) ] // zzz +#![ cfg_attr( not( feature = "use_std" ), no_std ) ] // zzz #![ 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/wtools/latest/wtools/")] @@ -16,14 +16,14 @@ #![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/Readme.md" ) ) ] /* zzz : register error_tools */ -/* zzz : alias werror -> error_tools */ -/* zzz : register text_tools as alias for wstring */ +/* zzz : alias error_tools -> error_tools */ +/* zzz : register text_tools as alias for strs_tools */ /* zzz : implement module::mod_at */ /* zzz : implement and publish mod_expose */ /* zzz : use skeptic? */ -/* zzz : rename dt -> adt */ +/* zzz : rename dt -> adt? */ /// Dependencies. pub mod dependencies @@ -44,9 +44,9 @@ pub mod dependencies #[ cfg( feature = "time" ) ] pub use ::time_tools; #[ cfg( feature = "string" ) ] - pub use ::wstring_tools; + pub use ::strs_tools; #[ cfg( feature = "error" ) ] - pub use ::werror; + pub use ::error_tools; // #[ cfg( feature = "winterval" ) ] // pub use ::winterval; #[ cfg( feature = "derive" ) ] @@ -74,9 +74,9 @@ pub mod protected #[ cfg( feature = "time" ) ] pub use ::time_tools as time; #[ cfg( feature = "error" ) ] - pub use ::werror as error; + pub use ::error_tools as error; #[ cfg( feature = "string" ) ] - pub use ::wstring_tools as string; + pub use ::strs_tools as string; #[ cfg( feature = "derive" ) ] pub use ::derive_tools as derive; diff --git a/rust/test/error/error_tools_tests.rs b/rust/test/error/error_tools_tests.rs new file mode 100644 index 0000000000..ca2a3a44de --- /dev/null +++ b/rust/test/error/error_tools_tests.rs @@ -0,0 +1,6 @@ + +use error_tools as TheModule; +#[ allow( unused_imports ) ] +use test_tools::*; + +mod inc; \ No newline at end of file diff --git a/rust/test/error/inc.rs b/rust/test/error/inc.rs new file mode 100644 index 0000000000..482f6050cb --- /dev/null +++ b/rust/test/error/inc.rs @@ -0,0 +1,3 @@ +#[ allow( unused_imports ) ] +use super::*; +mod basic_test; diff --git a/rust/test/error/basic_test.rs b/rust/test/error/inc/basic_test.rs similarity index 79% rename from rust/test/error/basic_test.rs rename to rust/test/error/inc/basic_test.rs index 55e0ed137a..d4d9f6babb 100644 --- a/rust/test/error/basic_test.rs +++ b/rust/test/error/inc/basic_test.rs @@ -1,7 +1,5 @@ #![ allow( deprecated ) ] #![ allow( unused_imports ) ] - -// use test_tools::*; use super::*; // @@ -17,7 +15,7 @@ tests_impls! // test.case( "basic" ); - let err1 = TheModule::Error::new( "Some error" ); + let err1 = TheModule::BasicError::new( "Some error" ); a_id!( err1.to_string(), "Some error" ); a_id!( err1.description(), "Some error" ); a_id!( err1.msg(), "Some error" ); @@ -25,14 +23,14 @@ tests_impls! // test.case( "compare" ); - let err1 = TheModule::Error::new( "Some error" ); - let err2 = TheModule::Error::new( "Some error" ); + let err1 = TheModule::BasicError::new( "Some error" ); + let err2 = TheModule::BasicError::new( "Some error" ); a_id!( err1, err2 ); a_id!( err1.description(), err2.description() ); // test.case( "clone" ); - let err1 = TheModule::Error::new( "Some error" ); + let err1 = TheModule::BasicError::new( "Some error" ); let err2 = err1.clone(); a_id!( err1, err2 ); a_id!( err1.description(), err2.description() ); @@ -44,8 +42,8 @@ tests_impls! fn use1() { - use std::error::Error as ErrorAdapter; - use TheModule::Error; + use std::error::Error as ErrorInterface; + use TheModule::BasicError as Error; // test.case( "basic" ); @@ -61,11 +59,11 @@ tests_impls! fn use2() { - use TheModule::{ Error, ErrorAdapter }; + use TheModule::{ BasicError, ErrorInterface }; // test.case( "basic" ); - let err1 = Error::new( "Some error" ); + let err1 = BasicError::new( "Some error" ); a_id!( err1.to_string(), "Some error" ); a_id!( err1.description(), "Some error" ); a_id!( err1.msg(), "Some error" ); @@ -81,7 +79,7 @@ tests_impls! // test.case( "basic" ); - let err1 = TheModule::Error::new( "Some error" ); + let err1 = TheModule::BasicError::new( "Some error" ); a_id!( err1.to_string(), "Some error" ); a_id!( err1.description(), "Some error" ); a_id!( err1.msg(), "Some error" ); diff --git a/rust/test/error/mod.rs b/rust/test/error/mod.rs index aa6054f2bd..3c8a7b104f 100644 --- a/rust/test/error/mod.rs +++ b/rust/test/error/mod.rs @@ -1,8 +1,7 @@ - +#[ allow( unused_imports ) ] +use super::*; #[ cfg( feature = "error" ) ] use wtools::error as TheModule; -#[ allow( unused_imports ) ] -use test_tools::*; #[ cfg( feature = "error" ) ] -mod basic_test; +mod inc; diff --git a/rust/test/error/tests.rs b/rust/test/error/werror_tests.rs similarity index 82% rename from rust/test/error/tests.rs rename to rust/test/error/werror_tests.rs index b9946eab7f..26d9c757c7 100644 --- a/rust/test/error/tests.rs +++ b/rust/test/error/werror_tests.rs @@ -3,4 +3,4 @@ use werror as TheModule; #[ allow( unused_imports ) ] use test_tools::*; -mod basic_test; +mod inc; diff --git a/rust/test/meta/meta/_select_matching_test.rs b/rust/test/meta/meta/_select_matching_test.rs index 792fba4aa0..679cd14fcb 100644 --- a/rust/test/meta/meta/_select_matching_test.rs +++ b/rust/test/meta/meta/_select_matching_test.rs @@ -1,8 +1,3 @@ -// #![ allow( dead_code ) ] -// #![ feature( trace_macros ) ] - -// use test_tools::*; -// use werror::*; use select_matching as TheModule; #[ allow( unused_imports ) ] use test_tools::*; diff --git a/sample/rust/werror_trivial_sample/Cargo.toml b/sample/rust/error_tools_trivial_sample/Cargo.toml similarity index 53% rename from sample/rust/werror_trivial_sample/Cargo.toml rename to sample/rust/error_tools_trivial_sample/Cargo.toml index 51cb34de96..d2125529d0 100644 --- a/sample/rust/werror_trivial_sample/Cargo.toml +++ b/sample/rust/error_tools_trivial_sample/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "werror_trivial_sample" +name = "error_tools_trivial_sample" version = "0.0.0" edition = "2021" publish = false @@ -9,4 +9,4 @@ use_std = [] default = [ "use_std" ] [dependencies] -werror = { version = "*", path = "../../../module/rust/werror" } +error_tools = { version = "*", path = "../../../module/rust/error_tools" } diff --git a/sample/rust/werror_trivial_sample/Readme.md b/sample/rust/error_tools_trivial_sample/Readme.md similarity index 74% rename from sample/rust/werror_trivial_sample/Readme.md rename to sample/rust/error_tools_trivial_sample/Readme.md index 145ec6abef..3dd0c35dbc 100644 --- a/sample/rust/werror_trivial_sample/Readme.md +++ b/sample/rust/error_tools_trivial_sample/Readme.md @@ -1,5 +1,5 @@ # Sample [![discord](https://img.shields.io/discord/872391416519737405?color=eee&logo=discord&logoColor=eee&label=ask)](https://discord.gg/m3YfbXpUUY) -[![Open in Gitpod](https://raster.shields.io/static/v1?label=try&message=online&color=eee&logo=gitpod&logoColor=eee)](https://gitpod.io/#RUN_PATH=sample%2Frust%2Fwerror_trivial_sample,SAMPLE_FILE=.%2Fsrc%2Fmain.rs/https://github.com/Wandalen/wTools) -[![docs.rs](https://raster.shields.io/static/v1?label=docs&message=online&color=eee&logo=docsdotrs&logoColor=eee)](https://docs.rs/werror) +[![Open in Gitpod](https://raster.shields.io/static/v1?label=try&message=online&color=eee&logo=gitpod&logoColor=eee)](https://gitpod.io/#RUN_PATH=sample%2Frust%2Ferror_tools_trivial_sample,SAMPLE_FILE=.%2Fsrc%2Fmain.rs/https://github.com/Wandalen/wTools) +[![docs.rs](https://raster.shields.io/static/v1?label=docs&message=online&color=eee&logo=docsdotrs&logoColor=eee)](https://docs.rs/error_tools) diff --git a/sample/rust/werror_trivial_sample/src/main.rs b/sample/rust/error_tools_trivial_sample/src/main.rs similarity index 68% rename from sample/rust/werror_trivial_sample/src/main.rs rename to sample/rust/error_tools_trivial_sample/src/main.rs index 09db70c4ac..64a11b8105 100644 --- a/sample/rust/werror_trivial_sample/src/main.rs +++ b/sample/rust/error_tools_trivial_sample/src/main.rs @@ -1,11 +1,11 @@ #[ cfg( feature = "use_std" ) ] -use werror::*; +use error_tools::*; fn main() { #[ cfg( feature = "use_std" ) ] { - let err1 = Error::new( "Some error" ); + let err1 = BasicError::new( "Some error" ); println!( "err1 : {}", err1 ); // < err1 : Some error } diff --git a/sample/rust/strs_tools_trivial_sample/Cargo.toml b/sample/rust/strs_tools_trivial_sample/Cargo.toml index ac6e2835b6..09f0b6a242 100644 --- a/sample/rust/strs_tools_trivial_sample/Cargo.toml +++ b/sample/rust/strs_tools_trivial_sample/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "wstring_tools_trivial_sample" +name = "strs_tools_trivial_sample" version = "0.0.0" edition = "2021" publish = false diff --git a/sample/rust/strs_tools_trivial_sample/Readme.md b/sample/rust/strs_tools_trivial_sample/Readme.md index 26a917be99..d7d2f6098b 100644 --- a/sample/rust/strs_tools_trivial_sample/Readme.md +++ b/sample/rust/strs_tools_trivial_sample/Readme.md @@ -1,5 +1,5 @@ # Sample [![discord](https://img.shields.io/discord/872391416519737405?color=eee&logo=discord&logoColor=eee&label=ask)](https://discord.gg/m3YfbXpUUY) -[![Open in Gitpod](https://raster.shields.io/static/v1?label=try&message=online&color=eee&logo=gitpod&logoColor=eee)](https://gitpod.io/#RUN_PATH=sample%2Frust%2Fwstring_tools_trivial_sample,SAMPLE_FILE=.%2Fsrc%2Fmain.rs/https://github.com/Wandalen/wTools) -[![docs.rs](https://raster.shields.io/static/v1?label=docs&message=online&color=eee&logo=docsdotrs&logoColor=eee)](https://docs.rs/wstring_tools) +[![Open in Gitpod](https://raster.shields.io/static/v1?label=try&message=online&color=eee&logo=gitpod&logoColor=eee)](https://gitpod.io/#RUN_PATH=sample%2Frust%2Fstrs_tools_trivial_sample,SAMPLE_FILE=.%2Fsrc%2Fmain.rs/https://github.com/Wandalen/wTools) +[![docs.rs](https://raster.shields.io/static/v1?label=docs&message=online&color=eee&logo=docsdotrs&logoColor=eee)](https://docs.rs/strs_tools) diff --git a/sample/rust/wca_trivial_sample/src/main.rs b/sample/rust/wca_trivial_sample/src/main.rs index 3938621d2a..bf125c2450 100644 --- a/sample/rust/wca_trivial_sample/src/main.rs +++ b/sample/rust/wca_trivial_sample/src/main.rs @@ -1,5 +1,5 @@ use wca::*; -use wstring_tools::string::parse::OpType; +use wca::string::parse::OpType; /* qqq : this should work. if does not then fix not this line */ fn main() { @@ -16,4 +16,3 @@ fn main() }; assert_eq!( instruction, exp ); } -