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

Missing feature flag for tokio in macros crate #66

Closed
IsaacTru opened this issue Jan 16, 2020 · 1 comment
Closed

Missing feature flag for tokio in macros crate #66

IsaacTru opened this issue Jan 16, 2020 · 1 comment
Labels

Comments

@IsaacTru
Copy link

When using the runtime-tokio and macros features, a compile time error is generated:

error[E0599]: no method named `threaded_scheduler` found for type `tokio::runtime::builder::Builder` in the current scope
  --> /home/isaac/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-macros-0.2.1/src/lib.rs:32:14
   |
32 |             .threaded_scheduler()
   |              ^^^^^^^^^^^^^^^^^^ method not found in `tokio::runtime::builder::Builder`

A work-around is to include the following dependency in Cargo.toml:

tokio = { version = "0.2.9", default-features = false, features = [ "rt-threaded" ] }
@mehcode mehcode added the bug label Jan 16, 2020
@mehcode
Copy link
Member

mehcode commented Jan 17, 2020

Fixed and released as v0.2.2

@mehcode mehcode closed this as completed Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants