Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
i10416 committed Dec 28, 2023
1 parent 1d962a3 commit b71087e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id-token: 'write'
steps:
- name: checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup cache
Expand Down
11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "firebase-messaging-rs"
version = "0.6.0"
version = "0.6.1"
authors = [
"Yoichiro ITO <[email protected]>"
]
Expand All @@ -27,18 +27,17 @@ vendored-tls = ["hyper-tls/vendored"]
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
gcloud-sdk = {version = "0.20", features = ["rest"]}
erased-serde = "0.3"
chrono = "0.4"
log = "0.4"
gcloud-sdk = {version = "0.23", features = ["rest"]}
hyper = { version = "0.14", features = ["client", "http1"] }
hyper-tls = { version = "0.5", optional = true }
hyper-rustls = { version = "0.24", optional = true }
hyper-rustls = { version = "0.21", optional = true }
http = "0.2"
async-trait = "0.1.68"
async-trait = "0.1.75"

[dev-dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
pretty_env_logger = "0.5"

[profile.dev]
opt-level = 0
Expand Down
16 changes: 8 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,18 +219,18 @@ mod tests {
#[allow(unused)]
#[tokio::test{ flavor = "multi_thread"}]
async fn testit() {
// let topic_name = std::env::var("TEST_FIREBASE_TOPIC_NAME").expect("TEST_FIREBASE_TOPIC_NAME not found.");
// let tkn = std::env::var("TEST_FIREBASE_IID_TOKEN").expect("TEST_FIREBASE_IID_TOKEN not found");
let topic_name = "NOPE";
let tkn = "NOPE";
let topic_name =
std::env::var("TEST_FIREBASE_TOPIC_NAME").expect("TEST_FIREBASE_TOPIC_NAME not found.");
let tkn =
std::env::var("TEST_FIREBASE_IID_TOKEN").expect("TEST_FIREBASE_IID_TOKEN not found");
let c = FCMClient::new().await.expect(
"FCMClient initialization failed. Did you export GOOGLE_APPLICATION_CREDENTIALS?",
);
let sts = c.get_info_by_iid_token(tkn, true).await;
let res = c.register_token_to_topic(topic_name, tkn).await;
let sts = c.get_info_by_iid_token("nope", true).await;
let res = c.register_token_to_topic(&topic_name, &tkn).await;
let res = c
.unregister_tokens_from_topic(topic_name, vec![tkn.into()])
.unregister_tokens_from_topic(&topic_name, vec![tkn.clone().into()])
.await;
let sts = c.get_info_by_iid_token(tkn, true).await;
let sts = c.get_info_by_iid_token(&tkn, true).await;
}
}

0 comments on commit b71087e

Please sign in to comment.