summaryrefslogtreecommitdiff
path: root/mesonbuild/wrap/wrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/wrap/wrap.py')
-rw-r--r--mesonbuild/wrap/wrap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index 21a5c5d22..a5b4dc8ec 100644
--- a/mesonbuild/wrap/wrap.py
+++ b/mesonbuild/wrap/wrap.py
@@ -47,7 +47,7 @@ if T.TYPE_CHECKING:
import http.client
from typing_extensions import Literal
- Method = Literal['meson', 'cmake']
+ Method = Literal['meson', 'cmake', 'cargo']
try:
# Importing is just done to check if SSL exists, so all warnings
@@ -450,6 +450,7 @@ class Resolver:
methods_map: T.Dict[Method, str] = {
'meson': 'meson.build',
'cmake': 'CMakeLists.txt',
+ 'cargo': 'Cargo.toml',
}
# Check if this wrap forces a specific method, use meson otherwise.