---
title: service_version
summary: The version number for the Fastly service that is processing the current request.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.service_version/
---

**Kind:** Function  
**Module:** [compute_runtime](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/)  
**Package:** fastly 0.13.1  
**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/compute_runtime.rs#210

```rust
fn service_version() -> u64
```

The version number for the Fastly service that is processing the current request.

Equivalent to the "FASTLY_SERVICE_VERSION" environment variable and to [`req.vcl.version`](https://www.fastly.com/documentation/reference/vcl/variables/miscellaneous/req-vcl-version/)
in VCL.

**Returns**

`u64`
