Skip to content

Commit e710f19

Browse files
authored
Merge branch 'eyre-rs:master' into master
2 parents 4364ed9 + 7706273 commit e710f19

File tree

7 files changed

+22
-23
lines changed

7 files changed

+22
-23
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/target
22
**/*.rs.bk
3-
tags

Cargo.lock

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

color-eyre/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ track-caller = []
1919
no-export-owo-colors = []
2020

2121
[dependencies]
22-
eyre = "0.6.1"
22+
eyre = { version = "1.0.0", path = "../eyre" }
2323
tracing-error = { version = "0.2.0", optional = true }
2424
backtrace = { version = "0.3.59" }
2525
indenter = { workspace = true }

color-eyre/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ color-eyre = { version = "0.6", default-features = false }
5757
color-eyre defaults to capturing span traces. This is because `SpanTrace`
5858
capture is significantly cheaper than `Backtrace` capture. However, like
5959
backtraces, span traces are most useful for debugging applications, and it's
60-
not uncommon to want to disable span trace capture by default to keep noise out
61-
developer.
60+
not uncommon to want to disable span trace capture by default to keep noise out.
6261

6362
To disable span trace capture you must explicitly set one of the env variables
6463
that regulate `SpanTrace` capture to `"0"`:

color-spantrace/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ enum Toolchain {
2020

2121
impl Toolchain {
2222
fn set_feature(self) {
23+
println!("cargo:rustc-check-cfg=cfg(nightly)");
24+
println!("cargo:rustc-check-cfg=cfg(beta)");
25+
println!("cargo:rustc-check-cfg=cfg(stable)");
2326
match self {
2427
Toolchain::Nightly => println!("cargo:rustc-cfg=nightly"),
2528
Toolchain::Beta => println!("cargo:rustc-cfg=beta"),

eyre/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ use std::{
55
};
66

77
fn main() {
8+
println!("cargo:rustc-check-cfg=cfg(nightly)");
9+
println!("cargo:rustc-check-cfg=cfg(track_caller)");
10+
println!("cargo:rustc-check-cfg=cfg(generic_member_access)");
11+
println!("cargo:rustc-check-cfg=cfg(eyre_no_fmt_args_capture)");
12+
println!("cargo:rustc-check-cfg=cfg(backtrace)");
13+
println!("cargo:rustc-check-cfg=cfg(eyre_no_fmt_arguments_as_str)");
14+
println!("cargo:rustc-check-cfg=cfg(doc_cfg)");
815
let ac = autocfg::new();
916

1017
// https://github.com/rust-lang/rust/issues/99301 [nightly]

eyre/src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@
3939
//! to avoid using `eyre::Report` as your public error type.
4040
//!
4141
//! - You export an undocumented error interface that is otherwise still
42-
//! accessible via downcast, making it hard for users to react to specific
43-
//! errors while not preventing them from depending on details you didn't mean
44-
//! to make part of your public API.
42+
//! accessible via downcast, making it hard for users to react to specific
43+
//! errors while not preventing them from depending on details you didn't mean
44+
//! to make part of your public API.
4545
//! - This in turn makes the error types of all libraries you use a part of
46-
//! your public API as well, and makes changing any of those libraries into
47-
//! undetectable runtime breakage.
46+
//! your public API as well, and makes changing any of those libraries into
47+
//! undetectable runtime breakage.
4848
//! - If many of your errors are constructed from strings, you encourage your
49-
//! users to use string comparison for reacting to specific errors, which is
50-
//! brittle and turns updating error messages into potentially undetectable
51-
//! runtime breakage.
49+
//! users to use string comparison for reacting to specific errors, which is
50+
//! brittle and turns updating error messages into potentially undetectable
51+
//! runtime breakage.
5252
//!
5353
//! ## Details
5454
//!

0 commit comments

Comments
 (0)