Skip to content

Commit

Permalink
[0.23.0]
Browse files Browse the repository at this point in the history
- Switch to edition 2021
- use latest patch of `time` version "0.3",
- bump minimal supported rust version to "1.57.0"
  • Loading branch information
emabee committed Aug 4, 2022
1 parent 3e01eb5 commit 0fca68d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_test.yml
Expand Up @@ -57,7 +57,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
rust: [ stable, 1.53.0 ]
rust: [ stable, 1.57.0 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.23.0] - 2022-08-04

Switch to edition 2021, use latest patch of `time` version "0.3",
bump minimal supported rust version to "1.57.0".

## [0.22.6] - 2022-08-03

Add interconversions between log::LevelFilter and flexi_logger::Duplicate
Expand Down
19 changes: 10 additions & 9 deletions Cargo.toml
@@ -1,20 +1,21 @@
[package]
name = "flexi_logger"
version = "0.22.6"
version = "0.23.0"
authors = ["emabee <meinolf.block@sap.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/emabee/flexi_logger"
documentation = "https://docs.rs/flexi_logger"
homepage = "https://crates.io/crates/flexi_logger"
categories = ["development-tools::debugging"]
description = """
An easy-to-configure and flexible logger that writes logs to stderr or stdout and/or to files. \
It allows custom logline formats, and it allows changing the log specification at runtime. \
It also allows defining additional log streams, e.g. for alert or security messages.\
"""
documentation = "https://docs.rs/flexi_logger"
edition = "2021"
homepage = "https://crates.io/crates/flexi_logger"
keywords = ["file", "logger"]
categories = ["development-tools::debugging"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/emabee/flexi_logger"
rust-version = "1.57.0"

[lib]
doctest = false
Expand Down Expand Up @@ -56,7 +57,7 @@ rustversion = "1.0"
serde = { version = "1.0", optional = true }
serde_derive = {version = "1.0", optional = true}
thiserror = "1.0"
time = { version= "=0.3.9", features = ["local-offset", "formatting", "macros", "parsing"] }
time = { version= "0.3", features = ["local-offset", "formatting", "macros", "parsing"] }
toml = { version = "0.5", optional = true }
tracing-subscriber = {version = "0.3", optional = true, features = ["env-filter"] }

Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -17,7 +17,7 @@ and you use the ```log``` macros to write log lines from your code):

```toml
[dependencies]
flexi_logger = "0.22"
flexi_logger = "0.23"
log = "0.4"
```

Expand Down Expand Up @@ -58,23 +58,23 @@ See

## Minimal rust version

The earliest supported rust version is currently "1.53.0".
The earliest supported rust version is currently "1.57.0".

## Crate Features

Make use of the non-default features by specifying them in your `Cargo.toml`, e.g.

```toml
[dependencies]
flexi_logger = { version = "0.22", features = ["async", "specfile", "compress"] }
flexi_logger = { version = "0.23", features = ["async", "specfile", "compress"] }
log = "0.4"
```

or, to get the smallest footprint (and no colors), switch off even the default features:

```toml
[dependencies]
flexi_logger = { version = "0.22", default_features = false }
flexi_logger = { version = "0.23", default_features = false }
log = "0.4"
```

Expand Down
6 changes: 3 additions & 3 deletions scripts/qualify.rs
Expand Up @@ -47,8 +47,8 @@ fn main() {

// Build in important variants
std::fs::remove_file("Cargo.lock").ok();
run_command!("cargo", "+1.53.0", "build", "--no-default-features");
run_command!("cargo", "+1.53.0", "build", "--all-features");
run_command!("cargo", "+1.57.0", "build", "--no-default-features");
run_command!("cargo", "+1.57.0", "build", "--all-features");

std::fs::remove_file("Cargo.lock").ok();
run_command!("cargo", "build");
Expand All @@ -65,7 +65,7 @@ fn main() {
run_command!("cargo", "+nightly", "clippy", "--all-targets", "--all-features", "--", "-D", "warnings");

// Run tests in important variants
run_command!("cargo", "+1.53.0", "test", "--all-features");
run_command!("cargo", "+1.57.0", "test", "--all-features");
run_command!("cargo", "test", "--release", "--all-features");
run_command!("cargo", "test", "--no-default-features");
run_command!("cargo", "test", "--release");
Expand Down

0 comments on commit 0fca68d

Please sign in to comment.