Add rust targets for the given target
(target)
| 194 | with open(mozconfig_hash, 'w', encoding='utf-8') as f: |
| 195 | f.write(new_hash) |
| 196 | |
| 197 | |
| 198 | def 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 | |
| 204 | def _update_rustup(target): |
| 205 | """Add rust targets for the given target""" |
| 206 | if target == "linux": |