BSD Ports

devel/rust-script 0.36.0_10 FreeBSD

Run Rust files and expressions as scripts without setup or compilation

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
9c878207a1
License
APACHE20, MIT
Categories
devel
Package size
885.3 KiB, 2957.1 KiB installed

Description

Run Rust script files without any setup or explicit compilation step, with seamless use of crates specified as dependencies inside the scripts.

With rust-script Rust files and expressions can be executed just like a shell or Python script. Features include:

  • Caching compiled artifacts for speed.
  • Reading Cargo manifests embedded in Rust scripts.
  • Supporting executable Rust scripts via Unix shebangs and Windows file associations.
  • Using expressions as stream filters (i.e. for use in command pipelines).
  • Running unit tests and benchmarks from scripts.

You can get an overview of the available options using the --help flag.

In the other systems

SystemPortVersion
FreeBSDdevel/rust-script0.36.0_10
HardenedBSDdevel/rust-script0.36.0_8
GhostBSDdevel/rust-script0.36.0_8

Install

Binary package:

pkg install rust-script

From the ports tree:

cd /usr/ports/devel/rust-script/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	rust-script>0:devel/rust-script

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.36.0_90.36.0_10-0.34.0_130.36.0_10
FreeBSD:14:quarterly0.36.0_80.36.0_8n/a0.34.0_120.36.0_8
FreeBSD:15:latest0.36.0_100.36.0_10n/a0.34.0_130.34.0_13
FreeBSD:15:quarterly0.36.0_80.36.0_8n/an/an/a
FreeBSD:16:latest0.36.0_80.36.0_10n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 11
Required by 1

Configuration

No options to configure.

USES
cargo
Service scripts
none

Files

distinfo 107
FileSizeSHA256
rust/crates/aho-corasick-1.1.3.crate1833118e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916
rust/crates/anstream-0.6.20.crate287973ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192
rust/crates/anstyle-1.0.11.crate15880862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd
rust/crates/anstyle-parse-0.2.7.crate217074e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2
rust/crates/anstyle-query-1.1.4.crate101929e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2
rust/crates/anstyle-wincon-3.0.10.crate125583e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a
rust/crates/bitflags-2.9.1.crate479131b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967
rust/crates/block-buffer-0.10.4.crate105383078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71
rust/crates/cfg-if-1.0.1.crate86839555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268
rust/crates/clap-4.5.45.crate583371fc0e74a703892159f5ae7d3aac52c8e6c392f5ae5f359c70b5881d60aaac318
rust/crates/clap_builder-4.5.44.crate169799b3e7f4214277f3c7aa526a59dd3fbe306a370daee1f8b7b8c987069cd8e888a8
rust/crates/clap_lex-0.7.5.crate13469b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675
rust/crates/colorchoice-1.0.4.crate8196b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75
rust/crates/cpufeatures-0.2.17.crate1346659ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280
rust/crates/crypto-common-0.1.6.crate87601bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3
rust/crates/digest-0.10.7.crate195579ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292
rust/crates/dirs-6.0.0.crate14190c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e
rust/crates/dirs-sys-0.5.0.crate10157e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab
rust/crates/env_filter-0.1.3.crate15191186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0
rust/crates/env_logger-0.11.8.crate3253813c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f

Commit history 5

DateCommitCreditsLog message
9c878207a1 Mikael Urankar lang/rust: Bump revisions after 1.99.0
PR: 299016
396c159306 Alan Somers */*: Fix many Rust ports to run without COMPAT11
RISCV does not include COMPAT11 by default. But Rust's libc bound the compat-11 symbols until version 0.2.176. Patch a great many Rust ports to use a newer version of libc, to eliminate the dependency on COMPAT11. Explicitly patching Cargo.lock isn't usually necessarily, since within the build jail cargo is forced to use whichever crates Makefile.crates installs there. Notes on specific ports: * textproc/bookokrat: Rework bookokrat's existing patch to be more robust. Also, report the issue upstream: https://github.com/bugzmanov/bookokrat/issues/182 * security/sequoia-chameleon-gnupg security/sequoia-sq "cargo update -p libc" insisted on updating some other crates, too. * devel/cargo-generate finance/tickrs net-im/gurk-rs net-p2p/oura textproc/mdbook-linkcheck www/lychee …
7316461925 Mikael Urankar lang/rust: Bump revisions after 1.98.1
PR: 298139
79c3aeb472 Pat Maddox Update patmaddox maintainer email
Approved by: dch (mentor implicit) Closes: https://github.com/freebsd/freebsd-ports/pull/566
9c892d2601 Mikael Urankar lang/rust: Bump revisions after 1.97.1
PR: 296645