-
Notifications
You must be signed in to change notification settings - Fork 693
feat(rust-ctutils): add rust-ctutils component #18472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Autumn Nash (WithEnoughCoffee)
wants to merge
1
commit into
4.0
Choose a base branch
from
fix/rust-ctutils-uv-buildreq
base: 4.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| [components.rust-ctutils] | ||
| # New component: rust-ctutils does not exist in AZL. It was first packaged in | ||
| # Fedora after AZL's distro-default snapshot date (2026-02-24), so no commit | ||
| # exists at that snapshot and an explicit upstream-commit pin (Fedora f43 | ||
| # HEAD, version 0.4.2) is required. Needed transitively by rust-digest's | ||
| # "mac" feature subpackage (crate(ctutils/default) >= 0.4.0, < 0.5.0), which | ||
| # is required by rust-hmac 0.13.0 as part of the uv crate-alignment cascade. | ||
| spec = { type = "upstream", upstream-distro = { name = "fedora", version = "43" }, upstream-commit = "da9d15459406cc056c9457bafa1779d8a8adaa6e" } | ||
|
|
||
| # proptest is a %check-only (dev-)dependency (crate(proptest/default) >= | ||
| # 1.11.0, < 2.0.0). The bump to 1.11.0 lands separately in #18405, which is | ||
| # not yet tagged/published in koji. Koji's scratch-build gate can never | ||
| # resolve a same-PR interdependent new-package BuildRequires, so disable | ||
| # %check to drop the dependency entirely; the library itself does not need | ||
| # proptest to build. | ||
| [components.rust-ctutils.build] | ||
| without = ["check"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Managed by azldev component update. Do not edit manually. | ||
| version = 1 | ||
| import-commit = 'da9d15459406cc056c9457bafa1779d8a8adaa6e' | ||
| upstream-commit = 'da9d15459406cc056c9457bafa1779d8a8adaa6e' | ||
| input-fingerprint = 'sha256:513a4a7408ab53ce3e83dd5628ccab004db5b1d9d7d8b04a666014cf27fad7d2' | ||
| resolution-input-hash = 'sha256:8e7fd0e08340a0d08aadd80d546b601c72692790a4788891f1a979eb30429f12' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Macros file automatically generated by azldev. | ||
| # Do not edit manually; changes will be overwritten. | ||
| %_without_check 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| ## START: Set by rpmautospec | ||
| ## (rpmautospec version 0.8.3) | ||
| ## RPMAUTOSPEC: autorelease, autochangelog | ||
| %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: | ||
| release_number = 2; | ||
| base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); | ||
| print(release_number + base_release_number - 1); | ||
| }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} | ||
| ## END: Set by rpmautospec | ||
|
|
||
| # This spec file has been modified by azldev to include build configuration overlays. | ||
| # Do not edit manually; changes may be overwritten. | ||
|
|
||
| # All Azure Linux specs with overlays include this macro file, irrespective of whether new macros have been added. | ||
| %{load:%{_sourcedir}/rust-ctutils.azl.macros} | ||
|
|
||
| # Generated by rust2rpm 28 | ||
| %bcond check 1 | ||
| %global debug_package %{nil} | ||
|
|
||
| %global crate ctutils | ||
|
|
||
| Name: rust-ctutils | ||
| Version: 0.4.2 | ||
| Release: %autorelease | ||
| Summary: Constant-time utility library with selection and equality testing support | ||
|
|
||
| License: Apache-2.0 OR MIT | ||
| URL: https://crates.io/crates/ctutils | ||
| Source: %{crates_source} | ||
| Source9999: rust-ctutils.azl.macros | ||
|
|
||
| BuildRequires: cargo-rpm-macros >= 24 | ||
|
|
||
| %global _description %{expand: | ||
| Constant-time utility library with selection and equality testing | ||
| support targeting cryptographic applications. Supports `const fn` where | ||
| appropriate. Built on the `cmov` crate which provides architecture- | ||
| specific predication intrinsics. Heavily inspired by the `subtle` crate.} | ||
|
|
||
| %description %{_description} | ||
|
|
||
| %package devel | ||
| Summary: %{summary} | ||
| BuildArch: noarch | ||
|
|
||
| %description devel %{_description} | ||
|
|
||
| This package contains library source intended for building other packages which | ||
| use the "%{crate}" crate. | ||
|
|
||
| %files devel | ||
| %license %{crate_instdir}/LICENSE-APACHE | ||
| %license %{crate_instdir}/LICENSE-MIT | ||
| %doc %{crate_instdir}/CHANGELOG.md | ||
| %doc %{crate_instdir}/README.md | ||
| %{crate_instdir}/ | ||
|
|
||
| %package -n %{name}+default-devel | ||
| Summary: %{summary} | ||
| BuildArch: noarch | ||
|
|
||
| %description -n %{name}+default-devel %{_description} | ||
|
|
||
| This package contains library source intended for building other packages which | ||
| use the "default" feature of the "%{crate}" crate. | ||
|
|
||
| %files -n %{name}+default-devel | ||
| %ghost %{crate_instdir}/Cargo.toml | ||
|
|
||
| %package -n %{name}+alloc-devel | ||
| Summary: %{summary} | ||
| BuildArch: noarch | ||
|
|
||
| %description -n %{name}+alloc-devel %{_description} | ||
|
|
||
| This package contains library source intended for building other packages which | ||
| use the "alloc" feature of the "%{crate}" crate. | ||
|
|
||
| %files -n %{name}+alloc-devel | ||
| %ghost %{crate_instdir}/Cargo.toml | ||
|
|
||
| %package -n %{name}+subtle-devel | ||
| Summary: %{summary} | ||
| BuildArch: noarch | ||
|
|
||
| %description -n %{name}+subtle-devel %{_description} | ||
|
|
||
| This package contains library source intended for building other packages which | ||
| use the "subtle" feature of the "%{crate}" crate. | ||
|
|
||
| %files -n %{name}+subtle-devel | ||
| %ghost %{crate_instdir}/Cargo.toml | ||
|
|
||
| %prep | ||
| %autosetup -n %{crate}-%{version} -p1 | ||
| %cargo_prep | ||
|
|
||
| %generate_buildrequires | ||
| %cargo_generate_buildrequires | ||
|
|
||
| %build | ||
| %cargo_build | ||
|
|
||
| %install | ||
| %cargo_install | ||
|
|
||
| %if %{with check} | ||
| %check | ||
| %cargo_test | ||
| %endif | ||
|
|
||
| %changelog | ||
| ## START: Generated by rpmautospec | ||
| * Mon Aug 17 2026 Autumn Nash <autumnnash@microsoft.com> - 0.4.2-2 | ||
| - feat(rust-ctutils): add rust-ctutils component | ||
|
|
||
| * Wed Apr 29 2026 Fabio Valentini <decathorpe@gmail.com> - 0.4.2-1 | ||
| - Initial import (#2445639) | ||
| ## END: Generated by rpmautospec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| SHA512 (ctutils-0.4.2.crate) = e2798505bd16199ee42c49e1c8d6373ebad66ba51c28b7e3146a6adf2f796ea31b248e3fbf0bd132175770f3018b8e33702f0b3a73e70eb424f398b889a8f366 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.