sysutils/bkt 0.8.2_19
Subprocess caching utility
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
9c878207a1- License
- MIT
- Categories
- sysutils
- Package size
- 325.4 KiB, 718.5 KiB installed
Description
bkt (pronounced bucket) is a subprocess caching utility written in Rust, inspired by bash-cache. Wrapping expensive process invocations with bkt allows callers to reuse recent invocations without complicating their application logic. This can be useful in shell prompts, interactive applications such as fzf, and long-running programs that poll other processes.
When bkt is passed a command it hasn't seen before (or recently) it executes the command synchronously and caches its stdout, stderr, and exit code. Calling bkt again with the same command reads the data from the cache and outputs it as if the command had been run again.
Install
As a binary package — by origin, or by package name:
pkg install sysutils/bkt
pkg install bkt
From the ports tree:
cd /usr/ports/sysutils/bkt/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= bkt>0:sysutils/bkt
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.8.2_18 | 0.8.2_19 | - | 0.8.2_7 | 0.8.2_19 |
| FreeBSD:14:quarterly | 0.8.2_17 | 0.8.2_17 | n/a | 0.8.2_6 | 0.8.2_17 |
| FreeBSD:15:latest | 0.8.2_19 | 0.8.2_19 | n/a | 0.8.2_7 | 0.8.2_7 |
| FreeBSD:15:quarterly | 0.8.2_17 | 0.8.2_17 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.8.2_17 | 0.8.2_19 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
All build dependencies 15
No port depends on this one.
Configuration
Options name: sysutils_bkt
| Option | Default | Description |
|---|---|---|
| MANPAGES | on | Build and install auto-generated manpages |
- USES
- cargo
- Service scripts
- none
Files
Manual pages 1
- bkt(1)
pkg-plist 2
- bin/bkt
- share/man/man1/bkt.1.gz
distinfo 60
| File | Size | SHA256 |
|---|---|---|
| rust/crates/aho-corasick-1.1.2.crate | 183136 | b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0 |
| rust/crates/anstyle-1.0.4.crate | 13998 | 7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87 |
| rust/crates/anyhow-1.0.79.crate | 44931 | 080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca |
| rust/crates/base64-0.21.7.crate | 82576 | 9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567 |
| rust/crates/bincode-1.3.3.crate | 28958 | b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad |
| rust/crates/bitflags-1.3.2.crate | 23021 | bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a |
| rust/crates/bitflags-2.4.2.crate | 42602 | ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf |
| rust/crates/cfg-if-1.0.0.crate | 7934 | baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd |
| rust/crates/clap-4.4.18.crate | 55269 | 1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c |
| rust/crates/clap_builder-4.4.18.crate | 163538 | 4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7 |
| rust/crates/clap_derive-4.4.7.crate | 29046 | cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442 |
| rust/crates/clap_lex-0.6.0.crate | 12272 | 702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1 |
| rust/crates/errno-0.3.8.crate | 10645 | a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245 |
| rust/crates/filetime-0.2.23.crate | 14942 | 1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd |
| rust/crates/getrandom-0.2.12.crate | 36163 | 190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5 |
| rust/crates/heck-0.4.1.crate | 11567 | 95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8 |
| rust/crates/humantime-2.1.0.crate | 16749 | 9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4 |
| rust/crates/itoa-1.0.10.crate | 10534 | b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c |
| rust/crates/libc-0.2.186.crate | 821883 | 68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66 |
| rust/crates/linux-raw-sys-0.4.13.crate | 1.493855e+06 | 01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c |