We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cwd
cargo udeps ...
1 parent ee41c50 commit 29a181eCopy full SHA for 29a181e
onlinejudge_verify/languages/rust.py
@@ -88,6 +88,7 @@ def _list_dependencies_by_crate(path: pathlib.Path, *, basedir: pathlib.Path, ca
88
raise RuntimeError('`cargo-udeps` not in $PATH')
89
unused_deps = json.loads(subprocess.run(
90
['rustup', 'run', cargo_udeps_toolchain, 'cargo', 'udeps', '--output', 'json', '--manifest-path', main_package['manifest_path'], *_target_option(main_target)],
91
+ cwd=metadata['workspace_root'],
92
check=False,
93
stdout=PIPE,
94
).stdout.decode())['unused_deps'].values()
0 commit comments