Skip to content

Commit d0eaedb

Browse files
committed
Merge branch 'develop' of github.com:nanato12/line-bot-sdk-rust into feature/update-hmac-sha256
2 parents 4f8163a + a12ea60 commit d0eaedb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ actix_support = ["actix-web"]
1818

1919
[dependencies]
2020
actix-web = { version = "3", optional = true, default-features = false }
21-
base64 = "0.9.2"
21+
base64 = "0.21.0"
2222
bytes = "0.4"
2323
chrono = "0.4"
2424
hmac = "0.12.1"
2525
reqwest = { version = "0.11.0", features = ["blocking", "json"] }
2626
rocket = { version = "0.4", optional = true }
2727
serde = { version = "1.0", features = ["derive"] }
28-
serde_derive = "1.0.97"
28+
serde_derive = "1.0.156"
2929
serde_json = "1.0"
3030
sha2 = "0.10.6"
3131

3232
[dev-dependencies]
3333
dotenv = "0.15.0"
3434
actix-web = "3.3"
35-
actix-rt = "1.0"
35+
actix-rt = "1.1"

examples/echobot_actix_web.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async fn callback(
5353
async fn main() -> std::io::Result<()> {
5454
dotenv().ok();
5555
HttpServer::new(|| App::new().service(callback))
56-
.bind("127.0.0.1:8000")?
56+
.bind("127.0.0.1:3000")?
5757
.run()
5858
.await
5959
}

examples/echobot_rocket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use line::support::rocket_support::{Body, Signature};
2020
fn callback(signature: Signature, body: Body) -> Status {
2121
// Get channel secret and access token by environment variable
2222
let channel_secret: &str =
23-
&env::var("LINE_CHANNEL_RECRET").expect("Failed getting LINE_CHANNEL_RECRET");
23+
&env::var("LINE_CHANNEL_SECRET").expect("Failed getting LINE_CHANNEL_SECRET");
2424
let access_token: &str =
2525
&env::var("LINE_CHANNEL_ACCESS_TOKEN").expect("Failed getting LINE_CHANNEL_ACCESS_TOKEN");
2626

0 commit comments

Comments
 (0)