rcgen breaking changes

cargo

5 curated breaking changes across major versions of rcgen. Use this as a migration checklist before bumping dependencies.

5
changes
Breaking changes by transition
  • unknown \u2192 v0.13.0breaking

    The API used to create/issue key pairs, certificates, certificate signing requests (CSRs), and certificate revocation lists (CRLs) has been restructured to emphasize consistency and avoid common errors with serialization. For each concrete type (cert, CSR, CRL) the process is now the same: 1. generate or load a key pair and any information about issuers required. 2. create parameters, customizing as appropriate. 3. call a generation `fn` on the parameters, providing subject key pair and issuer i

  • unknown \u2192 v0.13.0breaking

    Throughout the API DER inputs are now represented using types from the Rustls `rustls-pki-types` crate, e.g. `PrivateKeyDer`, `CertificateDer`, `CertificateSigningRequestDer`. Contributed by [Tudyx](https://github.com/tudyx).

  • unknown \u2192 v0.13.0breaking

    String types used in `SanType` and `DnValue` enums for non-UTF8 string types have been replaced with more specific types that prevent representation of illegal values. E.g. `Ia5String`, `BmpString`, `PrintableString`, `TeletexString`, and `UniversalString`. Contributed by [Tudyx](https://github.com/tudyx).

  • unknown \u2192 v0.13.0breaking

    Method names starting with `get_` have been renamed to match Rust convention:

  • unknown \u2192 v0.13.0breaking

    `CertificateRevocationList::get_params()` -> `params()`

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/rcgen