You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2020/11/24 12:33:00 UTC

[jira] [Created] (ARROW-10710) [Rust] [Flight] Example server is broken after tokio upgrade

Andrew Lamb created ARROW-10710:
-----------------------------------

             Summary: [Rust] [Flight] Example server is broken after tokio upgrade
                 Key: ARROW-10710
                 URL: https://issues.apache.org/jira/browse/ARROW-10710
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Andrew Lamb


As pointed out by [~rdettai] on https://github.com/apache/arrow/pull/8697#issuecomment-732936572

Doing this:
{code}
cd rust/arrow-flight; cargo run --example server
{code}

results in the following compile error
{code}
error: The #[tokio::main] macro requires rt or rt-multi-thread.
   --> arrow-flight/examples/server.rs:121:1
    |
121 | #[tokio::main]
    | ^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

warning: unused import: `tonic::transport::Server`
  --> arrow-flight/examples/server.rs:21:5
   |
21 | use tonic::transport::Server;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `flight_service_server::FlightServiceServer`
  --> arrow-flight/examples/server.rs:25:43
   |
25 |     flight_service_server::FlightService, flight_service_server::FlightServiceServer,
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0601]: `main` function not found in crate `server`
   --> arrow-flight/examples/server.rs:18:1
    |
18  | / use std::pin::Pin;
19  | |
20  | | use futures::Stream;
21  | | use tonic::transport::Server;
...   |
130 | |     Ok(())
131 | | }
    | |_^ consider adding a `main` function to `arrow-flight/examples/server.rs`

error: aborting due to 2 previous errors; 2 warnings emitted

{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)