From: Simon Johnsson <simon.johnsson@canonical.com>
Date: Mon, 17 Aug 2026 20:04:49 +0800
Subject: Force vendored sources for maturin

Maturin attempts to fetch dependencies online, but will as such fail
to build. This patch updates the configuration to force vendored
sources.
---
 .cargo/config.toml | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 .cargo/config.toml

diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000..cf6c857
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,9 @@
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "rust-vendor"
+
+[net]
+offline = true
+
