Cargo.toml 773 B

123456789101112131415161718192021222324252627282930
  1. [package]
  2. name = "simple_logger"
  3. version = "1.12.1"
  4. license = "MIT"
  5. authors = ["Sam Clements <[email protected]>"]
  6. description = "A logger that prints all messages with a readable output format"
  7. repository = "https://github.com/borntyping/rust-simple_logger"
  8. edition = "2018"
  9. [features]
  10. default = ["colored", "chrono"]
  11. colors = ["colored"]
  12. timestamps = ["chrono"]
  13. [dependencies]
  14. log = { version = "^0.4.5", features = ["std"] }
  15. chrono = { version = "0.4.6", optional = true }
  16. colored = { version = "^1.6", optional = true }
  17. [target.'cfg(windows)'.dependencies]
  18. atty = "0.2.13"
  19. winapi = { version = "0.3", features = ["handleapi", "winbase"]}
  20. [[example]]
  21. name = "colors"
  22. required-features = ["colored"]
  23. [[example]]
  24. name = "timestamps"
  25. required-features = ["chrono"]