Opt-in to the rustimport import hook
masterTo prevent rustimport from interfering with other Python imports, it uses an "opt-in" system. You must signal that a file or crate is intended for rustimport using one of the following methods:
- For single
.rsfiles: Add a# rustimportcomment to the first line of the file. - For Rust crates:
- Create a
.rustimportfile in the crate's root folder (next toCargo.toml). - OR add a
# rustimportcomment to the first line ofCargo.toml.
- Create a