aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/cargo/manifest.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/cargo/manifest.py')
-rw-r--r--mesonbuild/cargo/manifest.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/mesonbuild/cargo/manifest.py b/mesonbuild/cargo/manifest.py
index e6192d0..183d91e 100644
--- a/mesonbuild/cargo/manifest.py
+++ b/mesonbuild/cargo/manifest.py
@@ -225,3 +225,20 @@ class VirtualManifest(TypedDict):
"""
workspace: Workspace
+
+class CargoLockPackage(TypedDict, total=False):
+
+ """A description of a package in the Cargo.lock file format."""
+
+ name: str
+ version: str
+ source: str
+ checksum: str
+
+
+class CargoLock(TypedDict, total=False):
+
+ """A description of the Cargo.lock file format."""
+
+ version: str
+ package: T.List[CargoLockPackage]