rust-cpython icon indicating copy to clipboard operation
rust-cpython copied to clipboard

Example library from README doesn't seem to work with crate version

Open AghastComet opened this issue 4 years ago • 1 comments

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.

AghastComet avatar Mar 20 '20 23:03 AghastComet

You have to check the example form the 0.4 tag, as the master version has been updated

tdejager avatar Apr 02 '20 08:04 tdejager