diff --git a/Cargo.lock b/Cargo.lock index 92f3b8f..de0ded0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,9 +55,9 @@ dependencies = [ [[package]] name = "fastly" -version = "0.9.4" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99ae567cb5ba0b3ba601bd77471156595d3996c8345cdb26e6196818d889d6c2" +checksum = "b58976e58d1fdfb94e3d6b0be4c1ad5a2218c6080c0db66621f397eb9cfd77dc" dependencies = [ "anyhow", "bytes", @@ -86,9 +86,9 @@ dependencies = [ [[package]] name = "fastly-macros" -version = "0.9.4" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32cf8d740210ace2fc3ec8910aee3def804b093e81fb991293ce83a159940099" +checksum = "368e73b8d3d46f0dc82f53aef6121a7e1b993cf5a274b62de5ca51d97deb0349" dependencies = [ "proc-macro2", "quote", @@ -97,9 +97,9 @@ dependencies = [ [[package]] name = "fastly-shared" -version = "0.9.4" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54a9c7b53bc63f8c1a1d195c7841bff2733d42982a4cdbed5a5d14bd6a17ef3d" +checksum = "770484ead4372ba9c8d29ab77a27769847733cfb6b8f3f5f9a04f6aab24362b9" dependencies = [ "bitflags", "http", @@ -108,9 +108,9 @@ dependencies = [ [[package]] name = "fastly-sys" -version = "0.9.4" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "564dc930a14b7b358a1c28fa8a32d9ac7eef55afb43d0c6ea138b9892b825804" +checksum = "35f1209e8a024f87cd6db4808ce74ae0c257b63aed5ac9d50888f95ecb116510" dependencies = [ "bitflags", "fastly-shared", @@ -322,9 +322,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.22" +version = "0.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea9e1b3cf1243ae005d9e74085d4d542f3125458f3a81af210d901dcd7411efd" +checksum = "59e399c068f43a5d116fedaf73b203fa4f9c519f17e2b34f63221d3792f81446" dependencies = [ "serde", "time-core", @@ -339,9 +339,9 @@ checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" [[package]] name = "time-macros" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "372950940a5f07bf38dbe211d7283c9e6d7327df53794992d293e534c733d09b" +checksum = "96ba15a897f3c86766b757e5ac7221554c6750054d74d5b28844fce5fb36a6c4" dependencies = [ "time-core", ] diff --git a/Cargo.toml b/Cargo.toml index 2ff81c8..53a6f0c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,4 @@ publish = false debug = 1 [dependencies] -fastly = "0.9.4" +fastly = "0.9.8" diff --git a/README.md b/README.md index b168c5b..7af5e65 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/fastly.toml b/fastly.toml index b337b1c..5ef0f71 100644 --- a/fastly.toml +++ b/fastly.toml @@ -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 = [""] diff --git a/src/main.rs b/src/main.rs index 65352a5..37c2106 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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}; @@ -36,12 +36,12 @@ fn main(req: Request) -> Result { 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. @@ -64,7 +64,7 @@ fn main(req: Request) -> Result { // 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. diff --git a/src/welcome-to-compute@edge.html b/src/welcome-to-compute.html similarity index 93% rename from src/welcome-to-compute@edge.html rename to src/welcome-to-compute.html index 7a3761b..cc18336 100644 --- a/src/welcome-to-compute@edge.html +++ b/src/welcome-to-compute.html @@ -7,7 +7,7 @@ name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> - Welcome to Compute@Edge + Welcome to Fastly Compute