Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: d-e-s-o/test-log
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.13
Choose a base ref
...
head repository: d-e-s-o/test-log
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.14
Choose a head ref
  • 17 commits
  • 12 files changed
  • 4 contributors

Commits on Nov 4, 2023

  1. Specify two more rustfmt options

    With this change we adjust our rustfmt configuration to include two more
    options pertaining the formatting of import/use statements.
    d-e-s-o committed Nov 4, 2023
    Configuration menu
    Copy the full SHA
    a5c137c View commit details
    Browse the repository at this point in the history
  2. Cache build artifacts in build-minimum CI job

    With this change we use the Swatinem/rust-cache GitHub action to cache
    Rust build artifacts for the build-minimum CI job, which currently takes
    the most time to complete. In so doing we more than halve overall CI
    wall clock time.
    d-e-s-o committed Nov 4, 2023
    Configuration menu
    Copy the full SHA
    b5d07af View commit details
    Browse the repository at this point in the history
  3. Refactor into try_test + syn::Result

    syn::Result allows us to return spanned errors which can be converted
    into nice compile errors when there is unexpected input.
    
    For example:
    ```
    error: Failed to parse value, expected a string!
      --> tests/mod.rs:94:33
       |
    94 | #[test_log(default_log_filter = 6)]
       |                                 ^
    ```
    DarrenTsung authored and d-e-s-o committed Nov 4, 2023
    Configuration menu
    Copy the full SHA
    e1d5d67 View commit details
    Browse the repository at this point in the history
  4. Add #[test_log(default_log_filter = "___")]

    Users can now specify a default_log_filter via #[test_log(default_log_filter = "foo")]
    which will be used when RUST_LOG is not specified.
    
    Please note that because env_logger / tracing is initialized globally,
    it is possible that this value will be ignored if they have already been
    initialized by a different test.
    
    Fixes: #25
    DarrenTsung authored and d-e-s-o committed Nov 4, 2023
    Configuration menu
    Copy the full SHA
    858ad05 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2023

  1. Configuration menu
    Copy the full SHA
    5b25c00 View commit details
    Browse the repository at this point in the history
  2. .github: replace actions-rs with dtolnay/rust-toolchain

    actions-rs is no longer maintained.
    tamird committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    e08b08e View commit details
    Browse the repository at this point in the history
  3. .github: remove duplicate logic

    f979a7d bumped MSRV to 1.56.
    tamird committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    acf589c View commit details
    Browse the repository at this point in the history
  4. .github: add rust cache action

    This should reduce CI time.
    tamird committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    64e01b9 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Merge pull request #38 from tamird/actions

    .github: replace actions-rs with dtolnay/rust-toolchain, add caching
    d-e-s-o authored Nov 22, 2023
    Configuration menu
    Copy the full SHA
    e30969a View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2023

  1. Automatically include dependencies

    - Move macros to a new test-log-macros crate.
    - Export env_logger and tracing_subscriber from the test-log crate.
    - Macros emit test_log::{env_logger,tracing_subscriber} references.
    
    Removes the need for users to explicitly depend on additional crates.
    
    Fixes #36.
    tamird authored and d-e-s-o committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    c94977b View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2023

  1. Add CHANGELOG entry for test-log-macros crate introduction

    Add a CHANGELOG entry for the recent introduction of the test-log-macros
    crate.
    d-e-s-o committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    c94e830 View commit details
    Browse the repository at this point in the history
  2. Put 'default_log_filter' attribute behind 'unstable' feature

    The 'default_log_filter', while useful, is arguably a bit of a kludge
    given that it is inherently racy with respect to other tests
    initializing the corresponding log/tracing infrastructure beforehand.
    What we would really want is to make it a global attribute, but that is
    not currently possible on stable Rust.
    Put this attribute behind a newly introduce feature, unstable, so that
    we have more flexibility for changing/removing it in the future, without
    being required to break semantic versioning guarantees.
    d-e-s-o committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    cbcdb8c View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. Update minimum supported Rust version to 1.61.0

    This change updates the minimum version of Rust that we support to
    1.61.0. We need this version because it is a requirement for env_logger
    version 0.10, to which we would like to update subsequently. In the
    process we switch the crate over to using Rust edition 2021.
    d-e-s-o committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    0add4a0 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2024

  1. Bump env_logger dependency to 0.10

    This change bumps the env_logger dependency we use to version 0.10.
    d-e-s-o committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    f092c4e View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2024

  1. Drop actions-rs/toolchain usage from publish workflow

    Similar to what we did for the test GitHub Action workflow, replace the
    deprecated actions-rs/toolchain with dtolnay/rust-toolchain.
    d-e-s-o committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    936713a View commit details
    Browse the repository at this point in the history
  2. Update publish workflow for test-log-macros

    This change updates the publish workflow to accommodate for the recent
    introduction of the test-log-macros crate to the workspace. Said crate
    needs to be published before test-log itself, because test-log depends
    on it. In terms of crate versioning we unconditionally release both
    crates in lockstep for the sake of simplicity.
    d-e-s-o committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    b4bd011 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. Bump version to 0.2.14

    This change bumps the version of the crate to 0.2.14. The following
    notable changes have been made since 0.2.13:
    - Factored out test-log-macros crate to relieve users from having to
      care about tracing/logging dependencies themselves
    - Introduced default_log_filter attribute for setting the default log
      filter on a per-test basis behind new unstable feature
    - Improved compile error output on wrong usage
    - Bumped minimum supported Rust version to 1.61
    - Bumped env_logger dependency to 0.10
    d-e-s-o committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    8b48901 View commit details
    Browse the repository at this point in the history
Loading