Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add color-eyre to workspace #110

Merged
merged 136 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
f444576
initial commit
yaahc Apr 24, 2020
cb9fcb8
initial working example
yaahc Apr 24, 2020
373e6d8
pre-release version
yaahc Apr 24, 2020
50587e5
remove eyre from public API
yaahc Apr 25, 2020
1f3e10d
Update documentation
yaahc Apr 25, 2020
a9f059a
fix failing doctest
yaahc Apr 25, 2020
0c1b5be
fix images in repo
yaahc Apr 25, 2020
3edc5c8
better images again
yaahc Apr 25, 2020
4e85352
Fix all doc links
yaahc Apr 25, 2020
6c4194a
document main types
yaahc Apr 25, 2020
77442e1
More docs
yaahc Apr 25, 2020
653422c
One minor tweek
yaahc Apr 25, 2020
af67c25
Fix more links
yaahc Apr 25, 2020
043abca
Add full example to readme
yaahc Apr 25, 2020
f6b7fb3
Turn on rust syntax highlighting
yaahc Apr 25, 2020
6ce041f
Fix inconsistent examples
yaahc Apr 25, 2020
b656a62
Fix dependency in readme
yaahc Apr 25, 2020
08471e1
Fix example
yaahc Apr 25, 2020
b8ff7e0
Update pictures
yaahc Apr 25, 2020
3f59125
update to use indenter and improved color-backtrace and spantrace
yaahc May 1, 2020
4ad1e14
little a comma
yaahc May 2, 2020
0c921a3
update docs
yaahc May 7, 2020
d5195a9
add ci
yaahc May 7, 2020
a0823eb
organize consistently
yaahc May 7, 2020
9a38e54
final push hopefully
yaahc May 7, 2020
1666a4d
fix inconsistent behavior (#1)
yaahc May 7, 2020
1ca762d
create new release to clean up docs and images (#2)
yaahc May 7, 2020
ee694c2
fix links for rustdoc (#3)
yaahc May 7, 2020
9154b93
bump version to update eyre dep
yaahc May 7, 2020
3396e39
Bump major version to deal with breaking change
yaahc May 7, 2020
496a17e
bump version of backtrace dep
yaahc May 15, 2020
ad8d7cc
mirror std backtrace capture rules (#14)
yaahc May 17, 2020
9517249
Add windows and macos support in tests (#9)
yaahc May 17, 2020
65ab3af
bump version for new release
yaahc May 17, 2020
9f5defe
Add support for custom color-backtrace config (#17)
yaahc May 19, 2020
7b2d9f4
Add custom section support for reports (#18)
yaahc May 26, 2020
fe284a8
Try to isolate debug mode perf regression (#20)
yaahc May 30, 2020
5b6507d
Simplify sections features (#22)
yaahc Jun 3, 2020
3384c06
fix color intensity (#23)
yaahc Jun 3, 2020
fff76b1
dedupe ansi-term dependency (#24)
yaahc Jun 3, 2020
b5060a5
Fix cleanup warnings in `tests/minimal.rs` when compiled for windows.…
iamsaquib8 Jun 4, 2020
63b8bc7
depend on next version of eyre (#27)
yaahc Jun 21, 2020
69db885
fix issue with spantrace capture in last release (#28)
yaahc Jun 21, 2020
fe08025
add support for conditional capture of span traces (#33)
yaahc Jul 5, 2020
9e6a349
port color-eyre to new eyre with global hook (#29)
yaahc Jul 6, 2020
1df9ec5
add testing for wasm (#38)
Mythra Jul 23, 2020
318241a
print panics via eprinln to leverage test io capture (#42)
yaahc Jul 26, 2020
74c46d6
fix output format to be more consistent (#43)
yaahc Jul 26, 2020
544ef9f
Use `<span>` instead of `<font>` in documentation (#44)
9999years Jul 30, 2020
7316c8f
make new release (#46)
yaahc Aug 6, 2020
f96519e
Add `__rust_begin_short_backtrace` filter (#48)
yaahc Aug 17, 2020
a83c478
Add config option to disable env section (#49)
yaahc Aug 22, 2020
5cf35af
Add panic_note to HookBuilder (#51)
Stupremee Aug 24, 2020
62434e4
Replace `Help` trait with `Section` in README (#52)
Stupremee Aug 24, 2020
1005cfc
owo merge this (#53)
yaahc Aug 27, 2020
ecb0642
Fix Section trait to work with Result and Report (#54)
yaahc Sep 1, 2020
e3db043
bump version for new release (#55)
yaahc Sep 1, 2020
17c325d
(cargo-release) start next development iteration 0.5.3-alpha.0 (#56)
yaahc Sep 1, 2020
ff84554
Add support for customized panic message sections (#57)
yaahc Sep 15, 2020
5365400
prep for release (#59)
yaahc Sep 15, 2020
74fa2c9
oops that didn't quite work (#60)
yaahc Sep 15, 2020
d1ff3e8
bump version for next release (#61)
yaahc Sep 15, 2020
0580930
Fix a typo: indenteted ~> indented (#63)
alexwlchan Sep 16, 2020
9c738c3
Implement github issue generator (#62)
yaahc Sep 17, 2020
4ddaeb2
add support for filtering issue generation for errors (#64)
yaahc Sep 21, 2020
dd21032
Add support for track caller via new feature flag (#68)
yaahc Oct 3, 2020
030dc5a
Add feature more gates for capture-spantrace (#70)
knutwalker Nov 6, 2020
198600f
new minor version release (#71)
yaahc Nov 6, 2020
60e426e
#66 work in progress make print_panic_info() public (#67)
kellpossible Nov 24, 2020
6063ec8
Fix broken link in README (#75)
Tiwalun Nov 27, 2020
716621f
bump spantrace version to fix a panic (#76)
yaahc Dec 2, 2020
097ae87
Support for custom styles (#69)
d4h0 Dec 4, 2020
8916972
Update tracing layer message to be more intuitive
yaahc Apr 13, 2021
7009a52
(cargo-release) version 0.5.11
yaahc Apr 13, 2021
472997e
Merge pull request #81 from yaahc/tracing-layer-msg
yaahc Apr 14, 2021
fa3695b
update references to renamed Help trait
yaahc Jul 23, 2021
07b9f03
Merge pull request #87 from yaahc/helpful
yaahc Jul 23, 2021
1480982
Update tracing error
asonix Dec 26, 2021
088ed53
Depend on proper subscriber features
asonix Dec 26, 2021
d8f8657
Fix tests (these seem very brittle)
asonix Dec 26, 2021
3df3e93
integrate color-spantrace release
yaahc Jan 13, 2022
73cd61f
fix clippy warnings
yaahc Jan 13, 2022
aaa87c2
update the rest of the tests/data files
yaahc Jan 13, 2022
316efcc
integrate the rest of the changes by asonix
yaahc Jan 13, 2022
5624f10
Merge pull request #92 from asonix/asonix/update-tracing-error
yaahc Jan 13, 2022
5cd0abd
Prepare for 0.6 release
yaahc Jan 13, 2022
d79aab1
(cargo-release) version 0.6.0
yaahc Jan 13, 2022
3c3641c
Merge pull request #98 from yaahc/release
yaahc Jan 13, 2022
10dfd8d
Join backtrace omission lines
Hoverbear Feb 25, 2022
e9e68ad
fmt
Hoverbear Feb 25, 2022
702f71f
Merge pull request #100 from Hoverbear-Consulting/merge-backtrace-omi…
yaahc Feb 25, 2022
a2cbb44
fix clippy warning
yaahc Feb 25, 2022
8a8564d
update changelog
yaahc Feb 25, 2022
c544079
rustfmt you bitch
yaahc Feb 25, 2022
04319d7
(cargo-release) version 0.6.1
yaahc Feb 25, 2022
801aa67
Merge pull request #101 from yaahc/release
yaahc Mar 2, 2022
615d16c
Add LICENSE files to close #90
dbanty Mar 16, 2022
2128f07
Merge pull request #104 from dbanty/master
yaahc May 5, 2022
9cbcd93
add config option to disable location section
Emilgardis Mar 17, 2022
08e216d
Merge pull request #106 from Emilgardis/display_location_section
yaahc Jul 11, 2022
5890bab
fix clippy warnings
yaahc Jul 11, 2022
5f8b475
Merge pull request #111 from yaahc/appeasement
yaahc Jul 11, 2022
6ebf845
Update changelog for new release
yaahc Jul 11, 2022
6a9b70b
(cargo-release) version 0.6.2
yaahc Jul 11, 2022
ede8650
Merge pull request #112 from yaahc/release
yaahc Jul 11, 2022
5aa7c40
add suppress_backtrace
chris-laplante Jul 15, 2022
99df70d
Merge branch 'yaahc:master' into cpl/suppress_backtrace
chris-laplante Jul 21, 2022
48037df
fix: Do not panic on multiple `install` calls
jaysonsantos Jul 26, 2022
9e6280b
Update version in setup instructions to 0.6
sciguy16 Jul 26, 2022
bbe5705
Merge pull request #115 from sciguy16/version-update
yaahc Jul 26, 2022
22ac4da
chore: fix panic compose example
jaysonsantos Jul 27, 2022
c770783
Merge branch 'master' into master
jaysonsantos Jul 27, 2022
d70363e
fix: Extract backward compatible bits from `into_hooks` into `try_int…
jaysonsantos Jul 27, 2022
1400430
Apply suggestions from code review
yaahc Jul 27, 2022
ad68589
Merge pull request #114 from jaysonsantos/master
yaahc Jul 29, 2022
2821e2b
cargo fmt
chris-laplante Jul 30, 2022
93fcb6f
Merge branch 'master' into cpl/suppress_backtrace
yaahc Aug 1, 2022
4a7b4d6
Merge pull request #113 from chris-laplante/cpl/suppress_backtrace
yaahc Aug 4, 2022
5993821
Add 'color-eyre/' from commit '4a7b4d6988c6b0da5e04e29c9d6e10595b5dc302'
pksunkara Oct 11, 2023
7c7079e
Add color-eyre to workspace
pksunkara Oct 11, 2023
a504a60
fix: warnings for newer rust versions
ten3roberts Nov 7, 2023
eedde51
fix: test_error_backwards_compatability
ten3roberts Nov 7, 2023
2629d61
fix: no-default-features test
ten3roberts Nov 7, 2023
7fadb08
fix: track caller test
ten3roberts Nov 7, 2023
b4a26d7
fix: spantrace test
ten3roberts Nov 7, 2023
4a5297d
Merge pull request #140 from eyre-rs/fix-ci
pksunkara Nov 10, 2023
d825b49
fix: conflicting example binaries
ten3roberts Dec 8, 2023
57216d0
Merge remote-tracking branch 'origin/master' into color-eyre
ten3roberts Dec 8, 2023
e3fd620
Merge commit '4a5297d30b0f0754a3bbc47b71bb55b04960c0ad' into color-eyre
ten3roberts Dec 11, 2023
e61cf4e
fix: miri tests
ten3roberts Dec 11, 2023
de636fa
fix: clippy
ten3roberts Dec 11, 2023
1da23d9
Merge branch 'master' into color-eyre
ten3roberts Jan 23, 2024
eb26e02
fix: color-eyre theme test suite backtraces to match the tested MSRV
ten3roberts Jan 23, 2024
8ebc308
fix: make theme test more lenient
ten3roberts Jan 25, 2024
cb4bab6
chore: update issues redirect
ten3roberts Jan 29, 2024
eb8d059
Merge remote-tracking branch 'origin/master' into color-eyre
ten3roberts Mar 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
features:
- # default
- --no-default-features
- --features track-caller
- --no-default-features --features track-caller
- --no-default-features --features auto-install
Comment on lines +47 to +48
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does changing to "--no-default-features" for eyre's track-caller and auto-install tests relate to adding color-eyre to the workspace?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, I think it was Pavan who added that to increase the test coverage for feature combinations. This is one of the earliest commits

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it's replacing two feature combinations, i'm not sure that it expands the test coverage. If we want to increase the test coverage we could keep both --features and --no-features.

- --features pyo3
- --features auto-install
- --all-features
steps:
- uses: actions/checkout@v1
Expand All @@ -67,8 +67,8 @@ jobs:
features:
- # default
- --no-default-features
- --features track-caller
- --features auto-install
- --no-default-features --features track-caller
- --no-default-features --features auto-install
# skip `--features pyo3` and `--all-features` because pyo3 doesn't support this msrv
steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -136,6 +136,7 @@ jobs:
with:
command: clippy
args: --all-targets --all-features -- -D warnings

miri:
name: Miri
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = [
"color-eyre",
"color-spantrace",
"eyre"
]
Expand All @@ -15,3 +16,9 @@ rust-version = "1.65.0"
[workspace.dependencies]
indenter = "0.3.0"
once_cell = "1.18.0"
owo-colors = "3.2.0"

[profile.dev.package.backtrace]
opt-level = 3


15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
eyre
====
# eyre

[![Build Status][actions-badge]][actions-url]
[![Latest Version](https://img.shields.io/crates/v/eyre.svg)](https://crates.io/crates/eyre)
[![Rust Documentation](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/eyre)
[![Latest Version][version-badge]][version-url]
[![Rust Documentation][docs-badge]][docs-url]
[![Discord chat][discord-badge]][discord-url]

[actions-badge]: https://github.com/eyre-rs/eyre/workflows/Continuous%20integration/badge.svg
[actions-url]: https://github.com/eyre-rs/eyre/actions?query=workflow%3A%22Continuous+integration%22
[version-badge]: https://img.shields.io/crates/v/eyre.svg
[version-url]: https://crates.io/crates/eyre
[docs-badge]: https://img.shields.io/badge/docs-latest-blue.svg
[docs-url]: https://docs.rs/eyre
[discord-badge]: https://img.shields.io/discord/960645145018110012?label=eyre%20community%20discord
[discord-url]: https://discord.gg/z94RqmUTKB

Expand Down Expand Up @@ -255,10 +258,10 @@ implements `context` for options which you can import to make existing
[`anyhow`]: https://github.com/dtolnay/anyhow
[`tracing_error::SpanTrace`]: https://docs.rs/tracing-error/*/tracing_error/struct.SpanTrace.html
[`stable-eyre`]: https://github.com/eyre-rs/stable-eyre
[`color-eyre`]: https://github.com/eyre-rs/color-eyre
[`color-eyre`]: https://github.com/eyre-rs/eyre/tree/master/color-eyre
[`jane-eyre`]: https://github.com/yaahc/jane-eyre
[`simple-eyre`]: https://github.com/eyre-rs/simple-eyre
[`color-spantrace`]: https://github.com/eyre-rs/color-spantrace
[`color-spantrace`]: https://github.com/eyre-rs/eyre/tree/master/color-spantrace
[`color-backtrace`]: https://github.com/athre0z/color-backtrace
thenorili marked this conversation as resolved.
Show resolved Hide resolved

[^1]: example and explanation of breakage https://github.com/eyre-rs/eyre/issues/30#issuecomment-647650361
Expand Down
135 changes: 135 additions & 0 deletions color-eyre/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
on:
push:
branches:
- master
pull_request: {}

name: Continuous integration

jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check

test-features:
name: Test Features
runs-on: ubuntu-latest
strategy:
matrix:
features:
-
- --all-features
- --no-default-features
- --no-default-features --features issue-url
- --no-default-features --features capture-spantrace
- --no-default-features --features track-caller
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }}

test-versions:
name: Test Versions
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- wasm32-unknown-unknown
rust:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
target: ${{ matrix.target }}
toolchain: ${{ matrix.rust }}
override: true
- name: install test runner for wasm
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
if: ${{ matrix.target == 'wasm32-unknown-unknown' }}
- uses: actions-rs/cargo@v1
with:
command: test
target: ${{ matrix.target }}
toolchain: ${{ matrix.rust }}
if: ${{ matrix.target != 'wasm32-unknown-unknown' }}
- name: run wasm tests
run: wasm-pack test --node
if: ${{ matrix.target == 'wasm32-unknown-unknown' }}

test-os:
name: Test Operating Systems
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
88 changes: 88 additions & 0 deletions color-eyre/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- next-header -->

## [Unreleased] - ReleaseDate

## [0.6.2] - 2022-07-11
### Added
- Option to disable display of location section in error reports

## [0.6.1] - 2022-02-24
### Changed
- Collapsed backtrace help text into fewer lines

## [0.6.0] - 2022-01-12
### Changed
- Updated dependencies to match newest tracing versions

## [0.5.11] - 2021-04-13

## [0.5.10] - 2020-12-02
### Added
- Support custom themes

## [0.5.9] - 2020-12-02
### Fixed
- Bumped color-spantrace dependency version to fix a panic

## [0.5.8] - 2020-11-23
### Added
- Exposed internal interfaces for the panic handler so that it can be wrapped
by consumers to customize the behaviour of the panic hook.

## [0.5.7] - 2020-11-05
### Fixed
- Added missing `cfg`s that caused compiler errors when only enabling the
`issue-url` feature

## [0.5.6] - 2020-10-02
### Added
- Add support for track caller added in eyre 0.6.1 and print original
callsites of errors in all `eyre::Reports` by default

## [0.5.5] - 2020-09-21
### Added
- add `issue_filter` method to `HookBuilder` for disabling issue generation
based on the error encountered.

## [0.5.4] - 2020-09-17
### Added
- Add new "issue-url" feature for generating issue creation links in error
reports pre-populated with information about the error

## [0.5.3] - 2020-09-14
### Added
- add `panic_section` method to `HookBuilder` for overriding the printer for
the panic message at the start of panic reports

## [0.5.2] - 2020-08-31
### Added
- make it so all `Section` trait methods can be called on `Report` in
addition to the already supported usage on `Result<T, E: Into<Report>>`
- panic_section to `HookBuilder` to add custom sections to panic reports
- display_env_section to `HookBuilder` to disable the output indicating what
environment variables can be set to manipulate the error reports
### Changed
- switched from ansi_term to owo-colors for colorizing output, allowing for
better compatibility with the Display trait

<!-- next-url -->
[Unreleased]: https://github.com/eyre-rs/color-eyre/compare/v0.6.2...HEAD
[0.6.2]: https://github.com/eyre-rs/color-eyre/compare/v0.6.1...v0.6.2
[0.6.1]: https://github.com/eyre-rs/color-eyre/compare/v0.6.0...v0.6.1
[0.6.0]: https://github.com/eyre-rs/color-eyre/compare/v0.5.11...v0.6.0
[0.5.11]: https://github.com/eyre-rs/color-eyre/compare/v0.5.10...v0.5.11
[0.5.10]: https://github.com/eyre-rs/color-eyre/compare/v0.5.9...v0.5.10
[0.5.9]: https://github.com/eyre-rs/color-eyre/compare/v0.5.8...v0.5.9
[0.5.8]: https://github.com/eyre-rs/color-eyre/compare/v0.5.7...v0.5.8
[0.5.7]: https://github.com/eyre-rs/color-eyre/compare/v0.5.6...v0.5.7
[0.5.6]: https://github.com/eyre-rs/color-eyre/compare/v0.5.5...v0.5.6
[0.5.5]: https://github.com/eyre-rs/color-eyre/compare/v0.5.4...v0.5.5
[0.5.4]: https://github.com/eyre-rs/color-eyre/compare/v0.5.3...v0.5.4
[0.5.3]: https://github.com/eyre-rs/color-eyre/compare/v0.5.2...v0.5.3
[0.5.2]: https://github.com/eyre-rs/color-eyre/releases/tag/v0.5.2
83 changes: 83 additions & 0 deletions color-eyre/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
[package]
name = "color-eyre"
version = "0.6.2"
description = "An error report handler for panics and eyre::Reports for colorful, consistent, and well formatted error reports for all kinds of errors."
documentation = "https://docs.rs/color-eyre"

authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
readme = { workspace = true }
rust-version = { workspace = true }

[features]
default = ["track-caller", "capture-spantrace"]
capture-spantrace = ["tracing-error", "color-spantrace"]
issue-url = ["url"]
track-caller = []

[dependencies]
eyre = "0.6.1"
tracing-error = { version = "0.2.0", optional = true }
backtrace = { version = "0.3.48", features = ["gimli-symbolize"] }
indenter = { workspace = true }
owo-colors = { workspace = true }
color-spantrace = { version = "0.2", optional = true }
once_cell = { workspace = true }
url = { version = "2.1.1", optional = true }

[dev-dependencies]
tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
tracing = "0.1.13"
pretty_assertions = "1.0.0"
thiserror = "1.0.19"
ansi-parser = "0.8.0"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.15"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.release]
dev-version = false

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "Unreleased"
replace="{{version}}"

[[package.metadata.release.pre-release-replacements]]
file = "src/lib.rs"
search = "#!\\[doc\\(html_root_url.*"
replace = "#![doc(html_root_url = \"https://docs.rs/{{crate_name}}/{{version}}\")]"
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "\\.\\.\\.HEAD"
replace="...{{tag_name}}"
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "ReleaseDate"
replace="{{date}}"

[[package.metadata.release.pre-release-replacements]]
file="CHANGELOG.md"
search="<!-- next-header -->"
replace="<!-- next-header -->\n\n## [Unreleased] - ReleaseDate"
exactly=1

[[package.metadata.release.pre-release-replacements]]
file="CHANGELOG.md"
search="<!-- next-url -->"
replace="<!-- next-url -->\n[Unreleased]: https://github.com/eyre-rs/{{crate_name}}/compare/{{tag_name}}...HEAD"
exactly=1

[[example]]
name = "color-eyre-usage"
path = "examples/usage.rs"
1 change: 1 addition & 0 deletions color-eyre/LICENSE-APACHE
1 change: 1 addition & 0 deletions color-eyre/LICENSE-MIT
Loading
Loading