rust-cpython
rust-cpython copied to clipboard
Example library from README doesn't seem to work with crate version
The example library called rust2py with the function sum_as_string from the README file doesn't seem to work when toml file is given a version number, both versions 0.4.1 and 0.4.0, however when I cloned this repository and pointed the toml file at the directory, it worked fine. The error I was getting was
no rules expected the token
|
on the line py_module_initializer!(rust2py, |py, m| {
pointing to the first "|".
I am on Linux Mint with rust version 1.42.0.
You have to check the example form the 0.4
tag, as the master version has been updated