balena-os / wifi-connect

Easy WiFi setup for Linux devices from your mobile phone or laptop
Apache License 2.0
1.3k stars 365 forks source link

Update Rust crate log to 0.4 - autoclosed #584

Closed balena-renovate[bot] closed 4 months ago

balena-renovate[bot] commented 4 months ago

This PR contains the following updates:

Package Type Update Change
log dependencies minor 0.3 -> 0.4

Release Notes

rust-lang/log (log) ### [`v0.4.22`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0422---2024-06-27) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.21...0.4.22) ### [`v0.4.21`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0421---2024-02-27) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.20...0.4.21) ### [`v0.4.20`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0420---2023-07-11) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.19...0.4.20) - Remove rustversion dev-dependency by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/rust-lang/log/pull/568](https://togithub.com/rust-lang/log/pull/568) - Remove `local_inner_macros` usage by [@​EFanZh](https://togithub.com/EFanZh) in [https://github.com/rust-lang/log/pull/570](https://togithub.com/rust-lang/log/pull/570) ### [`v0.4.19`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0419---2023-06-10) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.18...0.4.19) - Use target_has_atomic instead of the old atomic_cas cfg by [@​GuillaumeGomez](https://togithub.com/GuillaumeGomez) in [https://github.com/rust-lang/log/pull/555](https://togithub.com/rust-lang/log/pull/555) - Put MSRV into Cargo.toml by [@​est31](https://togithub.com/est31) in [https://github.com/rust-lang/log/pull/557](https://togithub.com/rust-lang/log/pull/557) ### [`v0.4.18`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0418---2023-05-28) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.17...0.4.18) - fix markdown links (again) by [@​hellow554](https://togithub.com/hellow554) in [https://github.com/rust-lang/log/pull/513](https://togithub.com/rust-lang/log/pull/513) - add cargo doc to workflow by [@​hellow554](https://togithub.com/hellow554) in [https://github.com/rust-lang/log/pull/515](https://togithub.com/rust-lang/log/pull/515) - Apply Clippy lints by [@​hellow554](https://togithub.com/hellow554) in [https://github.com/rust-lang/log/pull/516](https://togithub.com/rust-lang/log/pull/516) - Replace ad-hoc eq_ignore_ascii_case with slice::eq_ignore_ascii_case by [@​glandium](https://togithub.com/glandium) in [https://github.com/rust-lang/log/pull/519](https://togithub.com/rust-lang/log/pull/519) - fix up windows targets by [@​KodrAus](https://togithub.com/KodrAus) in [https://github.com/rust-lang/log/pull/528](https://togithub.com/rust-lang/log/pull/528) - typo fix by [@​jiangying000](https://togithub.com/jiangying000) in [https://github.com/rust-lang/log/pull/529](https://togithub.com/rust-lang/log/pull/529) - Remove dependency on cfg_if by [@​EriKWDev](https://togithub.com/EriKWDev) in [https://github.com/rust-lang/log/pull/536](https://togithub.com/rust-lang/log/pull/536) - GitHub Workflows security hardening by [@​sashashura](https://togithub.com/sashashura) in [https://github.com/rust-lang/log/pull/538](https://togithub.com/rust-lang/log/pull/538) - Fix build status badge by [@​atouchet](https://togithub.com/atouchet) in [https://github.com/rust-lang/log/pull/539](https://togithub.com/rust-lang/log/pull/539) - Add call_logger to the documentation by [@​a1ecbr0wn](https://togithub.com/a1ecbr0wn) in [https://github.com/rust-lang/log/pull/547](https://togithub.com/rust-lang/log/pull/547) - Use stable internals for key-value API by [@​KodrAus](https://togithub.com/KodrAus) in [https://github.com/rust-lang/log/pull/550](https://togithub.com/rust-lang/log/pull/550) - Change wording of list of implementations by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/rust-lang/log/pull/553](https://togithub.com/rust-lang/log/pull/553) - Add std-logger to list of implementations by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/rust-lang/log/pull/554](https://togithub.com/rust-lang/log/pull/554) - Add `set_max_level_racy` and gate `set_max_level` by [@​djkoloski](https://togithub.com/djkoloski) in [https://github.com/rust-lang/log/pull/544](https://togithub.com/rust-lang/log/pull/544) - \[doc] src/lib.rs : prefix an unused variable with an underscore by [@​OccupyMars2025](https://togithub.com/OccupyMars2025) in [https://github.com/rust-lang/log/pull/561](https://togithub.com/rust-lang/log/pull/561) - \[doc] src/macros.rs : correct grammar errors of an example in lib documentation by [@​OccupyMars2025](https://togithub.com/OccupyMars2025) in [https://github.com/rust-lang/log/pull/562](https://togithub.com/rust-lang/log/pull/562) ### [`v0.4.17`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0417---2022-04-29) - Update `kv_unstable` internal dependencies. ### [`v0.4.16`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0416---2022-03-22) - Fix a conflict with unqualified `Option` use in macros. ### [`v0.4.15`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0415---2022-02-23) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.14...0.4.15) - Silence a warning about the deprecated `spin_loop_hint`. - Relax ordering in the atomic `set_max_level` call. - Add thumbv4t-none-eabi to targets that don't support atomics - Allow levels to be iterated over. - Implement `Log` on some common wrapper types. - Improvements to test coverage. - Improvements to documentation. - Add key-value support to the `log!` macros. - Tighten `kv_unstable` internal dependencies so they don't bump past their current alpha. - Add a simple visit API to `kv_unstable`. - Support `NonZero*` integers as values in structured logging - Support static strings as keys in structured logging ### [`v0.4.14`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0414---2021-01-27) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.13...0.4.14) - Remove the `__private_api_log_lit` special case. - Fixed incorrect combination of `kv_unstable` and `std` features causing compile failures. - Remove unstable `Value::to_*` conversions that were incorrectly using `as`. - Rename unstable `Value::to_error` to `Value::to_borrowed_error`. ### [`v0.4.13`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0413---2021-01-11) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.12...0.4.13) - This is the same as `0.4.11`, except with a `kv_unstable_std` feature added to aid migrating current dependents to `0.4.14` (which was originally going to be `0.4.13` until it was decided to create a patch from `0.4.11` to minimize disruption). ### [`v0.4.12`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0412---2020-12-24) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.11...0.4.12) ##### New - Support platforms without atomics by racing instead of failing to compile - Implement `Log` for `Box` - Update `cfg-if` to `1.0` - Internal reworks of the structured logging API. Removed the `Fill` API and added `source::as_map` and `source::as_list` to easily serialize a `Source` as either a map of `{key: value, ..}` or as a list of `[(key, value), ..]`. ##### Fixed - Fixed deserialization of `LevelFilter` to use their `u64` index variants ### [`v0.4.11`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0411---2020-07-09) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.10...0.4.11) ##### New - Support coercing structured values into concrete types. - Reference the `win_dbg_logger` in the readme. ##### Fixed - Updates a few deprecated items used internally. - Fixed issues in docs and expands sections. - Show the correct build badge in the readme. - Fix up a possible inference breakage with structured value errors. - Respect formatting flags in structured value formatting. ### [`v0.4.10`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0410---2019-12-16-yanked) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.9...0.4.10) ##### Fixed - Fixed the `log!` macros so they work in expression context (this regressed in `0.4.9`, which has been yanked). ### [`v0.4.9`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#049---2019-12-12-yanked) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.8...0.4.9) ##### Minimum Supported Rust Version This release bumps the minimum compiler version to `1.31.0`. This was mainly needed for `cfg-if`, but between `1.16.0` and `1.31.0` there are a lot of language and library improvements we now take advantage of. ##### New - Unstable support for capturing key-value pairs in a record using the `log!` macros ##### Improved - Better documentation for max level filters. - Internal updates to line up with bumped MSRV ### [`v0.4.8`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#048---2019-07-28) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.7...0.4.8) ##### New - Support attempting to get `Record` fields as static strings. ### [`v0.4.7`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#047---2019-07-06) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.6...0.4.7) ##### New - Support for embedded environments with thread-unsafe initialization. - Initial unstable support for capturing structured data under the `kv_unstable` feature gate. This new API doesn't affect existing users and may change in future patches (so those changes may not appear in the changelog until it stabilizes). ##### Improved - Docs for using `log` with the 2018 edition. - Error messages for macros missing arguments. ### [`v0.4.6`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#046---2018-10-27) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.5...0.4.6) ##### Improved - Support 2018-style macro import for the `log_enabled!` macro. ### [`v0.4.5`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#045---2018-09-03) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.4...0.4.5) ##### Improved - Make `log`'s internal helper macros less likely to conflict with user-defined macros. ### [`v0.4.4`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#044---2018-08-17) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.3...0.4.4) ##### Improved - Support 2018-style imports of the log macros. ### [`v0.4.3`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#043---2018-06-29) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.2...0.4.3) ##### Improved - More code generation improvements. ### [`v0.4.2`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0422---2024-06-27) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.1...0.4.2) ### [`v0.4.1`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0419---2023-06-10) [Compare Source](https://togithub.com/rust-lang/log/compare/0.4.0...0.4.1) - Use target_has_atomic instead of the old atomic_cas cfg by [@​GuillaumeGomez](https://togithub.com/GuillaumeGomez) in [https://github.com/rust-lang/log/pull/555](https://togithub.com/rust-lang/log/pull/555) - Put MSRV into Cargo.toml by [@​est31](https://togithub.com/est31) in [https://github.com/rust-lang/log/pull/557](https://togithub.com/rust-lang/log/pull/557) ### [`v0.4.0`](https://togithub.com/rust-lang/log/blob/HEAD/CHANGELOG.md#040---2017-12-24) [Compare Source](https://togithub.com/rust-lang/log/compare/0.3.9...0.4.0) The changes in this release include cleanup of some obscure functionality and a more robust public API designed to support bridges to other logging systems, and provide more flexibility to new features in the future. ##### Compatibility Vast portions of the Rust ecosystem use the 0.3.x release series of log, and we don't want to force the community to go through the pain of upgrading every crate to 0.4.x at the exact same time. Along with 0.4.0, we've published a new 0.3.9 release which acts as a "shim" over 0.4.0. This will allow crates using either version to coexist without losing messages from one side or the other. There is one caveat - a log message generated by a crate using 0.4.x but consumed by a logging implementation using 0.3.x will not have a file name or module path. Applications affected by this can upgrade their logging implementations to one using 0.4.x to avoid losing this information. The other direction does not lose any information, fortunately! **TL;DR** Libraries should feel comfortable upgrading to 0.4.0 without treating that as a breaking change. Applications may need to update their logging implementation (e.g. env-logger) to a newer version using log 0.4.x to avoid losing module and file information. ##### New - The crate is now `no_std` by default. - `Level` and `LevelFilter` now implement `Serialize` and `Deserialize` when the `serde` feature is enabled. - The `Record` and `Metadata` types can now be constructed by third-party code via a builder API. - The `logger` free function returns a reference to the logger implementation. This, along with the ability to construct `Record`s, makes it possible to bridge from another logging framework to this one without digging into the private internals of the crate. The standard `error!` `warn!`, etc, macros now exclusively use the public API of the crate rather than "secret" internal APIs. - `Log::flush` has been added to allow crates to tell the logging implementation to ensure that all "in flight" log events have been persisted. This can be used, for example, just before an application exits to ensure that asynchronous log sinks finish their work. ##### Removed - The `shutdown` and `shutdown_raw` functions have been removed. Supporting shutdown significantly complicated the implementation and imposed a performance cost on each logging operation. - The `log_panics` function and its associated `nightly` Cargo feature have been removed. Use the [log-panics](https://crates.io/crates/log-panics) instead. ##### Changed - The `Log` prefix has been removed from type names. For example, `LogLevelFilter` is now `LevelFilter`, and `LogRecord` is now `Record`. - The `MaxLogLevelFilter` object has been removed in favor of a `set_max_level` free function. - The `set_logger` free functions have been restructured. The logger is now directly passed to the functions rather than a closure which returns the logger. `set_logger` now takes a `&'static Log` and is usable in `no_std` contexts in place of the old `set_logger_raw`. `set_boxed_logger` is a convenience function which takes a `Box` but otherwise acts like `set_logger`. It requires the `std` feature. - The `file` and `module_path` values in `Record` no longer have the `'static` lifetime to support integration with other logging frameworks that don't provide a `'static` lifetime for the equivalent values. - The `file`, `line`, and `module_path` values in `Record` are now `Option`s to support integration with other logging frameworks that don't provide those values. ##### In the Future - We're looking to add support for *structured* logging - the inclusion of extra key-value pairs of information in a log event in addition to the normal string message. This should be able to be added in a backwards compatible manner to the 0.4.x series when the design is worked out.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Renovate Bot.

balena-renovate[bot] commented 4 months ago

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package log@0.3.9 --precise 0.4.22
    Updating crates.io index
error: failed to select a version for the requirement `log = "^0.3"`
candidate versions found which didn't match: 0.4.22
location searched: crates.io index
required by package `env_logger v0.4.3`
    ... which satisfies dependency `env_logger = "^0.4"` (locked to 0.4.3) of package `wifi-connect v4.11.53 (/tmp/renovate/repos/github/balena-os/wifi-connect)`
perhaps a crate was updated and forgotten to be re-vendored?