Commit graph

121 commits

Author SHA1 Message Date
Harald Hoyer 101d2074e1
feat: removed prelude
It was causing the rust compiler to output the renamed structs in error
messages confusing users who don't know about the old renamed ones.

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 17:04:39 +02:00
Harald Hoyer aaca6945b0
feat: add new(Into<String>) method for str_context! types
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 16:32:46 +02:00
Harald Hoyer cb9465f0df
chore: remove obsolete README.tpl
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 16:22:15 +02:00
Harald Hoyer 82257c881a
docs: use new names
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 16:22:00 +02:00
Harald Hoyer 55c16d7867
tests: use new names
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 16:20:55 +02:00
Harald Hoyer 3ab04cca25
feat: cleanup names
- ResultTrait -> Context
- ChainErrorDown -> ErrorDown
- derive_err_kind -> err_kind
- derive_str_context -> str_context
- add `prelude::v2` with only the traits

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 16:18:54 +02:00
Harald Hoyer cb2e1509e5
chore: remove more Chain.. occurences
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 15:28:27 +02:00
Harald Hoyer cacfb37d44
chore: Release chainerror version 0.8.2 2023-07-28 15:18:14 +02:00
Harald Hoyer 5ddc595e3f
ci: use ubuntu-latest (#12)
The ubuntu-18.04 environment is deprecated.
2023-07-28 15:15:21 +02:00
Harald Hoyer 11aeeb17c3
ci: use ubuntu-latest
The ubuntu-18.04 environment is deprecated.

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 15:13:50 +02:00
Harald Hoyer 7267a08b68
fix: re-add the basic doc test (#11)
and more doc improvements
2023-07-28 15:09:35 +02:00
Harald Hoyer a116310c4d
doc: improvements
- remove `Chain…` mentions in the docs
- add doc links
- add rustdoc feature to scrape the examples for code

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 15:06:31 +02:00
Harald Hoyer 968c83983a
fix: re-add the basic doc test
It got lost with the `README.md` conversion.

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-28 15:04:29 +02:00
Harald Hoyer 9e7492f67f
chore: Release chainerror version 0.8.1-alpha.1 2023-07-27 15:29:06 +02:00
Harald Hoyer 87bac108d2
chore: Release chainerror version 0.8.0 2023-07-27 15:28:18 +02:00
Harald Hoyer 005d46bf4d
0.8 changes (#10)
* use `#[track_caller]`
* removed feature `display-cause`
* remove ChainErrorFrom and IntoChainError, add From
* cleanup
2023-07-27 15:00:07 +02:00
Harald Hoyer cf62d1a9f9
chore: remove need for cargo readme
Just use `#![doc = include_str!("../README.md")]`

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-27 14:59:05 +02:00
Harald Hoyer 165c1b939c
chore: suppress clippy errors in tutorial
code is in this state by purpose

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-27 14:37:19 +02:00
Harald Hoyer 1327575aa9
feat!: remove Chain prefix from Error and Result
like `anyhow`

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-27 14:36:52 +02:00
Harald Hoyer f5c8afce0d
feat: remove ChainErrorFrom and IntoChainError, add From
ChainErrorFrom and IntoChainError are not needed anymore with the
`#[track_caller]` feature.

Now, a proper `From<T> for ChainError<T>` can be implemented.
2023-07-27 14:32:30 +02:00
Harald Hoyer bdfec08228
feat: add inline to context and map_context methods 2023-07-27 14:32:26 +02:00
Harald Hoyer 4eae3da3c1
feat: removed feature display-cause
`display-cause` can be turned on with the `{:#}` format specifier
2023-07-27 14:32:21 +02:00
Harald Hoyer b2a62b2f55
chore: Release chainerror version 0.7.2-alpha.1 2023-07-27 14:29:29 +02:00
Harald Hoyer e90072f079
chore: Release chainerror version 0.7.1 2023-07-27 14:24:20 +02:00
Harald Hoyer 1a102e1b5c
Merge pull request #9 from haraldh/license
chore: fix License to SPDX syntax
2023-07-27 14:15:37 +02:00
Harald Hoyer a34929600e
chore: fix License to SPDX syntax
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-27 14:13:34 +02:00
Harald Hoyer 06da605462
Merge pull request #8 from haraldh/CI
CI update + Doc test fix
2023-07-27 14:07:21 +02:00
Harald Hoyer 95c5a02d50
test: rewrite doc test
Line numbering has changed in Rust 1.71 in the doc tests, due to an
extra inserted `#[allow(unused_extern_crates)]` line.

Don't test for the exact line number anymore.

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-27 14:04:02 +02:00
Harald Hoyer 376e133836
ci: use codecov for coverage
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-27 14:03:18 +02:00
Harald Hoyer bb5f372a92
fix: use dtolnay/rust-toolchain
instead of `actions-rs/toolchain`

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-27 14:03:15 +02:00
Harald Hoyer d60cdf9cdb
fix: clippy
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2023-07-27 14:03:12 +02:00
Harald Hoyer 05085229be
chore: fix github pages deploy
set-env is deprecated ... remove the caching stuff
2021-02-02 09:45:23 +01:00
Harald Hoyer d577243d8e
(cargo-release) start next development iteration 0.7.1-alpha.0 2021-02-02 09:12:07 +01:00
Harald Hoyer ee385c1fe0
(cargo-release) version 0.7.0 2021-02-02 09:11:42 +01:00
Jakub Duchniewicz 259712931f Rust PR 75180 fix. 2021-02-01 16:51:34 +01:00
Harald Hoyer 11b30b1c6f
Merge pull request #5 from haraldh/dependabot/add-v2-config-file
Create Dependabot config file
2020-09-02 21:36:53 +02:00
dependabot-preview[bot] 523b8633fb
Create Dependabot config file 2020-09-02 19:31:40 +00:00
Harald Hoyer 050c1bf99e
Merge pull request #4 from haraldh/release
Release
2020-09-01 23:02:57 +02:00
Harald Hoyer cd0fc471cb
(cargo-release) start next development iteration 0.6.2-alpha.0 2020-09-01 22:59:58 +02:00
Harald Hoyer 1003671be3
(cargo-release) version 0.6.1 2020-09-01 22:59:44 +02:00
Harald Hoyer a7925b35bd
Merge pull request #3 from haraldh/better_readme
Better introduction examples.
2020-09-01 22:59:10 +02:00
Harald Hoyer f586b52675
Better introduction examples. 2020-09-01 22:55:29 +02:00
Harald Hoyer b6ecfdb6d7
Merge pull request #2 from haraldh/new_branch
New branch
2020-09-01 21:51:22 +02:00
Harald Hoyer 455b01d3fb
(cargo-release) start next development iteration 0.6.1-alpha.0 2020-09-01 21:47:49 +02:00
Harald Hoyer a78b9a22f7
(cargo-release) version 0.6.0 2020-09-01 21:47:29 +02:00
Harald Hoyer 56c13d0be5
update README.md 2020-09-01 21:43:29 +02:00
Harald Hoyer 14c67e1903
ignore first example 2020-09-01 21:42:17 +02:00
Harald Hoyer 1654624c08
more documentation and formatting 2020-09-01 21:34:46 +02:00
Harald Hoyer ed710fada3 rename cherr() to context() 2020-09-01 21:03:57 +02:00
Harald Hoyer 2af5fb7ad6
doc fix 2020-08-28 17:11:56 +02:00