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

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

#156 in Operating systems

Download history 3/week @ 2024-01-06 28/week @ 2024-01-13 43/week @ 2024-01-20 24/week @ 2024-01-27 7/week @ 2024-02-10 21/week @ 2024-02-17 43/week @ 2024-02-24 20/week @ 2024-03-02 52/week @ 2024-03-09 27/week @ 2024-03-16 25/week @ 2024-03-23 49/week @ 2024-03-30 171/week @ 2024-04-06 32/week @ 2024-04-13 42/week @ 2024-04-20

296 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