Commit graph

106 commits

Author SHA1 Message Date
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
Harald Hoyer 9d8f316db2
add README.tpl template 2020-08-28 17:07:19 +02:00
Harald Hoyer ebbdddf971
Cargo.toml: fixed github workflow badge 2020-08-28 17:01:50 +02:00
Harald Hoyer 356335e807
use #[track_caller] and Location 2020-08-28 16:58:58 +02:00
Harald Hoyer e2815321bc
add github CI and coveralls badges to README 2020-06-03 14:42:33 +02:00
Harald Hoyer fb99427f19
coverage: don't use all features 2020-06-03 14:42:29 +02:00
Harald Hoyer 935eb658cf
make test pass with --all-features 2020-06-03 14:42:24 +02:00
Harald Hoyer 241502de75
remove main in doc tests and cargo fmt the doc tests 2020-06-03 14:19:48 +02:00
Harald Hoyer 174d81c8d9
add code coverage via cargo tarpaulin and coveralls 2020-06-03 14:01:44 +02:00
Harald Hoyer 24900e47d9
.github/workflows/gh-pages.yml: cache bi-weekly 2020-03-03 15:57:26 +01:00
Harald Hoyer def8d8c148
remove cache keys 2020-03-03 15:49:24 +01:00
Harald Hoyer db7683f90f
.github/workflows/gh-pages.yml: cache mdbook build 2020-03-03 15:44:01 +01:00
Harald Hoyer 1d43a39c61
add dyn 2020-03-03 15:06:44 +01:00
Harald Hoyer 3e270f1e1a
book: use rustdoc_include 2020-03-03 15:06:40 +01:00
Harald Hoyer 903f245278
Create gh-pages.yml 2020-03-03 15:01:25 +01:00
Harald Hoyer 648dc871c2
Create rust.yml 2020-03-03 15:01:02 +01:00