Cargo.toml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # SPDX-FileCopyrightText: 2024 Christina Sørensen
  2. # SPDX-License-Identifier: EUPL-1.2
  3. [package]
  4. name = "eza"
  5. description = "A modern replacement for ls"
  6. authors = ["Christina Sørensen <christina@cafkafk.com>"]
  7. categories = ["command-line-utilities"]
  8. edition = "2021"
  9. rust-version = "1.82.0"
  10. exclude = [
  11. "/docs/",
  12. "/devtools/",
  13. "/snap/",
  14. "/tests/",
  15. "/.config/",
  16. "/.github/",
  17. "/deb.asc",
  18. "/deny.toml",
  19. "/flake.*",
  20. "/justfile",
  21. "/powertest.yaml",
  22. "/rust-toolchain.toml",
  23. "/.envrc",
  24. "/.gitignore",
  25. "/.git-blame-ignore-revs",
  26. "/.pre-commit-config-non-nix.yaml",
  27. ]
  28. readme = "README.md"
  29. homepage = "https://github.com/eza-community/eza"
  30. license = "EUPL-1.2"
  31. repository = "https://github.com/eza-community/eza"
  32. version = "0.23.3"
  33. [package.metadata.deb]
  34. license-file = ["LICENSE.txt", "4"]
  35. depends = "$auto"
  36. extended-description = """
  37. eza is a modern, maintained replacement for ls
  38. """
  39. section = "utils"
  40. priority = "optional"
  41. assets = [
  42. [
  43. "target/release/eza",
  44. "/usr/bin/eza",
  45. "0755",
  46. ],
  47. [
  48. "target/release/../man/eza.1",
  49. "/usr/share/man/man1/eza.1",
  50. "0644",
  51. ],
  52. [
  53. "target/release/../man/eza_colors.5",
  54. "/usr/share/man/man5/eza_colors.5",
  55. "0644",
  56. ],
  57. [
  58. "target/release/../man/eza_colors-explanation.5",
  59. "/usr/share/man/man5/eza_colors-explanation.5",
  60. "0644",
  61. ],
  62. [
  63. "completions/bash/eza",
  64. "/usr/share/bash-completion/completions/eza",
  65. "0644",
  66. ],
  67. [
  68. "completions/zsh/_eza",
  69. "/usr/share/zsh/site-functions/_eza",
  70. "0644",
  71. ],
  72. [
  73. "completions/fish/eza.fish",
  74. "/usr/share/fish/vendor_completions.d/eza.fish",
  75. "0644",
  76. ],
  77. ]
  78. [[bin]]
  79. name = "eza"
  80. [dependencies]
  81. rayon = "1.10.0"
  82. chrono = { version = "0.4.40", default-features = false, features = ["clock"] }
  83. nu-ansi-term = { version = "0.50.1", features = [
  84. "serde",
  85. "derive_serde_style",
  86. ] }
  87. glob = "0.3"
  88. libc = "0.2"
  89. locale = "0.2"
  90. log = "0.4"
  91. natord-plus-plus = "2.0"
  92. path-clean = "1.0.1"
  93. number_prefix = "0.4"
  94. palette = { version = "0.7.6", default-features = false, features = ["std"] }
  95. percent-encoding = "2.3.1"
  96. phf = { version = "0.12.1", features = ["macros"] }
  97. plist = { version = "1.7.0", default-features = false }
  98. uutils_term_grid = "0.7.0"
  99. terminal_size = "0.4.2"
  100. timeago = { version = "0.4.2", default-features = false }
  101. unicode-width = "0.2"
  102. ansi-width = "0.1.0"
  103. serde = { version = "1.0.219", features = ["derive"] }
  104. dirs = "6.0.0"
  105. serde_norway = "0.9"
  106. backtrace = "0.3"
  107. [dependencies.git2]
  108. version = "0.20"
  109. optional = true
  110. default-features = false
  111. [target.'cfg(target_os = "linux")'.dependencies]
  112. proc-mounts = "0.3"
  113. [target.'cfg(unix)'.dependencies]
  114. uzers = "0.12.1"
  115. [target.'cfg(target_os = "windows")'.dependencies]
  116. windows-sys = { version = "0.60.2", features = [
  117. "Win32_System_Console",
  118. "Win32_Foundation",
  119. ] }
  120. [build-dependencies]
  121. chrono = { version = "0.4.40", default-features = false, features = ["clock"] }
  122. [dev-dependencies]
  123. criterion = { version = "0.5.1", features = ["html_reports"] }
  124. trycmd = "0.15"
  125. [features]
  126. default = ["git"]
  127. git = ["git2"]
  128. vendored-openssl = ["git2/vendored-openssl"]
  129. vendored-libgit2 = ["git2/vendored-libgit2"]
  130. # Should only be used inside of flake.nix
  131. nix = []
  132. # Should only be used inside of flake.nix locally (not on CI)
  133. nix-local = []
  134. # Should only be used inside of flake.nix
  135. # Shouldn't ever be used in CI (slow!)
  136. powertest = []
  137. nix-generated = []
  138. # use LTO for smaller binaries (that take longer to build)
  139. [profile.release]
  140. lto = true
  141. strip = true
  142. opt-level = 3
  143. codegen-units = 1
  144. panic = 'abort'
  145. [[bench]]
  146. name = "my_benchmark"
  147. harness = false