# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = 'Rust'
version = '1.32.0'

homepage = 'https://www.rust-lang.org'
description = """Rust is a systems programming language that runs blazingly fast, prevents segfaults,
 and guarantees thread safety."""

toolchain = SYSTEM

source_urls = ['https://static.rust-lang.org/dist/']
sources = ['rustc-%(version)s-src.tar.gz']

builddependencies = [
    ('Py', '2.7'),
    ('CMake', '3.13.1'),
    ('binutils', '2.27'),
]

sanity_check_paths = {
    'files': ['bin/rustc', 'bin/rustdoc'],
    'dirs': ['share/doc', 'share/man', 'lib/rustlib'],
}

moduleclass = 'lang'
