Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a new binary (forc-crypto) #530

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions components.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions docs/src/concepts/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/src/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://install.fuel.network/fuelup-init.sh
```
<!-- install:example:end -->

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:

Expand All @@ -39,6 +39,7 @@ forc --version
fuel-core --version
forc-deploy --version
forc-fmt --version
forc-crypto --version
forc-lsp --version
forc-run --version
```
Expand Down
7 changes: 7 additions & 0 deletions tests/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/testcfg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading