Refactor some dependencies to allow jumping to async-std 1.9.0

There are some good stabilizations and other work in this release that I want.

Also, my Cargo.tomls have been too strict, need to start relaxing that
This commit is contained in:
R Tyler Croy 2021-03-03 11:01:00 -08:00
parent 60e0b82247
commit 4e9c851dd6
11 changed files with 889 additions and 33 deletions

899
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ name = "otto-agent"
path = "src/main.rs"
[dependencies]
async-std = { version = "~1.7", features = ["attributes"]}
async-std = { version = "1", features = ["attributes"]}
log = "~0.4.8"
otto-agent= { path = "../../crates/agent" }
pretty_env_logger = "~0.4.0"

View File

@ -3,7 +3,7 @@
*
* Most of the logic _should_ be contained within lib.rs and the surrounding modules
*/
use async_std::sync::channel;
use async_std::channel::bounded;
use std::fs::File;
use std::path::Path;
@ -71,7 +71,7 @@ async fn main() -> std::io::Result<()> {
);
std::env::set_current_dir(work_dir)?;
let (sender, receiver) = channel(MAX_CONTROL_MSGS);
let (sender, receiver) = bounded(MAX_CONTROL_MSGS);
match serde_json::from_reader::<File, Invocation>(file) {
Err(e) => {

View File

@ -5,7 +5,7 @@ authors = ["R. Tyler Croy <rtyler@brokenco.de>"]
edition = "2018"
[dependencies]
async-std = { version = "~1.7", features = ["attributes"]}
async-std = { version = "1", features = ["attributes"]}
log = "~0.4.8"
os_pipe = "~0.9.2"
otto-models = { path = "../../crates/models" }

View File

@ -2,7 +2,7 @@
* The control module handles all the agent<->step control messages
*/
use async_std::sync::Sender;
use async_std::channel::Sender;
use log::*;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

View File

@ -1,4 +1,4 @@
use async_std::sync::Receiver;
use async_std::channel::Receiver;
use log::*;
use otto_models::*;
use serde::{Deserialize, Serialize};

View File

@ -5,7 +5,7 @@ authors = ["R. Tyler Croy <rtyler@brokenco.de>"]
edition = "2018"
[dependencies]
async-std = { version = "~1.7", features = ["attributes"]}
async-std = { version = "1", features = ["attributes"]}
log = "~0.4.11"
os_pipe = "~0.9.2"
otto-agent = { path = "../../crates/agent" }

View File

@ -12,9 +12,8 @@ path = "src/lib.rs"
name = "otto-object-store"
path = "src/main.rs"
[dependencies]
async-std = { version = "~1.7", features = ["attributes"]}
async-std = { version = "1", features = ["attributes"]}
log = "~0.4.11"
pretty_env_logger = "~0.4.0"
tide = "~0.15.0"

View File

@ -9,7 +9,7 @@ name = "otto-parser"
path = "src/main.rs"
[dependencies]
async-std = { version = "1.6.5", features = ["attributes"]}
async-std = { version = "1", features = ["attributes"]}
log = "~0.4.11"
otto-models = { path = "../../crates/models" }
otto-parser = { path = "../../crates/parser" }

View File

@ -5,7 +5,7 @@ authors = ["R. Tyler Croy <rtyler@brokenco.de>"]
edition = "2018"
[dependencies]
async-std = { version = "~1.7", features = ["attributes"] }
async-std = { version = "1", features = ["attributes"] }
flate2 = "~1.0.18"
glob = "~0.3.0"
otto-agent = { path = "../../crates/agent" }

View File

@ -5,7 +5,7 @@ authors = ["R. Tyler Croy <rtyler@brokenco.de>"]
edition = "2018"
[dependencies]
async-std = { version = "~1.7", features = ["attributes"] }
async-std = { version = "1", features = ["attributes"] }
otto-agent = { path = "../../crates/agent" }
serde = {version = "~1.0.117", features = ["derive"]}
surf = { version = "~2.1.0", features = ["h1-client"]}