MCPcopy Create free account
hub / github.com/daijro/camoufox / _update_rustup

Function _update_rustup

scripts/patch.py:196–203  ·  view source on GitHub ↗

Add rust targets for the given target

(target)

Source from the content-addressed store, hash-verified

194 with open(mozconfig_hash, 'w', encoding='utf-8') as f:
195 f.write(new_hash)
196
197
198def add_rustup(*targets):
199 """Add rust targets"""
200 for rust_target in targets:
201 run(f'~/.cargo/bin/rustup target add "{rust_target}"')
202
203
204def _update_rustup(target):
205 """Add rust targets for the given target"""
206 if target == "linux":

Callers 1

patch.pyFile · 0.85

Calls 1

add_rustupFunction · 0.85

Tested by

no test coverage detected