Skip to content

A build-dependency to download a tarball of the Rust source code associated with the current version of rustc.

Notifications You must be signed in to change notification settings

sondrele/rust-src

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-src

Build Status

A build-dependency to download a tarball of the Rust source code associated with the current version of rustc. Makes it easier to compile many of Rust's different crates and add them as dependencies to a project where the target triple is not natively supported by rustc.

Add as a build-dependency in Cargo.toml

build = "build.rs"

[build-dependencies.rust_src]
git = "https://github.com/sondrele/rust-src.git"

And download the rust source code in the build script, here build.rs

extern crate rust_src;

fn main() {
    rust_src::fetch();
}

About

A build-dependency to download a tarball of the Rust source code associated with the current version of rustc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages