rustc-to-go-target 0.1.0

Convert compilation targets supported by rustc (aka target triplets) into targets supported by Go.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 22.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • JohnScience/rustc-to-go-target
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JohnScience

rustc-to-go-target

crates.io crates.io

Library for conversion of targets supported by rustc (aka target triplets) to targets supported by go.

Usage

Add this to your Cargo.toml:

[dependencies]

rustc-to-go-target = "0.1"

after that you can use it like this:

extern crate rustc_to_go_target;

fn main() {
    assert_eq!(rustc_to_go_target::convert("aarch64-apple-darwin"), "darwin/arm64");
    assert_eq!(rustc_to_go_target::convert("x86_64-unknown-freebsd"), "freebsd/amd64");
}

License