Add optional support to use jemalloc as allocator

This commit is contained in:
Jeremy Soller 2024-11-15 11:10:30 -07:00
parent 49595d87f3
commit b76484457f
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 56 additions and 26 deletions

View file

@ -33,6 +33,7 @@ regex = "1"
serde = { version = "1", features = ["serde_derive"] }
shlex = { version = "1.3" }
tempfile = "3"
tikv-jemallocator = { version = "0.6", optional = true }
tokio = { version = "1", features = ["process", "sync"] }
trash = { git = "https://github.com/jackpot51/trash-rs.git", branch = "cosmic" }
url = "2.5"
@ -68,6 +69,7 @@ features = ["multi-window", "tokio", "winit"]
default = ["bzip2", "desktop", "gvfs", "liblzma", "notify", "wgpu"]
desktop = ["libcosmic/desktop", "dep:xdg"]
gvfs = ["dep:gio", "dep:glib"]
jemalloc = ["dep:tikv-jemallocator"]
notify = ["dep:notify-rust"]
wayland = ["libcosmic/wayland", "dep:wayland-client"]
wgpu = ["libcosmic/wgpu"]