Skip to content

Default feature flags cause panic #855

@thomas-zahner

Description

@thomas-zahner

Using octocrab with the default feature flags leads to the following panic:

thread 'main' (1) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.23.36/src/crypto/mod.rs:249:14:

Could not automatically determine the process-level CryptoProvider from Rustls crate features.
Call CryptoProvider::install_default() before this point to select a provider manually, or make sure exactly one of the 'aws-lc-rs' and 'ring' features is enabled.
See the documentation of the CryptoProvider type for more information.

See: lycheeverse/lychee#2024

We have fixed this by explicitly removing the rustls-ring feature flag in lycheeverse/lychee#2036

Not entirely sure if this would be considered a bug. But I do feel like this shouldn't happen with the default feature flags. Feel free to close this if you think this is no bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions