Deepfreeze essential parts of the encodings module. ### Description

This is a split off from #3582.

Deepfreeze essential parts of encodings module (encodings.\__init__, encodings.utf_8, and encodings.aliases), which is required during the Python bootstrap.

From 1c579acc950f6cacfe1c2ff045708fc864dea684 Mon Sep 17 00:00:00 2001
From: Hood Chatham <roberthoodchatham@gmail.com>
Date: Sun, 18 Sep 2022 17:44:03 -0700
Subject: [PATCH] Use patched instant

---
 src/rust/Cargo.toml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml
index 617167d04..b51c2d2f2 100644
--- a/src/rust/Cargo.toml
+++ b/src/rust/Cargo.toml
@@ -5,6 +5,9 @@ authors = ["The cryptography developers <cryptography-dev@python.org>"]
 edition = "2018"
 publish = false
 
+[patch.crates-io]
+instant = { path =  "../../instant" }
+
 [dependencies]
 lazy_static = "1"
 pyo3 = { version = "0.15.1" }
-- 
2.25.1


From 1c579acc950f6cacfe1c2ff045708fc864dea684 Mon Sep 17 00:00:00 2001
From: Hood Chatham <roberthoodchatham@gmail.com>
Date: Sun, 18 Sep 2022 17:44:03 -0700
Subject: [PATCH] Use patched instant

---
 src/rust/Cargo.toml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml
index 617167d04..b51c2d2f2 100644
--- a/src/rust/Cargo.toml
+++ b/src/rust/Cargo.toml
@@ -5,6 +5,9 @@ authors = ["The cryptography developers <cryptography-dev@python.org>"]
 edition = "2018"
 publish = false
 
+[patch.crates-io]
+instant = { path =  "../../instant" }
+
 [dependencies]
 lazy_static = "1"
 pyo3 = { version = "0.15.1" }
-- 
2.25.1

