From 773f476e38788eba168ad6db1e1ff7be03cc73e9 Mon Sep 17 00:00:00 2001 From: Cesar Rodas Date: Fri, 1 Dec 2023 15:02:56 -0300 Subject: [PATCH] Add support for a new binary (forc-crypto) --- components.toml | 8 ++++++++ docs/src/concepts/components.md | 2 ++ docs/src/installation/index.md | 3 ++- tests/show.rs | 7 +++++++ tests/testcfg/mod.rs | 1 + 5 files changed, 20 insertions(+), 1 deletion(-) diff --git a/components.toml b/components.toml index 2f1f7861d..9fd4538b8 100644 --- a/components.toml +++ b/components.toml @@ -23,6 +23,14 @@ executables = ["forc-fmt"] repository_name = "sway" targets = ["linux_amd64", "linux_arm64", "darwin_amd64", "darwin_arm64"] +[component.forc-crypto] +name = "forc-crypto" +tarball_prefix = "forc-binaries" +is_plugin = true +executables = ["forc-crypto"] +repository_name = "sway" +targets = ["linux_amd64", "linux_arm64", "darwin_amd64", "darwin_arm64"] + [component.forc-lsp] name = "forc-lsp" tarball_prefix = "forc-binaries" diff --git a/docs/src/concepts/components.md b/docs/src/concepts/components.md index ffc7185f1..139c7541d 100644 --- a/docs/src/concepts/components.md +++ b/docs/src/concepts/components.md @@ -24,6 +24,7 @@ The following is an overview of components installable through `fuelup`: with some built-in plugin executables, including but not limited to: [`forc-client`], [`forc-fmt`] and [`forc-lsp`]. - [`fuel-core`] — Full node implementation of the Fuel v2 protocol, written in Rust. - [`forc-explore`] — A Forc plugin for running the Fuel Block Explorer. +- [`forc-crypto`] — Forc plugin for hashing arbitrary data. - [`forc-wallet`] - A Forc plugin for managing Fuel wallets. - [`fuel-indexer`] - A standalone service that can be used to index various components of the Fuel blockchain. - [`forc-index`] - A Forc plugin used to interact with a Fuel Indexer service. @@ -33,6 +34,7 @@ with some built-in plugin executables, including but not limited to: [`forc-clie [`fuel-core`]: https://github.com/FuelLabs/fuel-core [`forc-explore`]: https://fuellabs.github.io/sway/master/book/forc/plugins/forc_explore.html [`forc-fmt`]: https://fuellabs.github.io/sway/master/book/forc/plugins/forc_fmt.html +[`forc-crypto`]: https://fuellabs.github.io/sway/master/book/forc/plugins/forc_crypto.html [`forc-lsp`]: https://fuellabs.github.io/sway/master/book/forc/plugins/forc_lsp.html [`forc-client`]: https://fuellabs.github.io/sway/master/book/forc/plugins/forc_client/index.html [`forc-wallet`]: https://github.com/FuelLabs/forc-wallet diff --git a/docs/src/installation/index.md b/docs/src/installation/index.md index d04167f0e..3167e7ef8 100644 --- a/docs/src/installation/index.md +++ b/docs/src/installation/index.md @@ -23,7 +23,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://install.fuel.network/fuelup-init.sh ``` -This will install `forc`, `forc-client`, `forc-fmt`, `forc-lsp`, `forc-wallet` as well as `fuel-core` in `~/.fuelup/bin`. The script will ask for permission to add `~/.fuelup/bin` to your `PATH`. +This will install `forc`, `forc-client`, `forc-fmt`, `forc-crypto`, `forc-lsp`, `forc-wallet` as well as `fuel-core` in `~/.fuelup/bin`. The script will ask for permission to add `~/.fuelup/bin` to your `PATH`. Otherwise, you can also pass `--no-modify-path` so that `fuelup-init` does not modify your `PATH` and will not ask for permission to do so: @@ -39,6 +39,7 @@ forc --version fuel-core --version forc-deploy --version forc-fmt --version +forc-crypto --version forc-lsp --version forc-run --version ``` diff --git a/tests/show.rs b/tests/show.rs index 69b49569b..91bbac6ff 100644 --- a/tests/show.rs +++ b/tests/show.rs @@ -36,6 +36,7 @@ latest-{target} (default) - forc-client - forc-deploy : 0.1.0 - forc-run : 0.1.0 + - forc-crypto : 0.1.0 - forc-doc : 0.1.0 - forc-explore : 0.1.0 - forc-fmt : 0.1.0 @@ -81,6 +82,7 @@ latest-{target} (default) - forc-client - forc-deploy : 0.1.0 - forc-run : 0.1.0 + - forc-crypto : 0.1.0 - forc-doc : 0.1.0 - forc-explore : 0.1.0 - forc-fmt : 0.1.0 @@ -116,6 +118,7 @@ nightly-{target} (default) - forc-client - forc-deploy : 0.2.0 - forc-run : 0.2.0 + - forc-crypto : 0.2.0 - forc-doc : 0.2.0 - forc-explore : 0.2.0 - forc-fmt : 0.2.0 @@ -161,6 +164,7 @@ my_toolchain (default) - forc-client - forc-deploy : not found - forc-run : not found + - forc-crypto : not found - forc-doc : not found - forc-explore : not found - forc-fmt : not found @@ -206,6 +210,7 @@ beta-1-{target} (override), path: {} - forc-client - forc-deploy : not found - forc-run : not found + - forc-crypto : not found - forc-doc : not found - forc-explore : not found - forc-fmt : not found @@ -253,6 +258,7 @@ latest-{target} (default) - forc-client - forc-deploy : 0.1.0 - forc-run : 0.1.0 + - forc-crypto : 0.1.0 - forc-doc : 0.1.0 - forc-explore : 0.1.0 - forc-fmt : 0.1.0 @@ -302,6 +308,7 @@ latest-{target} (default) - forc-client - forc-deploy : 0.2.0 - forc-run : 0.2.0 + - forc-crypto : 0.2.0 - forc-doc : 0.2.0 - forc-explore : 0.2.0 - forc-fmt : 0.2.0 diff --git a/tests/testcfg/mod.rs b/tests/testcfg/mod.rs index 2cdd451a8..81ef187f7 100644 --- a/tests/testcfg/mod.rs +++ b/tests/testcfg/mod.rs @@ -67,6 +67,7 @@ const VERSION_2: &Version = &Version::new(0, 2, 0); pub static ALL_BINS: &[&str] = &[ "forc", + "forc-crypto", "forc-deploy", "forc-doc", "forc-explore",