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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/rust-script | 0.36.0_10 |
| HardenedBSD | devel/rust-script | 0.36.0_8 |
| GhostBSD | devel/rust-script | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.36.0_9 | 0.36.0_10 | - | 0.34.0_13 | 0.36.0_10 |
| FreeBSD:14:quarterly | 0.36.0_8 | 0.36.0_8 | n/a | 0.34.0_12 | 0.36.0_8 |
| FreeBSD:15:latest | 0.36.0_10 | 0.36.0_10 | n/a | 0.34.0_13 | 0.34.0_13 |
| FreeBSD:15:quarterly | 0.36.0_8 | 0.36.0_8 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.36.0_8 | 0.36.0_10 | 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.
Build dependencies 11
Required by 1
Configuration
No options to configure.
- USES
- cargo
- Service scripts
- none
Files
distinfo 107
| File | Size | SHA256 |
|---|---|---|
| rust/crates/aho-corasick-1.1.3.crate | 183311 | 8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916 |
| rust/crates/anstream-0.6.20.crate | 28797 | 3ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192 |
| rust/crates/anstyle-1.0.11.crate | 15880 | 862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd |
| rust/crates/anstyle-parse-0.2.7.crate | 21707 | 4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2 |
| rust/crates/anstyle-query-1.1.4.crate | 10192 | 9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2 |
| rust/crates/anstyle-wincon-3.0.10.crate | 12558 | 3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a |
| rust/crates/bitflags-2.9.1.crate | 47913 | 1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967 |
| rust/crates/block-buffer-0.10.4.crate | 10538 | 3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71 |
| rust/crates/cfg-if-1.0.1.crate | 8683 | 9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268 |
| rust/crates/clap-4.5.45.crate | 58337 | 1fc0e74a703892159f5ae7d3aac52c8e6c392f5ae5f359c70b5881d60aaac318 |
| rust/crates/clap_builder-4.5.44.crate | 169799 | b3e7f4214277f3c7aa526a59dd3fbe306a370daee1f8b7b8c987069cd8e888a8 |
| rust/crates/clap_lex-0.7.5.crate | 13469 | b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675 |
| rust/crates/colorchoice-1.0.4.crate | 8196 | b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75 |
| rust/crates/cpufeatures-0.2.17.crate | 13466 | 59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280 |
| rust/crates/crypto-common-0.1.6.crate | 8760 | 1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3 |
| rust/crates/digest-0.10.7.crate | 19557 | 9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292 |
| rust/crates/dirs-6.0.0.crate | 14190 | c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e |
| rust/crates/dirs-sys-0.5.0.crate | 10157 | e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab |
| rust/crates/env_filter-0.1.3.crate | 15191 | 186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0 |
| rust/crates/env_logger-0.11.8.crate | 32538 | 13c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f |