default-target

Crates.iodefault-target
lib.rsdefault-target
version0.1.0
sourcesrc
created_at2021-07-16 11:09:37.890979
updated_at2021-07-16 11:09:37.890979
descriptionA command line tool to print the current default Clang/LLVM target triple.
homepagehttps://github.com/neocrym/default-target
repositoryhttps://github.com/neocrym/default-target
max_upload_size
id423502
size7,413
Neocrym Bot (neocrym-bot)

documentation

README

default-target

A command line tool to print the current default Clang/LLVM target triple.

The LLVM ecosystem names compiler targets as target triples, made up of three to five parameters describing the target system.

This crate is a small binary program that returns the default target triple for your current Rust installation. This program is useful if you want to write shell scripts or other simple programs that are aware of your Rust installation's default target.

You can find default-target's crate metadata on crates.io, documentation on docs.rs, and source code on GitHub.

Installation

Run this command in your shell to install default-target.

cargo install default-target

Usage

Once default-target has been installed in your path, you can run:

default-target

and it should return your target. Something like: x86_64-apple-darwin or x86_64-unknown-linux-gnu.

Commit count: 4

cargo fmt