#parser #tuple #target #string-parser #autoconf #forms #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

#2 in #sub

Download history 13/week @ 2024-06-16 18/week @ 2024-06-23 3/week @ 2024-06-30 6/week @ 2024-07-07 17/week @ 2024-07-14 23/week @ 2024-07-21 73/week @ 2024-07-28 25/week @ 2024-08-04 13/week @ 2024-08-11 7/week @ 2024-08-18 22/week @ 2024-08-25 17/week @ 2024-09-01 15/week @ 2024-09-08 10/week @ 2024-09-15 31/week @ 2024-09-22 144/week @ 2024-09-29

202 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