metadata: parse read-manifest directly
This commit is contained in:
parent
f1e1cd58a6
commit
7b93f1a01a
1 changed files with 1 additions and 4 deletions
|
@ -381,14 +381,11 @@ class Metadata:
|
|||
|
||||
@staticmethod
|
||||
def manifest(path, check=True):
|
||||
manifest = {}
|
||||
output = subprocess.run(
|
||||
["cargo", "read-manifest", f"--manifest-path={path}"],
|
||||
check=check, capture_output=True
|
||||
)
|
||||
if not output.returncode:
|
||||
manifest = json.loads(output.stdout)
|
||||
return manifest
|
||||
return json.loads(output.stdout)
|
||||
|
||||
@staticmethod
|
||||
def metadata(path, deps=False):
|
||||
|
|
Loading…
Reference in a new issue