Skip to content

Upgrade to rust 2024 edition - #34

Merged
fadeevab merged 3 commits into
fadeevab:mainfrom
dvaembit:rust-2024
Jul 25, 2026
Merged

Upgrade to rust 2024 edition#34
fadeevab merged 3 commits into
fadeevab:mainfrom
dvaembit:rust-2024

Conversation

@dvaembit

Copy link
Copy Markdown
Contributor

This bumps the rust edition to 2024, which includes:

  • Requiring rust 1.85+ (released Feb. 20, 2025)
  • Avoiding the new keyword gen re: the rand crate.
  • Using the newer docsrs cfg check instead of docs_rs (doc link)

@fadeevab

Copy link
Copy Markdown
Owner

Wow, somebody still uses this crate (the first PR since 2024) 😄

Anyway. We also have to bump the version to 0.5.0 in Cargo.toml.

@dvaembit

Copy link
Copy Markdown
Contributor Author

Wow, somebody still uses this crate (the first PR since 2024) 😄

No time like the present! 😄

I am in the process of evaluating it. The encryption scheme seems nicely defined. However I was curious whether it has been extensively battle tested. It doesn't have many dependents listed on crates.io but that seems like an unreliable indicator. Do you still use this yourself for anything production grade?

Anyway. We also have to bump the version to 0.5.0 in Cargo.toml.

I just pushed this change.

@fadeevab

Copy link
Copy Markdown
Owner

This crate is usually used by binaries, which are not usually published on crates.io, so I guess it doesn't have many dependents.

I built it for a project that eventually didn't take off, so I stopped actively developing it. That said, I think cocoon is well-defined, and I even fixed a medium-severity CVE a few years ago.

I guess what I don't know without feedback is whether the API has any inconveniences. You might also want to use an Argon2-based KDF, which could be added to the library.

You may want to start with MiniCocoon.

And I'd love to hear any feedback after accepting or rejecting the library!

P.S.: I will try to publish new version today.

@fadeevab
fadeevab merged commit 342a67d into fadeevab:main Jul 25, 2026
3 checks passed
@fadeevab

Copy link
Copy Markdown
Owner

@dvaembit Published v0.5.0. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants