-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
when use tokio::spawn i meet problem anyone can help #574
Comments
I think this requires you to enable the |
How could i do this? sor, i am new to rust. |
In your Cargo.toml, you can enable feature flags on a dependency by doing something like:
|
Be aware that the |
I don't think the parser lock is even needed here, you could just have an Arc of the parser or you could just not store it and execute gen_parser inline, you won't even need the sync feature |
Unfortunately many parsers (like |
error:
future cannot be sent between threads safely
within
impl chumsky::Parser<char, Statement, Error = Simple<char>>
, the traitSend
is not implemented forRc<recursive::OnceCell<Box<(dyn chumsky::Parser<char, Expr, Error = Simple<char>> + 'static)>>>
The text was updated successfully, but these errors were encountered: