You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
3.5 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. [package]
  2. name = "meli"
  3. version = "0.6.1"
  4. authors = ["Manos Pitsidianakis <el13635@mail.ntua.gr>"]
  5. edition = "2018"
  6. license = "GPL-3.0-or-later"
  7. readme = "README.md"
  8. description = "terminal mail client"
  9. homepage = "https://meli.delivery"
  10. repository = "https://git.meli.delivery/meli/meli.git"
  11. keywords = ["mail", "mua", "maildir", "terminal", "imap"]
  12. categories = ["command-line-utilities", "email"]
  13. default-run = "meli"
  14. [[bin]]
  15. name = "meli"
  16. path = "src/bin.rs"
  17. #[[bin]]
  18. #name = "managesieve-meli"
  19. #path = "src/managesieve.rs"
  20. #[[bin]]
  21. #name = "async"
  22. #path = "src/async.rs"
  23. [dependencies]
  24. xdg = "2.1.0"
  25. crossbeam = "0.7.2"
  26. nix = "0.17.0"
  27. melib = { path = "melib", version = "0.6.1" }
  28. serde = "1.0.71"
  29. serde_derive = "1.0.71"
  30. serde_json = "1.0"
  31. toml = { version = "0.5.6", features = ["preserve_order", ] }
  32. indexmap = { version = "^1.5", features = ["serde-1", ] }
  33. linkify = "0.4.0"
  34. xdg-utils = "0.3.0"
  35. notify = "4.0.1" # >:c
  36. notify-rust = { version = "^4", optional = true }
  37. #termion = "1.5.1"
  38. bincode = "1.2.0"
  39. uuid = { version = "0.8.1", features = ["serde", "v4"] }
  40. unicode-segmentation = "1.2.1" # >:c
  41. libc = {version = "0.2.59", features = ["extra_traits",]}
  42. rmp = "^0.8"
  43. rmpv = { version = "^0.4.2", features=["with-serde",] }
  44. rmp-serde = "^0.14.0"
  45. smallvec = { version = "^1.4.0", features = ["serde", ] }
  46. bitflags = "1.0"
  47. pcre2 = { version = "0.2.3", optional = true }
  48. structopt = { version = "0.3.14", default-features = false }
  49. svg_crate = { version = "0.8.0", optional = true, package = "svg" }
  50. futures = "0.3.5"
  51. async-task = "3.0.0"
  52. num_cpus = "1.12.0"
  53. wasm-bindgen = { version = "0.2.63", optional = true }
  54. # The `console_error_panic_hook` crate provides better debugging of panics by
  55. # logging them with `console.error`. This is great for development, but requires
  56. # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
  57. # code size when deploying.
  58. console_error_panic_hook = { version = "0.1.6", optional = true }
  59. # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
  60. # compared to the default allocator's ~10K. It is slower than the default
  61. # allocator, however.
  62. #
  63. # Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
  64. wee_alloc = { version = "0.4.5", optional = true }
  65. [dependencies.js-sys]
  66. version = "0.3.4"
  67. optional=true
  68. [dependencies.web-sys]
  69. optional=true
  70. version = "0.3.4"
  71. features = [
  72. 'Document',
  73. 'Element',
  74. 'HtmlElement',
  75. 'EventTarget',
  76. 'Node',
  77. 'Window',
  78. 'KeyboardEvent',
  79. 'ErrorEvent',
  80. 'Event',
  81. 'Worker',
  82. 'DedicatedWorkerGlobalScope',
  83. 'MessageEvent',
  84. 'CustomEvent',
  85. 'CustomEventInit',
  86. ]
  87. [build-dependencies]
  88. syn = { version = "1.0.31", features = [] }
  89. quote = "^1.0"
  90. proc-macro2 = "1.0.18"
  91. [workspace]
  92. members = ["melib", "tools", ]
  93. [features]
  94. #default = ["sqlite3", "notmuch", "regexp", "smtp", "dbus-notifications"]
  95. default = ["wasm"]
  96. notmuch = ["melib/notmuch_backend", ]
  97. jmap = ["melib/jmap_backend",]
  98. sqlite3 = ["melib/sqlite3"]
  99. smtp = ["melib/smtp"]
  100. regexp = []#"pcre2"]
  101. dbus-notifications = ["notify-rust",]
  102. cli-docs = []
  103. svgscreenshot = ["svg_crate"]
  104. wasm = ["console_error_panic_hook", "svgscreenshot", "wasm-bindgen", "wee_alloc", "web-sys", "js-sys"]
  105. # Print tracing logs as meli runs in stderr
  106. # enable for debug tracing logs: build with --features=debug-tracing
  107. debug-tracing = ["melib/debug-tracing", ]
  108. [lib]
  109. name = "meli"
  110. path = "src/bin.rs"
  111. crate-type = ["cdylib", "rlib"]
  112. [dev-dependencies]
  113. wasm-bindgen-test = "0.3.13"
  114. [profile.release]
  115. # Tell `rustc` to optimize for small code size.
  116. debug = false
  117. opt-level = "s"
  118. lto = "fat"