{"id":22509026,"url":"https://github.com/nanato12/line-bot-sdk-rust","last_synced_at":"2026-02-20T21:26:39.458Z","repository":{"id":40434169,"uuid":"340648124","full_name":"nanato12/line-bot-sdk-rust","owner":"nanato12","description":"LINE Messaging API SDK for Rust","archived":false,"fork":false,"pushed_at":"2024-04-20T06:24:23.000Z","size":457,"stargazers_count":39,"open_issues_count":2,"forks_count":16,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-07-02T22:47:50.920Z","etag":null,"topics":["bot","line","line-bot","line-bot-sdk","linebot","messaging-api","rust","sdk"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/line-bot-sdk-rust","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanato12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-02-20T12:21:43.000Z","updated_at":"2025-05-31T09:22:31.000Z","dependencies_parsed_at":"2023-12-01T18:37:53.543Z","dependency_job_id":"f7d8c9c2-5518-4bff-ab84-0b6d4adf10dc","html_url":"https://github.com/nanato12/line-bot-sdk-rust","commit_stats":{"total_commits":172,"total_committers":6,"mean_commits":"28.666666666666668","dds":0.08139534883720934,"last_synced_commit":"5e32bd35038f5186b64d60dff1fec4b78d5d1bd3"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nanato12/line-bot-sdk-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanato12%2Fline-bot-sdk-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanato12%2Fline-bot-sdk-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanato12%2Fline-bot-sdk-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanato12%2Fline-bot-sdk-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanato12","download_url":"https://codeload.github.com/nanato12/line-bot-sdk-rust/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanato12%2Fline-bot-sdk-rust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269214954,"owners_count":24379749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","line","line-bot","line-bot-sdk","linebot","messaging-api","rust","sdk"],"created_at":"2024-12-07T01:26:42.478Z","updated_at":"2026-02-20T21:26:39.400Z","avatar_url":"https://github.com/nanato12.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LINE Messaging API SDK for Rust\n\n## Introduction\n\nThe LINE Messaging API SDK for Rust makes it easy to develop bots using LINE Messaging API, and you can create a sample bot within minutes.\n\n## Documentation\n\nSee the official API documentation for more information.\n\n- English: \u003chttps://developers.line.biz/en/docs/messaging-api/overview/\u003e\n- Japanese: \u003chttps://developers.line.biz/ja/docs/messaging-api/overview/\u003e\n\n## Requirements\n\nThis library requires stable/beta Rust.\n\n## Installation\n\n```bash\n$ cargo add line-bot-sdk-rust\n```\n\n## Web framework support\n\nExtract `x-line-signature` from the request header.\n\n### Use `rocket` framework\n\n```toml\n[dependencies.line-bot-sdk-rust]\nversion = \"1.0.0\"\nfeatures = [\"rocket_support\"]\n```\n\n```rust\nuse line_bot_sdk_rust::support::rocket::Signature;\nuse rocket::{http::Status, post};\n\n#[post(\"/callback\", data = \"\u003cbody\u003e\")]\nasync fn world(signature: Signature, body: String) -\u003e (Status, \u0026'static str) {\n    ...\n}\n```\n\n### Use `actix_web` framework\n\n```toml\n[dependencies.line-bot-sdk-rust]\nversion = \"1.0.0\"\nfeatures = [\"actix_support\"]\n```\n\n```rust\nuse actix_web::{post, web, Error, HttpResponse};\nuse line_bot_sdk_rust::support::actix::Signature;\n\n#[post(\"/callback\")]\nasync fn callback(signature: Signature, bytes: web::Bytes) -\u003e Result\u003cHttpResponse, Error\u003e {\n    ...\n}\n```\n\n## Configuration\n\n```rust\nuse line_bot_sdk_rust::client::LINE;\nuse std::env;\n\nfn main() {\n    let access_token: \u0026str =\n        \u0026env::var(\"LINE_CHANNEL_ACCESS_TOKEN\").expect(\"Failed to get LINE_CHANNEL_ACCESS_TOKEN\");\n\n    let line = LINE::new(access_token.to_string());\n}\n```\n\n## How to use\n\nThe LINE Messaging API uses the JSON data format.\n\nExample. Parse body (`\u0026str`) into Result\u003cCallbackRequest, serde_json::Error\u003e.\n\n```rust\nlet request: Result\u003cCallbackRequest, serde_json::Error\u003e = serde_json::from_str(body);\n```\n\n```rust\nmatch request {\n    Err(err) =\u003e {\n        // error handling\n    },\n    Ok(req) =\u003e {\n        for e in req.events {\n            // Processing for various events\n        }\n    }\n}\n```\n\n## EchoBot examples\n\n### with Rocket framework\n\n```bash\n$ cd examples\n$ cargo run --bin rocket\n```\n\nsource: [rocket example](./examples/rocket_example/src/main.rs)\n\n### with actix_web framework\n\n```bash\n$ cd examples\n$ cargo run --bin actix_web\n```\n\nsource: [actix_web example](./examples/actix_web_example/src/main.rs)\n\n## Contributing\n\nPlease make a contribution 😆\n\n## License\n\n```plain\nCopyright 2023 nanato12\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanato12%2Fline-bot-sdk-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanato12%2Fline-bot-sdk-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanato12%2Fline-bot-sdk-rust/lists"}