Cargo.toml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [package]
  2. name = "simple_logger"
  3. version = "4.2.0"
  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 = ["colors", "timestamps"]
  11. colors = ["colored"]
  12. threads = []
  13. timestamps = ["time"]
  14. nightly = []
  15. stderr = []
  16. [dependencies]
  17. log = { version = "^0.4.17", features = ["std"] }
  18. time = { version = "^0.3.16", features = ["formatting", "local-offset", "macros"], optional = true }
  19. colored = { version = "2", optional = true }
  20. [target.'cfg(windows)'.dependencies]
  21. windows-sys = { version = "^0.42.0", features = ["Win32_System_Console", "Win32_Foundation"] }
  22. [[example]]
  23. name = "colors"
  24. required-features = ["colors"]
  25. [[example]]
  26. name = "custom_log_backend"
  27. [[example]]
  28. name = "threads"
  29. required-features = ["threads"]
  30. [[example]]
  31. name = "timestamps_local"
  32. required-features = ["timestamps"]
  33. [[example]]
  34. name = "timestamps_none"
  35. required-features = ["timestamps"]
  36. [[example]]
  37. name = "timestamps_utc"
  38. required-features = ["timestamps"]
  39. [[example]]
  40. name = "timestamps_utc_offset"
  41. required-features = ["timestamps"]
  42. [[example]]
  43. name = "timestamps_format"
  44. required-features = ["timestamps"]