rustc-to-go-target

Crates.iorustc-to-go-target
lib.rsrustc-to-go-target
version0.1.0
sourcesrc
created_at2023-02-04 23:25:32.506378
updated_at2023-02-04 23:25:32.506378
descriptionConvert compilation targets supported by rustc (aka target triplets) into targets supported by Go.
homepage
repositoryhttps://github.com/JohnScience/rustc-to-go-target
max_upload_size
id776709
size22,603
Dmitrii - Demenev (JohnScience)

documentation

https://docs.rs/rustc-to-go-target

README

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

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.
Commit count: 2

cargo fmt