Skip to content

Commit

Permalink
Merge pull request #64 from fastly/dora-compute-rename
Browse files Browse the repository at this point in the history
DEVLIB-1233: Rename Compute@Edge to Compute
  • Loading branch information
doramatadora authored Oct 25, 2023
2 parents eec030e + b2bb784 commit e7db5fe
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ publish = false
debug = 1

[dependencies]
fastly = "0.9.4"
fastly = "0.9.8"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

[![Deploy to Fastly](https://deploy.edgecompute.app/button)](https://deploy.edgecompute.app/deploy)

Get to know the Fastly Compute@Edge environment with a basic starter that demonstrates routing, simple synthetic responses and code comments that cover common patterns.
Get to know the Fastly Compute environment with a basic starter that demonstrates routing, simple synthetic responses and code comments that cover common patterns.

**For more details about this and other starter kits for Compute@Edge, see the [Fastly Developer Hub](https://developer.fastly.com/solutions/starters/)**.
**For more details about this and other starter kits for Compute, see the [Fastly Developer Hub](https://developer.fastly.com/solutions/starters/)**.

## Features

Expand All @@ -14,9 +14,9 @@ Get to know the Fastly Compute@Edge environment with a basic starter that demons

## Understanding the code

This starter is intentionally lightweight, and requires no dependencies aside from the [`fastly`](https://docs.rs/fastly) crate. It will help you understand the basics of processing requests at the edge using Fastly. This starter includes implementations of common patterns explained in our [using Compute@Edge](https://developer.fastly.com/learning/compute/rust/) and [VCL migration](https://developer.fastly.com/learning/compute/migrate/) guides.
This starter is intentionally lightweight, and requires no dependencies aside from the [`fastly`](https://docs.rs/fastly) crate. It will help you understand the basics of processing requests at the edge using Fastly. This starter includes implementations of common patterns explained in our [using Compute](https://developer.fastly.com/learning/compute/rust/) and [VCL migration](https://developer.fastly.com/learning/compute/migrate/) guides.

The starter doesn't require the use of any backends. Once deployed, you will have a Fastly service running on Compute@Edge that can generate synthetic responses at the edge.
The starter doesn't require the use of any backends. Once deployed, you will have a Fastly service running on Compute that can generate synthetic responses at the edge.

## Security issues

Expand Down
2 changes: 1 addition & 1 deletion fastly.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file describes a Fastly Compute@Edge package. To learn more visit:
# This file describes a Fastly Compute package. To learn more visit:
# https://developer.fastly.com/reference/fastly-toml/

authors = ["<[email protected]>"]
Expand Down
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Default Compute@Edge template program.
//! Default Compute template program.
use fastly::http::{header, Method, StatusCode};
use fastly::{mime, Error, Request, Response};
Expand Down Expand Up @@ -36,12 +36,12 @@ fn main(req: Request) -> Result<Response, Error> {
match req.get_path() {
// If request is to the `/` path...
"/" => {
// Below are some common patterns for Compute@Edge services using Rust.
// Below are some common patterns for Compute services using Rust.
// Head to https://developer.fastly.com/learning/compute/rust/ to discover more.

// Create a new request.
// let mut bereq = Request::get("http://httpbin.org/headers")
// .with_header("X-Custom-Header", "Welcome to Compute@Edge!")
// .with_header("X-Custom-Header", "Welcome to Compute!")
// .with_ttl(60);

// Add request headers.
Expand All @@ -64,7 +64,7 @@ fn main(req: Request) -> Result<Response, Error> {
// Send a default synthetic response.
Ok(Response::from_status(StatusCode::OK)
.with_content_type(mime::TEXT_HTML_UTF_8)
.with_body(include_str!("welcome-to-compute@edge.html")))
.with_body(include_str!("welcome-to-compute.html")))
}

// Catch all other requests and return a 404.
Expand Down
2 changes: 1 addition & 1 deletion src/[email protected] → src/welcome-to-compute.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>Welcome to Compute@Edge</title>
<title>Welcome to Fastly Compute</title>
<link
rel="icon"
href="https://developer.fastly.com/favicon-32x32.png"
Expand Down

0 comments on commit e7db5fe

Please sign in to comment.