emabee / flexi_logger

A flexible logger for rust programs that can write to stderr, stdout, and/or to log files
Apache License 2.0
315 stars 55 forks source link

Missing `regex` and `log` dependencies - fail to compile #146

Closed XVilka closed 1 year ago

XVilka commented 1 year ago

After updating flexi_logger from 0.25 to 0.26 dependency in my project it immediately broke the build:

error[E0463]: can't find crate for `regex`
  --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flexi_logger-0.26.0/src/flexi_logger.rs:10:5
   |
10 | use regex::Regex;
   |     ^^^^^ can't find crate

error[E0463]: can't find crate for `log`
 --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flexi_logger-0.26.0/src/primary_writer/multi_writer.rs:7:5
  |
7 | use log::Record;
  |     ^^^ can't find crate

error[E0463]: can't find crate for `log`
  --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flexi_logger-0.26.0/src/primary_writer/std_writer.rs:15:5
   |
15 |     log::Record,
   |     ^^^ can't find crate

error[E0463]: can't find crate for `log`
 --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flexi_logger-0.26.0/src/primary_writer/test_writer.rs:3:5
  |
3 |     log::Record,
  |     ^^^ can't find crate

error[E0463]: can't find crate for `log`
  --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flexi_logger-0.26.0/src/primary_writer.rs:16:5
   |
16 | use log::Record;
   |     ^^^ can't find crate

error[E0463]: can't find crate for `log`
  --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flexi_logger-0.26.0/src/filter.rs:39:5
   |
39 | use log::Record;
   |     ^^^ can't find crate

error[E0463]: can't find crate for `log`
 --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flexi_logger-0.26.0/src/writers/log_writer.rs:2:5
  |
2 | use log::Record;
  |     ^^^ can't find crate

...
XVilka commented 1 year ago

Nevermind and sorry for the noise - works just fine after cargo clean