error[E0658]: async/await is unstable
On my system I get the following compilation errors:
error[E0658]: async fn is unstable
--> src/api/client.rs:28:5
|
28 | / pub async fn send_station_request(self, request: StationRequest) -> Vec<Station> {
29 | | let url = self.build_url(STATION_SEARCH, Some(&request.url_encode()));
30 | | debug!("Station request URL: {}", url);
31 | | let data = self.send_message(url).await.unwrap().0;
... |
37 | | stations
38 | | }
| |_____^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error[E0658]: async/await is unstable
--> src/api/client.rs:31:20
|
31 | let data = self.send_message(url).await.unwrap().0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error[E0658]: async fn is unstable
--> src/api/client.rs:40:5
|
40 | / pub async fn get_stations_by_identifiers(self, identifiers: Vec<StationIdentifier>) -> Vec<Station> {
41 | | let mut stations = Vec::new();
42 | |
43 | | for identifier in identifiers {
... |
54 | | stations
55 | | }
| |_____^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error[E0658]: async/await is unstable
--> src/api/client.rs:46:24
|
46 | let data = self.send_message(url).await.unwrap().0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error[E0658]: async fn is unstable
--> src/api/client.rs:57:5
|
57 | / pub async fn get_stream_url(self, station: Station) -> StationUrl {
58 | | let url = self.build_url(&format!("{}{}", PLAYABLE_STATION_URL, station.id), None);
59 | | debug!("Request playable URL: {}", url);
60 | | let data = self.send_message(url).await.unwrap().0;
... |
65 | | result[0].clone()
66 | | }
| |_____^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error[E0658]: async/await is unstable
--> src/api/client.rs:60:20
|
60 | let data = self.send_message(url).await.unwrap().0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error[E0658]: async fn is unstable
--> src/api/client.rs:69:5
|
69 | / async fn send_message(&self, url: Url) -> Result<(GString, usize), gio::Error> {
70 | | // Create SOUP message
71 | | let message = soup::Message::new("GET", &url.to_string()).unwrap();
72 | |
... |
78 | | data_input_stream.read_upto_async_future("", glib::PRIORITY_LOW).await
79 | | }
| |_____^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error[E0658]: async/await is unstable
--> src/api/client.rs:74:28
|
74 | let input_stream = self.session.send_async_future(&message).await.unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error[E0658]: async/await is unstable
--> src/api/client.rs:78:9
|
78 | data_input_stream.read_upto_async_future("", glib::PRIORITY_LOW).await
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
error: aborting due to 9 previous errors
For more information about this error, try `rustc --explain E0658`.
Don't know if this is caused by my system.