Depend on jemallocator as tikv-jemallocator
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Upstream writes: “The project is also published as jemallocator for historical reasons. The two crates are the same except names. For new projects, it's recommended to use tikv-xxx versions instead.”
authored by Benjamin A. Beasley · committed by Benjamin A. Beasley · parent efe499a · Browse files · 3 files·+29 added−29 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+29 added−29 removed
- other:+29 added−29 removed
Provenance
- Commit
cb150c4- Tree
1768e12- Author
Benjamin A. Beasley <code@musicinmybrain.net>- Committer
Benjamin A. Beasley <code@musicinmybrain.net>- Parent
efe499a
3 files changed+29 added−29 removed
modified:src/main.rs+1 added-1 removed
45 unmodified lines46 not(target_arch = "riscv64"),47 feature = "use-jemalloc"48 ))]49 #[global_allocator]50-static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;50+static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;51 52 // vivid --color-mode 8-bit generate molokai53 const DEFAULT_LS_COLORS: &str = "54 ow=0:or=0;38;5;16;48;5;203:no=0:ex=1;38;5;203:cd=0;38;5;203;48;5;236:mi=0;38;5;16;48;5;203:*~=0;38;5;243:st=0:pi=0;38;5;16;48;5;81:fi=0:di=0;38;5;81:so=0;38;5;16;48;5;203:bd=0;38;5;81;48;5;236:tw=0:ln=0;38;5;203:*.m=0;38;5;48:*.o=0;38;5;243:*.z=4;38;5;203:*.a=1;38;5;203:*.r=0;38;5;48:*.c=0;38;5;48:*.d=0;38;5;48:*.t=0;38;5;48:*.h=0;38;5;48:*.p=0;38;5;48:*.cc=0;38;5;48:*.ll=0;38;5;48:*.jl=0;38;5;48:*css=0;38;5;48:*.md=0;38;5;185:*.gz=4;38;5;203:*.nb=0;38;5;48:*.mn=0;38;5;48:*.go=0;38;5;48:*.xz=4;38;5;203:*.so=1;38;5;203:*.rb=0;38;5;48:*.pm=0;38;5;48:*.bc=0;38;5;243:*.py=0;38;5;48:*.as=0;38;5;48:*.pl=0;38;5;48:*.rs=0;38;5;48:*.sh=0;38;5;48:*.7z=4;38;5;203:*.ps=0;38;5;186:*.cs=0;38;5;48:*.el=0;38;5;48:*.rm=0;38;5;208:*.hs=0;38;5;48:*.td=0;38;5;48:*.ui=0;38;5;149:*.ex=0;38;5;48:*.js=0;38;5;48:*.cp=0;38;5;48:*.cr=0;38;5;48:*.la=0;38;5;243:*.kt=0;38;5;48:*.ml=0;38;5;48:*.vb=0;38;5;48:*.gv=0;38;5;48:*.lo=0;38;5;243:*.hi=0;38;5;243:*.ts=0;38;5;48:*.ko=1;38;5;203:*.hh=0;38;5;48:*.pp=0;38;5;48:*.di=0;38;5;48:*.bz=4;38;5;203:*.fs=0;38;5;48:*.png=0;38;5;208:*.zsh=0;38;5;48:*.mpg=0;38;5;208:*.pid=0;38;5;243:*.xmp=0;38;5;149:*.iso=4;38;5;203:*.m4v=0;38;5;208:*.dot=0;38;5;48:*.ods=0;38;5;186:*.inc=0;38;5;48:*.sxw=0;38;5;186:*.aif=0;38;5;208:*.git=0;38;5;243:*.gvy=0;38;5;48:*.tbz=4;38;5;203:*.log=0;38;5;243:*.txt=0;38;5;185:*.ico=0;38;5;208:*.csx=0;38;5;48:*.vob=0;38;5;208:*.pgm=0;38;5;208:*.pps=0;38;5;186:*.ics=0;38;5;186:*.img=4;38;5;203:*.fon=0;38;5;208:*.hpp=0;38;5;48:*.bsh=0;38;5;48:*.sql=0;38;5;48:*TODO=1:*.php=0;38;5;48:*.pkg=4;38;5;203:*.ps1=0;38;5;48:*.csv=0;38;5;185:*.ilg=0;38;5;243:*.ini=0;38;5;149:*.pyc=0;38;5;243:*.psd=0;38;5;208:*.htc=0;38;5;48:*.swp=0;38;5;243:*.mli=0;38;5;48:*hgrc=0;38;5;149:*.bst=0;38;5;149:*.ipp=0;38;5;48:*.fsi=0;38;5;48:*.tcl=0;38;5;48:*.exs=0;38;5;48:*.out=0;38;5;243:*.jar=4;38;5;203:*.xls=0;38;5;186:*.ppm=0;38;5;208:*.apk=4;38;5;203:*.aux=0;38;5;243:*.rpm=4;38;5;203:*.dll=1;38;5;203:*.eps=0;38;5;208:*.exe=1;38;5;203:*.doc=0;38;5;186:*.wma=0;38;5;208:*.deb=4;38;5;203:*.pod=0;38;5;48:*.ind=0;38;5;243:*.nix=0;38;5;149:*.lua=0;38;5;48:*.epp=0;38;5;48:*.dpr=0;38;5;48:*.htm=0;38;5;185:*.ogg=0;38;5;208:*.bin=4;38;5;203:*.otf=0;38;5;208:*.yml=0;38;5;149:*.pro=0;38;5;149:*.cxx=0;38;5;48:*.tex=0;38;5;48:*.fnt=0;38;5;208:*.erl=0;38;5;48:*.sty=0;38;5;243:*.bag=4;38;5;203:*.rst=0;38;5;185:*.pdf=0;38;5;186:*.pbm=0;38;5;208:*.xcf=0;38;5;208:*.clj=0;38;5;48:*.gif=0;38;5;208:*.rar=4;38;5;203:*.elm=0;38;5;48:*.bib=0;38;5;149:*.tsx=0;38;5;48:*.dmg=4;38;5;203:*.tmp=0;38;5;243:*.bcf=0;38;5;243:*.mkv=0;38;5;208:*.svg=0;38;5;208:*.cpp=0;38;5;48:*.vim=0;38;5;48:*.bmp=0;38;5;208:*.ltx=0;38;5;48:*.fls=0;38;5;243:*.flv=0;38;5;208:*.wav=0;38;5;208:*.m4a=0;38;5;208:*.mid=0;38;5;208:*.hxx=0;38;5;48:*.pas=0;38;5;48:*.wmv=0;38;5;208:*.tif=0;38;5;208:*.kex=0;38;5;186:*.mp4=0;38;5;208:*.bak=0;38;5;243:*.xlr=0;38;5;186:*.dox=0;38;5;149:*.swf=0;38;5;208:*.tar=4;38;5;203:*.tgz=4;38;5;203:*.cfg=0;38;5;149:*.xml=0;434 unmodified linesmodified:Cargo.lock+26 added-26 removed
232 unmodified lines233 source = "registry+https://github.com/rust-lang/crates.io-index"234 checksum = "976dd42dc7e85965fe702eb8164f21f450704bdde31faefd6471dba214cb594e"235 dependencies = [236 "libc",237- "windows-sys 0.52.0",237+ "windows-sys 0.59.0",238 ]239 240 [[package]]241 name = "etcetera"39 unmodified lines281 "faccess",282 "filetime",283 "globset",284 "ignore",285- "jemallocator",285 "jiff",286 "libc",287 "lscolors",288 "nix 0.29.0",2 unmodified lines291 "regex",292 "regex-syntax",293 "tempfile",294 "test-case",295+ "tikv-jemallocator",296 "version_check",297 ]298 299 [[package]]70 unmodified lines370 source = "registry+https://github.com/rust-lang/crates.io-index"371 checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"372 373 [[package]]374-name = "jemalloc-sys"375-version = "0.5.4+5.3.0-patched"376-source = "registry+https://github.com/rust-lang/crates.io-index"377-checksum = "ac6c1946e1cea1788cbfde01c993b52a10e2da07f4bac608228d1bed20bfebf2"378-dependencies = [379- "cc",380- "libc",381-]382-383-[[package]]384-name = "jemallocator"385-version = "0.5.4"386-source = "registry+https://github.com/rust-lang/crates.io-index"387-checksum = "a0de374a9f8e63150e6f5e8a60cc14c668226d7a347d8aee1a45766e3c4dd3bc"388-dependencies = [389- "jemalloc-sys",390- "libc",391-]392-393-[[package]]374 name = "jiff"375 version = "0.2.10"376 source = "registry+https://github.com/rust-lang/crates.io-index"377 checksum = "5a064218214dc6a10fbae5ec5fa888d80c45d611aba169222fc272072bf7aef6"3 unmodified lines381 "log",382 "portable-atomic",383 "portable-atomic-util",384 "serde",405- "windows-sys 0.52.0",385+ "windows-sys 0.59.0",386 ]387 388 [[package]]389 name = "jiff-static"205 unmodified lines595 "bitflags 2.9.0",596 "errno",597 "libc",598 "linux-raw-sys",619- "windows-sys 0.52.0",599+ "windows-sys 0.59.0",600 ]601 602 [[package]]603 name = "same-file"56 unmodified lines660 "fastrand",661 "getrandom",662 "once_cell",663 "rustix",684- "windows-sys 0.52.0",664+ "windows-sys 0.59.0",665 ]666 667 [[package]]668 name = "terminal_size"38 unmodified lines707 "test-case-core",708 ]709 710 [[package]]711+name = "tikv-jemalloc-sys"712+version = "0.5.4+5.3.0-patched"713+source = "registry+https://github.com/rust-lang/crates.io-index"714+checksum = "9402443cb8fd499b6f327e40565234ff34dbda27460c5b47db0db77443dd85d1"715+dependencies = [716+ "cc",717+ "libc",718+]719+720+[[package]]721+name = "tikv-jemallocator"722+version = "0.5.4"723+source = "registry+https://github.com/rust-lang/crates.io-index"724+checksum = "965fe0c26be5c56c94e38ba547249074803efd52adfb66de62107d95aab3eaca"725+dependencies = [726+ "libc",727+ "tikv-jemalloc-sys",728+]729+730+[[package]]731 name = "unicode-ident"732 version = "1.0.18"733 source = "registry+https://github.com/rust-lang/crates.io-index"734 checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"50 unmodified lines785 version = "0.1.9"786 source = "registry+https://github.com/rust-lang/crates.io-index"787 checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"788 dependencies = [789- "windows-sys 0.52.0",789+ "windows-sys 0.59.0",790 ]791 792 [[package]]793 name = "winapi-x86_64-pc-windows-gnu"94 unmodified linesmodified:Cargo.toml+2 added-2 removed
68 unmodified lines697071727373747576775 unmodified lines83848586878788899068 unmodified lines# FIXME: Re-enable jemalloc on macOS# jemalloc is currently disabled on macOS due to a bug in jemalloc in combination with macOS# Catalina. See https://github.com/sharkdp/fd/issues/498 for details.[target.'cfg(all(not(windows), not(target_os = "android"), not(target_os = "macos"), not(target_os = "freebsd"), not(target_os = "openbsd"), not(all(target_env = "musl", target_pointer_width = "32")), not(target_arch = "riscv64")))'.dependencies]jemallocator = {version = "0.5.4", optional = true}tikv-jemallocator = {version = "0.5.4", optional = true}
[dev-dependencies]diff = "0.1"tempfile = "3.19"5 unmodified linesstrip = truecodegen-units = 1
[features]use-jemalloc = ["jemallocator"]use-jemalloc = ["tikv-jemallocator"]completions = ["clap_complete"]base = ["use-jemalloc"]default = ["use-jemalloc", "completions"]