Skip to content

Commit

Permalink
Revert "Revert "Remove build.rs file""
Browse files Browse the repository at this point in the history
This reverts commit 4e689bb.
  • Loading branch information
KodrAus committed May 28, 2023
1 parent 5434ebe commit 86d766d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
27 changes: 26 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,6 +2,30 @@

## [Unreleased]

## [0.4.18] - 2023-04-11

### ⚠️ MSRV Bump: 1.31.0 to 1.60.0

This release bumps `log`'s MSRV from `1.31.0` to `1.60.0`. This let us remove our `build.rs` file in favor of `#[cfg]`s added to Rust itself.

The `log` crate can't reasonably bump its MSRV in breaking minor version bumps because it needs to shim newer versions through older ones to make sure calls to `log!`
macros on the older version won't be lost. If we bumped the minor version we'd still need to compile that newer version in the older one to make this shimming work.

### What's Changed

* fix markdown links (again) by @hellow554 in https://github.com/rust-lang/log/pull/513
* add cargo doc to workflow by @hellow554 in https://github.com/rust-lang/log/pull/515
* Apply Clippy lints by @hellow554 in https://github.com/rust-lang/log/pull/516
* Replace ad-hoc eq_ignore_ascii_case with slice::eq_ignore_ascii_case by @glandium in https://github.com/rust-lang/log/pull/519
* fix up windows targets by @KodrAus in https://github.com/rust-lang/log/pull/528
* typo fix by @jiangying000 in https://github.com/rust-lang/log/pull/529
* Remove dependency on cfg_if by @EriKWDev in https://github.com/rust-lang/log/pull/536
* GitHub Workflows security hardening by @sashashura in https://github.com/rust-lang/log/pull/538
* Fix build status badge by @atouchet in https://github.com/rust-lang/log/pull/539
* Add call_logger to the documentation by @a1ecbr0wn in https://github.com/rust-lang/log/pull/547
* Remove build.rs file by @GuillaumeGomez in https://github.com/rust-lang/log/pull/543
* Use stable internals for key-value API by @KodrAus in https://github.com/rust-lang/log/pull/550

## [0.4.17] - 2022-04-29

* Update `kv_unstable` internal dependencies.
Expand Down Expand Up @@ -219,7 +243,8 @@ version using log 0.4.x to avoid losing module and file information.

Look at the [release tags] for information about older releases.

[Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.17...HEAD
[Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.18...HEAD
[0.4.18]: https://github.com/rust-lang-nursery/log/compare/0.4.17...0.4.18
[0.4.17]: https://github.com/rust-lang-nursery/log/compare/0.4.16...0.4.17
[0.4.16]: https://github.com/rust-lang-nursery/log/compare/0.4.15...0.4.16
[0.4.15]: https://github.com/rust-lang-nursery/log/compare/0.4.13...0.4.15
Expand Down
7 changes: 4 additions & 3 deletions Cargo.toml
@@ -1,7 +1,7 @@
[package]

name = "log"
version = "0.4.17" # remember to update html_root_url
version = "0.4.18" # remember to update html_root_url
authors = ["The Rust Project Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -13,6 +13,7 @@ A lightweight logging facade for Rust
categories = ["development-tools::debugging"]
keywords = ["logging"]
exclude = ["rfcs/**/*"]
rust-version = "1.60.0"

[package.metadata.docs.rs]
features = ["std", "serde", "kv_unstable_std", "kv_unstable_sval", "kv_unstable_serde"]
Expand Down Expand Up @@ -55,12 +56,12 @@ kv_unstable_serde = ["kv_unstable_std", "value-bag/serde", "serde"]
serde = { version = "1.0", optional = true, default-features = false }
sval = { version = "2.1", optional = true, default-features = false }
sval_ref = { version = "2.1", optional = true, default-features = false }
value-bag = { version = "1.1", optional = true, default-features = false }
value-bag = { version = "1.4", optional = true, default-features = false }

[dev-dependencies]
rustversion = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_test = "1.0"
sval = { version = "2.1" }
sval_derive = { version = "2.1" }
value-bag = { version = "1.1", features = ["test"] }
value-bag = { version = "1.4", features = ["test"] }
3 changes: 2 additions & 1 deletion src/lib.rs
Expand Up @@ -317,7 +317,7 @@
#![doc(
html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
html_root_url = "https://docs.rs/log/0.4.17"
html_root_url = "https://docs.rs/log/0.4.18"
)]
#![warn(missing_docs)]
#![deny(missing_debug_implementations, unconditional_recursion)]
Expand Down Expand Up @@ -1217,6 +1217,7 @@ where
///
/// Note that `Trace` is the maximum level, because it provides the maximum amount of detail in the emitted logs.
#[inline]
#[cfg(target_has_atomic = "ptr")]
pub fn set_max_level(level: LevelFilter) {
MAX_LOG_LEVEL_FILTER.store(level as usize, Ordering::Relaxed);
}
Expand Down

0 comments on commit 86d766d

Please sign in to comment.