Prepare for splitting things into separate packages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Move everything into a sprinklers_rs package and create cargo workspace
This commit is contained in:
parent
2eb64bbdc0
commit
174d69fbcc
38
Cargo.toml
38
Cargo.toml
@ -1,35 +1,5 @@
|
||||
[package]
|
||||
name = "sprinklers_rs"
|
||||
version = "0.1.0"
|
||||
authors = ["Alex Mikhalev <alexmikhalevalex@gmail.com>"]
|
||||
edition = "2018"
|
||||
[workspace]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
rusqlite = "0.24.0"
|
||||
color-eyre = "0.5.1"
|
||||
eyre = "0.6.0"
|
||||
thiserror = "1.0.20"
|
||||
tokio = { version = "0.2.22", features = ["rt-core", "time", "stream", "sync", "signal", "macros", "test-util"] }
|
||||
tracing = { version = "0.1.19", features = ["log"] }
|
||||
tracing-futures = "0.2.4"
|
||||
pin-project = "0.4.23"
|
||||
im = "15.0.0"
|
||||
chrono = { version = "0.4.15" }
|
||||
assert_matches = "1.3.0"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
serde_json = "1.0.57"
|
||||
actix = { version = "0.10.0", default-features = false }
|
||||
actix-rt = "1.1.1"
|
||||
futures-util = { version = "0.3.5", default-features = false, features = ["std", "async-await", "sink"] }
|
||||
num-traits = "0.2.12"
|
||||
num-derive = "0.3.2"
|
||||
|
||||
[dependencies.rumqttc]
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies.tracing-subscriber]
|
||||
version = "0.2.11"
|
||||
default-features = false
|
||||
features = ["registry", "fmt", "env-filter", "ansi"]
|
||||
members = [
|
||||
"sprinklers_rs"
|
||||
]
|
35
sprinklers_rs/Cargo.toml
Normal file
35
sprinklers_rs/Cargo.toml
Normal file
@ -0,0 +1,35 @@
|
||||
[package]
|
||||
name = "sprinklers_rs"
|
||||
version = "0.1.0"
|
||||
authors = ["Alex Mikhalev <alexmikhalevalex@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
rusqlite = "0.24.0"
|
||||
color-eyre = "0.5.1"
|
||||
eyre = "0.6.0"
|
||||
thiserror = "1.0.20"
|
||||
tokio = { version = "0.2.22", features = ["rt-core", "time", "stream", "sync", "signal", "macros", "test-util"] }
|
||||
tracing = { version = "0.1.19", features = ["log"] }
|
||||
tracing-futures = "0.2.4"
|
||||
pin-project = "0.4.23"
|
||||
im = "15.0.0"
|
||||
chrono = { version = "0.4.15" }
|
||||
assert_matches = "1.3.0"
|
||||
serde = { version = "1.0.116", features = ["derive"] }
|
||||
serde_json = "1.0.57"
|
||||
actix = { version = "0.10.0", default-features = false }
|
||||
actix-rt = "1.1.1"
|
||||
futures-util = { version = "0.3.5", default-features = false, features = ["std", "async-await", "sink"] }
|
||||
num-traits = "0.2.12"
|
||||
num-derive = "0.3.2"
|
||||
|
||||
[dependencies.rumqttc]
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies.tracing-subscriber]
|
||||
version = "0.2.11"
|
||||
default-features = false
|
||||
features = ["registry", "fmt", "env-filter", "ansi"]
|
@ -689,9 +689,10 @@ mod test {
|
||||
runner.update_programs(programs).await.unwrap();
|
||||
|
||||
// First try a non-existant program id
|
||||
runner.run_program_id(3).await.unwrap();
|
||||
yield_now().await;
|
||||
assert_matches!(prog_events.try_recv(), Err(broadcast::TryRecvError::Empty));
|
||||
assert_matches!(
|
||||
runner.run_program_id(3).await,
|
||||
Err(ProgramRunnerError::InvalidProgramId(3))
|
||||
);
|
||||
|
||||
runner.run_program_id(1).await.unwrap();
|
||||
yield_now().await;
|
Loading…
x
Reference in New Issue
Block a user