-
Notifications
You must be signed in to change notification settings - Fork 13
Update crates edition and clippy #28
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
base: master
Are you sure you want to change the base?
Update crates edition and clippy #28
Conversation
Updated crates to the latest version. Modified the base64 code to match the new version.
Applied clippy fixes where sugested.
- Synced code between all examples so it can be compared better. - Made all example runnable by requesting a token and let them be configured via env variables.
- Update the Dockerfile to use the stable version of rust instead of a fixed version. - Use `apk --no-cache` instead of running `apk update` - Added an `EXAMPLE` build-arg to build a different example instead of the default `otp` example. - Some other small changes Also added a static build Dockerfile. This can build a static version of the `otp` examples and can be extracted and used on almost any Linux based system, and it is a nice test.
Add a GitHub actions workflow to run checks and build all the examples to validate if at least building the code works.
|
Also, to see a GitHub Actions run, you can check my fork: https://github.com/BlackDex/yubico-rs/actions/runs/8544333651 |
|
@pierre-l any chance for a new release including this PR? |
|
@BlackDex I don't think I even have a crates.io account :/ @wisespace-io FYI |
|
we would also be very interested in seeing this merged :) thanks for the work friendly reminder @wisespace-io |
|
I tested this with the latest nightly and all the deps updated to the latest version and it still works just fine. |
|
Friendly request to @wisespace-io / @flavio-greenfact |
* Upgrade to `tokio` 1.44, `rand` 0.9 * Renamed to yubico_ng and published crate * Made edition 2024 compatible * Added several clippy/rust lints and fixed those * Fixed a panic if the `YK_API_HOST` was invalid * Use only the main api server, the others are deprecated * Run cargo fmt * Updated GHA to use hashes and run/fix zizmor Signed-off-by: BlackDex <[email protected]>
Signed-off-by: BlackDex <[email protected]>
|
For everyone who wants to use these changes and more, i have created a new crate very creatively called I have updated it to the latest crates currently available and made it Edition 2024 compatible including some clippy fixes and fixed a panic. |
|
thanks for forking :D |
General
Updated several aspects this crate.
Update crates
Updated crates to the latest version.
Modified the base64 code to match the new version.
Apply clippy fixes
Applied clippy fixes where sugested.
Updated examples
configured via env variables.
Update Dockerfile and Readme
apk --no-cacheinstead of runningapk updateEXAMPLEbuild-arg to build a different example instead ofthe default
otpexample.Also added a static build Dockerfile. This can build a static version of
the
otpexamples and can be extracted and used on almost any Linuxbased system, and it is a nice test.
Add GitHub Actions Workflow
Add a GitHub actions workflow to run checks and build all the examples
to validate if at least building the code works.