You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Community-maintained package to support using [Rust](https://www.rust-lang.org/) inside [Vercel Functions](https://vercel.com/docs/serverless-functions/introduction) as a [Runtime](https://vercel.com/docs/runtimes).
10
19
20
+
</div>
21
+
11
22
## Legacy Runtime
12
23
13
24
The below documentation is for the `vercel_runtime` crate (in beta). If you are looking for the legacy runtime instructions using `vercel_lambda` see [tree/a9495a0](https://github.com/vercel-community/rust/tree/a9495a0f0d882a36ea165f1629fcc79c30bc3108).
@@ -59,7 +70,8 @@ Finally we need a `Cargo.toml` file at the root of your repository.
59
70
# --snip--
60
71
61
72
[dependencies]
62
-
# --snip--
73
+
tokio = { version = "1", features = ["macros"] }
74
+
serde_json = { version = "1", features = ["raw_value"] }
@@ -99,13 +110,12 @@ During local development with `vercel dev`, ensure `rust` and `cargo` are alread
99
110
100
111
## Contributing
101
112
102
-
Since this project contains both Rust and Node.js code, you need to install the relevant dependencies. If you're only working on the JavaScript side, you only need to install those dependencies (and vice-versa).
113
+
Since this project contains both Rust and Node.js code, you need to install the relevant dependencies. If you're only working on the TypeScript side, you only need to install those dependencies (and vice-versa).
103
114
104
115
```shell
105
116
# install node dependencies
106
117
pnpm install
107
118
108
-
109
119
# install cargo dependencies
110
120
cargo fetch
111
121
```
@@ -121,6 +131,13 @@ graph TD
121
131
122
132
## FAQ
123
133
134
+
<details>
135
+
<summary>How to specify toolchain overrides</summary>
136
+
137
+
An example on how this can be achieved is using a `rust-toolchain` file adjacent to your `Cargo.toml`. Please refer to [Rust Documentation](https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file) for more details.
0 commit comments