#tuple #target #string-parser #autoconf #forms #sub #config

bin+lib target-tuples

A library to parse target tuples of the form <arch>-<vendor>-<system>, similar to those used by autoconf

15 releases

0.5.13 Oct 1, 2023
0.5.12 Jul 6, 2023
0.5.11 Dec 1, 2022
0.5.10 Nov 21, 2022
0.1.0 Dec 29, 2020

#189 in Operating systems

25 downloads per month
Used in 5 crates (3 directly)

Apache-2.0 AND MIT

77KB
1.5K SLoC

Rust 1.5K SLoC // 0.0% comments M4 193 SLoC // 0.0% comments Shell 4 SLoC

Contains (autotools obfuscated code, 125KB) configure, (obscure autoconf code, 1KB) configure.ac

rust target-tuples

Implements parsing of target tuples. Additionally provides a small program that implements config.sub.

Copyright (C) 2020 Connor Horman

This program is dual-licensed under the terms of the MIT and Apache v2 licenses. See and for details.

Persuant to the Apache v2 License, if you contribute to this software, you agree to allow the copyright holder to dual-license those contributions as above.

Building

This library and it's associated programs can be built using cargo.

Additionally, it can be configured and built by running the configure script present in this repo with a Bourne-compatible shell. The standard options are available for the configure scripts.

Semver Policy

The MSRV for rust-target-tuples is rust 1.38. Increases to this value represents a semver major change.

This library does not guarantee the output of any of it's string parsing methods, or the canonical name of any component. Changes to both parsing and canonicalization may happen in a minor release. Additional component values may also be added in a minor release.

No runtime deps