diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dcd494a..8e21fb62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 0.20.0 **Highlights**: diff --git a/sentry-actix/Cargo.toml b/sentry-actix/Cargo.toml index f5ec9ba3..28204750 100644 --- a/sentry-actix/Cargo.toml +++ b/sentry-actix/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-actix" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -22,8 +22,8 @@ with_sentry_default = [ ] [dependencies] -sentry = { version = "0.19.1", path = "../sentry", default-features = false } -sentry-failure = { version = "0.19.1", path = "../sentry-failure" } +sentry = { version = "0.20.0", path = "../sentry", default-features = false } +sentry-failure = { version = "0.20.0", path = "../sentry-failure" } actix-web = { version = "0.7", default-features = false } failure = "0.1.3" fragile = "0.3.0" diff --git a/sentry-anyhow/Cargo.toml b/sentry-anyhow/Cargo.toml index 09af6cd0..8a50fd59 100644 --- a/sentry-anyhow/Cargo.toml +++ b/sentry-anyhow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-anyhow" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,5 +15,5 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } anyhow = "1.0.30" diff --git a/sentry-backtrace/Cargo.toml b/sentry-backtrace/Cargo.toml index ca1873af..a7a99104 100644 --- a/sentry-backtrace/Cargo.toml +++ b/sentry-backtrace/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-backtrace" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,7 +15,7 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } lazy_static = "1.4.0" backtrace = "0.3.44" regex = "1.3.4" diff --git a/sentry-contexts/Cargo.toml b/sentry-contexts/Cargo.toml index a322f939..73b35262 100644 --- a/sentry-contexts/Cargo.toml +++ b/sentry-contexts/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-contexts" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -16,7 +16,7 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } libc = "0.2.66" hostname = "0.3.0" regex = "1.3.4" @@ -29,4 +29,4 @@ uname = "0.1.1" rustc_version = "0.2.3" [dev-dependencies] -sentry = { version = "0.19.1", path = "../sentry", default-features = false, features = ["test"] } +sentry = { version = "0.20.0", path = "../sentry", default-features = false, features = ["test"] } diff --git a/sentry-core/Cargo.toml b/sentry-core/Cargo.toml index 33f92a06..21188aa0 100644 --- a/sentry-core/Cargo.toml +++ b/sentry-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-core" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -23,7 +23,7 @@ debug-logs = ["log_"] test = ["client"] [dependencies] -sentry-types = { version = "0.19.1", path = "../sentry-types" } +sentry-types = { version = "0.20.0", path = "../sentry-types" } serde = { version = "1.0.104", features = ["derive"] } lazy_static = "1.4.0" im = { version = "15.0.0", optional = true } @@ -35,7 +35,7 @@ log_ = { package = "log", version = "0.4.8", optional = true, features = ["std"] # Because we re-export all the public API in `sentry`, we actually run all the # doctests using the `sentry` crate. This also takes care of the doctest # limitation documented in https://github.com/rust-lang/rust/issues/45599. -sentry = { version = "0.19.1", path = "../sentry", default-features = false, features = ["test"] } +sentry = { version = "0.20.0", path = "../sentry", default-features = false, features = ["test"] } thiserror = "1.0.15" anyhow = "1.0.30" failure = "0.1.8" diff --git a/sentry-core/README.md b/sentry-core/README.md index 248f00cf..487f329c 100644 --- a/sentry-core/README.md +++ b/sentry-core/README.md @@ -45,12 +45,13 @@ functionality. [`sentry`]: https://crates.io/crates/sentry [Unified API]: https://develop.sentry.dev/sdk/unified-api/ -[`Client`]: https://docs.rs/sentry-core/0.19.0/sentry_core/struct.Client.html -[`Hub`]: https://docs.rs/sentry-core/0.19.0/sentry_core/struct.Hub.html -[`Scope`]: https://docs.rs/sentry-core/0.19.0/sentry_core/struct.Scope.html -[`Integration`]: https://docs.rs/sentry-core/0.19.0/sentry_core/trait.Integration.html -[`Transport`]: https://docs.rs/sentry-core/0.19.0/sentry_core/trait.Transport.html -[`TransportFactory`]: https://docs.rs/sentry-core/0.19.0/sentry_core/trait.TransportFactory.html +[`Client`]: https://docs.rs/sentry-core/0.20.0/sentry_core/struct.Client.html +[`Hub`]: https://docs.rs/sentry-core/0.20.0/sentry_core/struct.Hub.html +[`Scope`]: https://docs.rs/sentry-core/0.20.0/sentry_core/struct.Scope.html +[`Integration`]: https://docs.rs/sentry-core/0.20.0/sentry_core/trait.Integration.html +[`Transport`]: https://docs.rs/sentry-core/0.20.0/sentry_core/trait.Transport.html +[`TransportFactory`]: https://docs.rs/sentry-core/0.20.0/sentry_core/trait.TransportFactory.html +[`test`]: https://docs.rs/sentry-core/0.20.0/sentry_core/test/index.html ## Resources diff --git a/sentry-debug-images/Cargo.toml b/sentry-debug-images/Cargo.toml index ebeee843..5827e9e8 100644 --- a/sentry-debug-images/Cargo.toml +++ b/sentry-debug-images/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-debug-images" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,6 +15,6 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } lazy_static = "1.4.0" findshlibs = "0.7.0" diff --git a/sentry-error-chain/Cargo.toml b/sentry-error-chain/Cargo.toml index ec03c17e..626785be 100644 --- a/sentry-error-chain/Cargo.toml +++ b/sentry-error-chain/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-error-chain" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,9 +15,9 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } -sentry-backtrace = { version = "0.19.1", path = "../sentry-backtrace" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } +sentry-backtrace = { version = "0.20.0", path = "../sentry-backtrace" } error-chain = "0.12.1" [dev-dependencies] -sentry = { version = "0.19.1", path = "../sentry", default-features = false, features = ["test"] } +sentry = { version = "0.20.0", path = "../sentry", default-features = false, features = ["test"] } diff --git a/sentry-failure/Cargo.toml b/sentry-failure/Cargo.toml index dc0481c2..37e8eedb 100644 --- a/sentry-failure/Cargo.toml +++ b/sentry-failure/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-failure" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,10 +15,10 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } -sentry-backtrace = { version = "0.19.1", path = "../sentry-backtrace" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } +sentry-backtrace = { version = "0.20.0", path = "../sentry-backtrace" } failure = "0.1.6" [dev-dependencies] -sentry = { version = "0.19.1", path = "../sentry", default-features = false, features = ["test"] } -sentry-panic = { version = "0.19.1", path = "../sentry-panic" } +sentry = { version = "0.20.0", path = "../sentry", default-features = false, features = ["test"] } +sentry-panic = { version = "0.20.0", path = "../sentry-panic" } diff --git a/sentry-log/Cargo.toml b/sentry-log/Cargo.toml index d8831496..7ef569bf 100644 --- a/sentry-log/Cargo.toml +++ b/sentry-log/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-log" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,12 +15,12 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } -sentry-backtrace = { version = "0.19.1", path = "../sentry-backtrace" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } +sentry-backtrace = { version = "0.20.0", path = "../sentry-backtrace" } log = { version = "0.4.8", features = ["std"] } env_logger = { version = "0.7.1", optional = true } [dev-dependencies] -sentry = { version = "0.19.1", path = "../sentry", default-features = false, features = ["test"] } +sentry = { version = "0.20.0", path = "../sentry", default-features = false, features = ["test"] } pretty_env_logger = "0.4.0" env_logger = "0.7.1" diff --git a/sentry-log/README.md b/sentry-log/README.md index ac8cabe5..c71354fd 100644 --- a/sentry-log/README.md +++ b/sentry-log/README.md @@ -29,7 +29,7 @@ let mut log_builder = pretty_env_logger::formatted_builder(); log_builder.parse_filters("info"); let log_integration = sentry_log::LogIntegration::default().with_env_logger_dest(Some(log_builder.build())); -let _sentry = sentry::init(sentry::ClientOptions::default().add_integration(log_integration)); +let _setry = sentry::init(sentry::ClientOptions::default().add_integration(log_integration)); log::error!("Generates an event"); ``` diff --git a/sentry-panic/Cargo.toml b/sentry-panic/Cargo.toml index 003273e7..d911e4c5 100644 --- a/sentry-panic/Cargo.toml +++ b/sentry-panic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-panic" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,8 +15,8 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } -sentry-backtrace = { version = "0.19.1", path = "../sentry-backtrace" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } +sentry-backtrace = { version = "0.20.0", path = "../sentry-backtrace" } [dev-dependencies] -sentry = { version = "0.19.1", path = "../sentry", default-features = false, features = ["test"] } +sentry = { version = "0.20.0", path = "../sentry", default-features = false, features = ["test"] } diff --git a/sentry-slog/Cargo.toml b/sentry-slog/Cargo.toml index 9b76b95f..f69c621e 100644 --- a/sentry-slog/Cargo.toml +++ b/sentry-slog/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-slog" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -15,8 +15,8 @@ edition = "2018" all-features = true [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core" } +sentry-core = { version = "0.20.0", path = "../sentry-core" } slog = "2.5.2" [dev-dependencies] -sentry = { version = "0.19.1", path = "../sentry", default-features = false, features = ["test"] } +sentry = { version = "0.20.0", path = "../sentry", default-features = false, features = ["test"] } diff --git a/sentry-slog/README.md b/sentry-slog/README.md index fffb553a..f99de2f5 100644 --- a/sentry-slog/README.md +++ b/sentry-slog/README.md @@ -62,8 +62,8 @@ let integration = SlogIntegration::default() Please not that the `mapper` can override any classification from the previous `filter`. -[`SlogIntegration`]: https://docs.rs/sentry-slog/0.19.0/sentry_slog/struct.SlogIntegration.html -[`SentryDrain`]: https://docs.rs/sentry-slog/0.19.0/sentry_slog/struct.SentryDrain.html +[`SlogIntegration`]: https://docs.rs/sentry-slog/0.20.0/sentry_slog/struct.SlogIntegration.html +[`SentryDrain`]: https://docs.rs/sentry-slog/0.20.0/sentry_slog/struct.SentryDrain.html ## Resources diff --git a/sentry-types/Cargo.toml b/sentry-types/Cargo.toml index 5b68a857..51d7d0bc 100644 --- a/sentry-types/Cargo.toml +++ b/sentry-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry-types" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" diff --git a/sentry/Cargo.toml b/sentry/Cargo.toml index e445618b..21f5af5b 100644 --- a/sentry/Cargo.toml +++ b/sentry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sentry" -version = "0.19.1" +version = "0.20.0" authors = ["Sentry "] license = "Apache-2.0" readme = "README.md" @@ -61,16 +61,16 @@ with_native_tls = ["native-tls"] with_rustls = ["rustls"] [dependencies] -sentry-core = { version = "0.19.1", path = "../sentry-core", features = ["client"] } -sentry-anyhow = { version = "0.19.1", path = "../sentry-anyhow", optional = true } -sentry-backtrace = { version = "0.19.1", path = "../sentry-backtrace", optional = true } -sentry-contexts = { version = "0.19.1", path = "../sentry-contexts", optional = true } -sentry-debug-images = { version = "0.19.1", path = "../sentry-debug-images", optional = true } -sentry-error-chain = { version = "0.19.1", path = "../sentry-error-chain", optional = true } -sentry-failure = { version = "0.19.1", path = "../sentry-failure", optional = true } -sentry-log = { version = "0.19.1", path = "../sentry-log", optional = true } -sentry-panic = { version = "0.19.1", path = "../sentry-panic", optional = true } -sentry-slog = { version = "0.19.1", path = "../sentry-slog", optional = true } +sentry-core = { version = "0.20.0", path = "../sentry-core", features = ["client"] } +sentry-anyhow = { version = "0.20.0", path = "../sentry-anyhow", optional = true } +sentry-backtrace = { version = "0.20.0", path = "../sentry-backtrace", optional = true } +sentry-contexts = { version = "0.20.0", path = "../sentry-contexts", optional = true } +sentry-debug-images = { version = "0.20.0", path = "../sentry-debug-images", optional = true } +sentry-error-chain = { version = "0.20.0", path = "../sentry-error-chain", optional = true } +sentry-failure = { version = "0.20.0", path = "../sentry-failure", optional = true } +sentry-log = { version = "0.20.0", path = "../sentry-log", optional = true } +sentry-panic = { version = "0.20.0", path = "../sentry-panic", optional = true } +sentry-slog = { version = "0.20.0", path = "../sentry-slog", optional = true } log_ = { package = "log", version = "0.4.8", optional = true, features = ["std"] } reqwest_ = { package = "reqwest", version = "0.10.1", optional = true, features = ["blocking", "json"], default-features = false } curl_ = { package = "curl", version = "0.4.25", optional = true } @@ -81,9 +81,9 @@ httpdate = { version = "0.3.2", optional = true } serde_json = { version = "1.0.48", optional = true } [dev-dependencies] -sentry-anyhow = { version = "0.19.1", path = "../sentry-anyhow" } -sentry-error-chain = { version = "0.19.1", path = "../sentry-error-chain" } -sentry-log = { version = "0.19.1", path = "../sentry-log", features = ["env_logger"] } +sentry-anyhow = { version = "0.20.0", path = "../sentry-anyhow" } +sentry-error-chain = { version = "0.20.0", path = "../sentry-error-chain" } +sentry-log = { version = "0.20.0", path = "../sentry-log", features = ["env_logger"] } log_ = { package = "log", version = "0.4.8", features = ["std"] } failure_derive = "0.1.6" actix-web = { version = "0.7.19", default-features = false } diff --git a/sentry/README.md b/sentry/README.md index e5f25a0a..34d4a454 100644 --- a/sentry/README.md +++ b/sentry/README.md @@ -28,15 +28,15 @@ sentry::capture_message("Hello World!", sentry::Level::Info); // seconds to send remaining events to the service. ``` -[`sentry::init`]: https://docs.rs/sentry/0.19.0/sentry/fn.init.html -[`Hub`]: https://docs.rs/sentry/0.19.0/sentry/struct.Hub.html +[`sentry::init`]: https://docs.rs/sentry/0.20.0/sentry/fn.init.html +[`Hub`]: https://docs.rs/sentry/0.20.0/sentry/struct.Hub.html ## Integrations What makes this crate useful are the various integrations that exist. Some of them are enabled by default, some uncommon ones or for deprecated parts of the ecosystem a feature flag needs to be enabled. For the available integrations and how to use them see -[integrations](https://docs.rs/sentry/0.19.0/sentry/integrations/index.html) and [apply_defaults](https://docs.rs/sentry/0.19.0/sentry/fn.apply_defaults.html). +[integrations](https://docs.rs/sentry/0.20.0/sentry/integrations/index.html) and [apply_defaults](https://docs.rs/sentry/0.20.0/sentry/fn.apply_defaults.html). ## Minimal API @@ -44,8 +44,8 @@ This crate comes fully featured. If the goal is to instrument libraries for usag with sentry, or to extend sentry with a custom [`Integration`] or a [`Transport`], one should use the [`sentry-core`] crate instead. -[`Integration`]: https://docs.rs/sentry/0.19.0/sentry/trait.Integration.html -[`Transport`]: https://docs.rs/sentry/0.19.0/sentry/trait.Transport.html +[`Integration`]: https://docs.rs/sentry/0.20.0/sentry/trait.Integration.html +[`Transport`]: https://docs.rs/sentry/0.20.0/sentry/trait.Transport.html [`sentry-core`]: https://crates.io/crates/sentry-core ## Features @@ -67,6 +67,7 @@ Additional features: * `debug-images`: Attaches a list of loaded libraries to events (currently only supported on unix). * `error-chain`: Enables support for the `error-chain` crate. * `log`: Enables support for the `log` crate. +* `env_logger`: Enables support for the `log` crate with additional `env_logger` support. * `slog`: Enables support for the `slog` crate. * `test`: Enables testing support. * `debug-logs`: Uses the `log` crate for internal logging. @@ -76,6 +77,8 @@ Additional features: * `native-tls`: Uses the `native-tls` crate, which is currently the default. This only has an effect on the `reqwest` transport. * `rustls`: Enables the `rustls` support of the `reqwest` transport. + Please note that `native-tls` is a default feature, and one needs to use + `default-features = false` to completely disable building `native-tls` dependencies. ## Resources