From 743f8a2c6e6acfe28b3f97f2c001572bfce99f0f Mon Sep 17 00:00:00 2001 From: Dora Militaru Date: Tue, 31 Oct 2023 09:10:51 +0000 Subject: [PATCH] DEVLIB-1257: Rename Compute@Edge to Compute (#328) * DEVLIB-1257: Rename Compute@Edge to Compute * Update README.md --- CHANGELOG.md | 8 ++++---- CONTRIBUTING.md | 2 +- README.md | 12 ++++++------ cli/Cargo.toml | 2 +- cli/src/main.rs | 2 +- cli/src/opts.rs | 2 +- lib/compute-at-edge-abi/README.md | 2 +- lib/src/config.rs | 2 +- lib/src/execute.rs | 2 +- lib/src/linking.rs | 2 +- lib/src/wiggle_abi.rs | 2 +- test-fixtures/src/bin/geolocation-lookup-default.rs | 4 ++-- test-fixtures/src/bin/geolocation-lookup.rs | 2 +- 13 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55a0e2ec..c9ab1184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -160,7 +160,7 @@ ## 0.2.12 (2022-03-08) -- Add stubs for framing header controls, now available on C@E ([#139](https://github.com/fastly/Viceroy/pull/139)) +- Add stubs for framing header controls, now available on Compute ([#139](https://github.com/fastly/Viceroy/pull/139)) ## 0.2.11 (2022-02-15) @@ -189,7 +189,7 @@ - Catch interrupt signals ([#85](https://github.com/fastly/Viceroy/pull/85)) - Include aarch64 tarballs for Linux and macOS ([#88](https://github.com/fastly/Viceroy/pull/88)) -- Align URI and Host header semantics with production C@E ([#90](https://github.com/fastly/Viceroy/pull/90)) +- Align URI and Host header semantics with production Compute ([#90](https://github.com/fastly/Viceroy/pull/90)) ## 0.2.5 (2021-10-21) @@ -206,9 +206,9 @@ ### Additions - Added the close functionality for `RequestHandle`, `ResponseHandle`, - `BodyHandle`, and `StreamingBodyHandle` in the upcoming Rust C@E `0.8.0` SDK + `BodyHandle`, and `StreamingBodyHandle` in the upcoming Rust Compute `0.8.0` SDK release ([#65](https://github.com/fastly/Viceroy/pull/65)) -- Added local dictionary support so that C@E programs that need dictionaries can work in Viceroy ([#61](https://github.com/fastly/Viceroy/pull/61)) +- Added local dictionary support so that Compute programs that need dictionaries can work in Viceroy ([#61](https://github.com/fastly/Viceroy/pull/61)) - Added the ability to do host overrides from the TOML configuration ([#48](https://github.com/fastly/Viceroy/pull/48)) ### Changes diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b6138c27..eb007b65 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing to Viceroy First off thank you for wanting to contribute to making Viceroy better! We -appreciate you taking time to improve the Compute@Edge experience for developers +appreciate you taking time to improve the Compute experience for developers everywhere. There are many ways you can contribute that include but aren't limited to documentation, opening issues, issue triage, and code contributions. We'll cover some of the ways you can contribute below, but if you don't see diff --git a/README.md b/README.md index bccc7d85..254d67e6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Viceroy -Viceroy provides local testing for developers working with Compute@Edge. It -allows you to run services written against the Compute@Edge APIs on your local +Viceroy provides local testing for developers working with Fastly Compute. It +allows you to run services written against the Compute APIs on your local development machine, and allows you to configure testing backends for your service to communicate with. Viceroy is normally used through the [Fastly CLI's `fastly compute serve` -command][cli], where it is fully integrated into Compute@Edge workflows. +command][cli], where it is fully integrated into Compute workflows. However, it is also a standalone open source tool with its own CLI and a Rust library that can be embedded into your own testing infrastructure. @@ -16,7 +16,7 @@ Rust library that can be embedded into your own testing infrastructure. ### Via the Fastly CLI -As mentioned above, most users of Compute@Edge should do local testing via the +As mentioned above, most users of Compute should do local testing via the Fastly CLI, rather than working with Viceroy directly. Any [CLI release] of version 0.34 or above supports local testing, and the workflow is documented [here][cli]. @@ -50,12 +50,12 @@ viceroy bin/main.wasm ``` This will start a local server (by default at: `http://127.0.0.1:7676`), which can -be used to make requests to your Compute@Edge service locally. You can make requests +be used to make requests to your Compute service locally. You can make requests by using [curl](https://curl.se/), or you can send a simple GET request by visiting the URL in your web browser. ## Usage as a test runner -Viceroy can also be used as a test runner for running Rust unit tests for Compute@Edge applications in the following way: +Viceroy can also be used as a test runner for running Rust unit tests for Compute applications in the following way: 1. Ensure the `viceroy` command is available in your path 2. Add the following to your project's `.cargo/config`: diff --git a/cli/Cargo.toml b/cli/Cargo.toml index fa92fbe3..364272d0 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "viceroy" -description = "Viceroy is a local testing daemon for Compute@Edge." +description = "Viceroy is a local testing daemon for Fastly Compute." version = "0.9.3" authors = ["Fastly"] readme = "../README.md" diff --git a/cli/src/main.rs b/cli/src/main.rs index cebc7f13..5c327dc9 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -1,4 +1,4 @@ -//! Fastly's local testing daemon for Compute@Edge. +//! Fastly's local testing daemon for Compute. // When building the project in release mode: // (1): Promote warnings into errors. diff --git a/cli/src/opts.rs b/cli/src/opts.rs index ce391c7a..e4295728 100644 --- a/cli/src/opts.rs +++ b/cli/src/opts.rs @@ -19,7 +19,7 @@ use { // [clap](https://docs.rs/clap/latest/clap/) documentation for more information. // // Note that the doc comment below is used as descriptive text in the `--help` output. -/// Viceroy is a local testing daemon for Compute@Edge. +/// Viceroy is a local testing daemon for Compute. #[derive(Parser, Debug)] #[command(name = "viceroy", author, version, about)] #[command(propagate_version = true)] diff --git a/lib/compute-at-edge-abi/README.md b/lib/compute-at-edge-abi/README.md index 8696acde..281a306d 100644 --- a/lib/compute-at-edge-abi/README.md +++ b/lib/compute-at-edge-abi/README.md @@ -1,6 +1,6 @@ # 🔗 compute-at-edge-abi -This directory contains the canonical `witx` definitions for the Compute@Edge +This directory contains the canonical `witx` definitions for the Compute platform ABI. ### About `witx` diff --git a/lib/src/config.rs b/lib/src/config.rs index fb87c0df..04fe9760 100644 --- a/lib/src/config.rs +++ b/lib/src/config.rs @@ -49,7 +49,7 @@ pub use crate::secret_store::SecretStores; /// Fastly-specific configuration information. /// -/// This `struct` represents the fields and values in a Compute@Edge package's `fastly.toml`. +/// This `struct` represents the fields and values in a Compute package's `fastly.toml`. #[derive(Debug, Clone)] pub struct FastlyConfig { name: String, diff --git a/lib/src/execute.rs b/lib/src/execute.rs index 785aa9eb..3eabde97 100644 --- a/lib/src/execute.rs +++ b/lib/src/execute.rs @@ -516,7 +516,7 @@ fn configure_wasmtime(profiling_strategy: ProfilingStrategy) -> wasmtime::Config const MB: usize = 1 << 20; let mut pooling_allocation_config = PoolingAllocationConfig::default(); - // This number matches C@E production + // This number matches Compute production pooling_allocation_config.max_core_instance_size(MB); // Core wasm programs have 1 memory diff --git a/lib/src/linking.rs b/lib/src/linking.rs index e768c300..40cfa832 100644 --- a/lib/src/linking.rs +++ b/lib/src/linking.rs @@ -116,7 +116,7 @@ fn make_wasi_ctx(ctx: &ExecuteCtx, session: &Session) -> Result