Created
May 10, 2024 01:19
-
-
Save zachlewis/52b3289236e558b98137d55903d77843 to your computer and use it in GitHub Desktop.
rust rez package.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = 'rust' | |
version = '1.78.0' | |
description = 'Rust is an interpreted, interactive, object-oriented programming language' | |
help = "https://www.rust-lang.org" | |
@early() | |
def uuid(): | |
import uuid | |
return str(uuid.uuid5(uuid.NAMESPACE_DNS, name)) | |
@early() | |
def variants(): | |
import rez.package_py_utils, platform | |
requires = ['platform-%s' % ('osx' if 'darwin' in platform.system().lower() else platform.system().lower()), "arch-**"] | |
return [rez.package_py_utils.expand_requires(*requires)] | |
tools = [ | |
'cargo', | |
'cargo-clippy', | |
'cargo-fmt', | |
'cargo-miri', | |
'clippy-driver', | |
'rls', | |
'rustc', | |
'rustdoc', | |
'rustfmt', | |
'rust-gdb', | |
'rust-gdbgui', | |
'rust-lldb', | |
] | |
def pre_build_commands(): | |
env.RUSTUP_HOME = build.install_path | |
env.CARGO_HOME = build.install_path | |
build_command = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y" | |
def commands(): | |
env.PATH.prepend('{root}/bin') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment