Skip to content

Commit

Permalink
rename werror -> error_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Jun 12, 2022
1 parent 639cf88 commit 89c391c
Show file tree
Hide file tree
Showing 86 changed files with 492 additions and 191 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/ModuleStrsToolsPush.yml
Original file line number Diff line number Diff line change
@@ -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 }}
17 changes: 0 additions & 17 deletions .github/workflows/ModulewStringToolsPush.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |

Expand Down
1 change: 0 additions & 1 deletion module/_/_select_matching/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
19 changes: 17 additions & 2 deletions module/alias/non_std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 17 additions & 2 deletions module/alias/std_tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 17 additions & 2 deletions module/alias/std_x/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 17 additions & 2 deletions module/alias/wTools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
42 changes: 31 additions & 11 deletions module/rust/werror/Cargo.toml → module/alias/werror/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "werror"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = [
"Kostiantyn Wandalen <[email protected]>",
Expand All @@ -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.
"""
Expand All @@ -22,34 +22,54 @@ 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"
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" }
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
```
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion module/move/wcensor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
10 changes: 8 additions & 2 deletions module/rust/_integration_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -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" }
Expand Down
Loading

0 comments on commit 89c391c

Please sign in to comment.