Skip to content

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

@theoparis

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 }

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