Skip to content
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

Use CStr literals everywhere possible #1472

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Jun 30, 2024

  1. Bump MSRV to 1.77

    This is required for c"" CStr literals.
    linkmauve committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    2eac2b2 View commit details
    Browse the repository at this point in the history
  2. utils: Make SealedString take a &CStr instead of a CString

    It only uses it to pass it to a syscall, so it doesn’t need ownership of
    it.
    linkmauve committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    e3b6eb1 View commit details
    Browse the repository at this point in the history
  3. backends: Use CStr literals everywhere possible

    This addition to the 2021 edition makes it possible to generate a &CStr
    at compile-time, with no need for unwrap()/expect() or unsafe, making it
    much more ergonomic to pass to C APIs.
    linkmauve committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    fc12195 View commit details
    Browse the repository at this point in the history