Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AghastComet opened this issue Mar 20, 2020 · 1 comment
Open

Comments

@AghastComet
Copy link

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.

@tdejager
Copy link

tdejager commented Apr 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants