0

If I have a project like this:

project /
  __init__.py
src /
  lib.rs
Cargo.toml
...

In the python part (__init__.py), I have to import rust code via:

from .project import *

Is there a way to change the name of the submodule used or is there a different way to import the rust code?

An example I found is the python cryptography library which imports rust from a specific path.

Middledot
  • 82
  • 1
  • 7

0 Answers0