rustc-to-go-target

[![crates.io](https://img.shields.io/crates/v/rustc-to-go-target.svg)][rustc-to-go-target] [![crates.io](https://img.shields.io/crates/d/rustc-to-go-target.svg)][rustc-to-go-target]

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

Usage

Add this to your Cargo.toml:

toml [dependencies] rustc-to-go-target = "0.1"

after that you can use it like this:

```rust extern crate rustctogo_target;

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

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.