Skip to content

Support custom crypto backends via rustls-no-provider #7059

Closed

Description

@theoparis

I'd like to integrate and test rustpython in another project utilizing https://github.com/ctz/graviola and rustls instead of aws-lc-rs. However currently rustpython hard codes aws-lc-rs in the Cargo.toml. Is this something that could be supported?

reqwest has a rustls-no-provider option where you are able to use graviola like this:

fn main() {
  rustls_graviola::default_provider().install_default().unwrap();
  // ... rest of main function
}

However I see that there are a few mentions of aws_lc_rs imports directly in the rustpython stdlib 🤔

See

rustls = { version = "0.23.36", default-features = false, features = ["std", "tls12", "aws_lc_rs"], optional = true }

Activity

  1. youknowone commented on Feb 9, 2026

    @youknowone
    Member

    Hi! There is no specific reason to stick on aws_lc_rs. That was selected as default because it is the recommendation of rustls team.
    Could you help us to patch ssl.rs not to use aws_lc_rs directly?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions