Optimize TargetTriple: Use Cow<'static, str> (#1161)

instead of `CompactString` since `target_lexicon::{OperatingSystem,
Architecture, Environment}::into_str()` will return a `&'static str`
most of the time.

Also updated `SUPPORT.md`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-06-21 20:05:19 +10:00 committed by GitHub
parent abecd9ae14
commit 138112cd6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 13 deletions

View file

@ -30,7 +30,7 @@ once_cell = "1.18.0"
semver = { version = "1.0.17", features = ["serde"] }
serde = { version = "1.0.163", features = ["derive"] }
strum = "0.25.0"
target-lexicon = { version = "0.12.7", features = ["std"] }
target-lexicon = { version = "0.12.8", features = ["std"] }
tempfile = "3.5.0"
thiserror = "1.0.40"
# parking_lot for `tokio::sync::OnceCell::const_new`