Skip to content

Commit

Permalink
Resolve RUSTSEC-2020-0071. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
grtwje authored Oct 16, 2022
1 parent 2e2dfda commit f0054e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ name = "se_ms_api"
path = "src/se_ms_api.rs"

[dependencies]
chrono = "0.4"
reqwest = { version = "0.11", features = ["json", "blocking"] }
serde = { version = "1", features = ["derive"] }
lazy_static = "1.4"

[dependencies.chrono]
version = "0.4"
default-features = false
features = ["clock"]
7 changes: 4 additions & 3 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ allow = [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"Unicode-DFS-2016",
#"Apache-2.0 WITH LLVM-exception",
]
# List of explicitly disallowed licenses
Expand Down Expand Up @@ -199,8 +200,8 @@ allow-git = []

[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
github = [""]
#github = [""]
# 1 or more gitlab.com organizations to allow git sources for
gitlab = [""]
#gitlab = [""]
# 1 or more bitbucket.org organizations to allow git sources for
bitbucket = [""]
#bitbucket = [""]
2 changes: 1 addition & 1 deletion tests/integration_reqs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ fn site_overview_integration_test() {
panic!("Unexpected value.");
}

assert!(r.overview.current_power.power > 0.0);
assert!(r.overview.current_power.power >= 0.0);
assert_eq!(r.overview.measured_by, "INVERTER".to_string());
}
Err(e) => {
Expand Down

0 comments on commit f0054e7

Please sign in to comment.