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

Associated type Output not found #38

Open
lidongze0629 opened this issue Oct 27, 2021 · 1 comment
Open

Associated type Output not found #38

lidongze0629 opened this issue Oct 27, 2021 · 1 comment

Comments

@lidongze0629
Copy link

Compile failure with generated code.

cargo.toml

[dependencies]
grpcio = "0.9.1"

[build-dependencies]
protoc-grpcio = "3.0.0"

pub fn spawn<F>(&self, f: F) where F: ::futures::Future<Output = ()> + Send + 'static {
    self.client.spawn(f)
}

截屏2021-10-27 下午8 22 40

@johnnymccloud
Copy link

Hello,

I have the same issue now, tried using different futures versions, now having Cargo.toml as:

[dependencies]
futures = "0.1.16"
grpcio = { version = "0.13", features = ["openssl"] }
protobuf = "~2"

[build-dependencies]
futures = "0.1.16"
protoc-grpcio = "1.0.2"
protobuf-parse = "3.2.0"

Manually changing where F: ::futures::Future<Item = (), Error = ()> to where F: std::future::Future<Output = ()> fixed the issue. Can anyone have a look into that? Should I change some version of some crates?

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