{"id":22675532,"url":"https://github.com/chamilad/aws-rust-hello-world","last_synced_at":"2026-01-12T14:02:43.295Z","repository":{"id":216172104,"uuid":"740641532","full_name":"chamilad/aws-rust-hello-world","owner":"chamilad","description":"Intro code samples for AWS Rust SDK","archived":false,"fork":false,"pushed_at":"2024-01-11T00:28:34.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-06T17:54:24.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/chamilad.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,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T19:02:25.000Z","updated_at":"2024-01-08T19:03:17.000Z","dependencies_parsed_at":"2024-01-08T20:25:49.437Z","dependency_job_id":"1d38a38a-83ce-4366-a9cd-a4b2aac563d6","html_url":"https://github.com/chamilad/aws-rust-hello-world","commit_stats":null,"previous_names":["chamilad/aws-rust-hello-world"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chamilad/aws-rust-hello-world","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamilad%2Faws-rust-hello-world","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamilad%2Faws-rust-hello-world/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamilad%2Faws-rust-hello-world/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamilad%2Faws-rust-hello-world/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chamilad","download_url":"https://codeload.github.com/chamilad/aws-rust-hello-world/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamilad%2Faws-rust-hello-world/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-09T17:45:52.406Z","updated_at":"2026-01-12T14:02:43.249Z","avatar_url":"https://github.com/chamilad.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust AWS SDK examples\n\nThis repository contains some simple examples on using the Rust AWS SDK with a\nfew edge cases.\n\nThe credentials and the config are loaded from the default locations similar to\nthe other language SDKs. This is demonstrated in the\n[`01_simple_client`](./01_simple_client/) example. Variations to this approach\nare demonstrated in the other three examples.\n\nThis example uses the CloudTrail service as a specific scenario. However the\nusage is more or less similar across the other services.\n1. create a config\n1. create the client using the config\n1. make the API calls\n\nEach service has the crate documentation for more details.\n\n```rust\nuse aws_config::SdkConfig;\nuse aws_sdk_cloudtrail::operation::list_trails::ListTrailsOutput;\nuse aws_sdk_cloudtrail::{\n    Client, Error,\n};\n\n//...\n\n// create a config\nlet shared_config: SdkConfig = aws_config::load_from_env().await;\n// create the client using the config\nlet client: Client = Client::new(\u0026shared_config);\n\n// make the API calls\nlet req = client.list_trails();\nlet resp: ListTrailsOutput= req.send().await?;\n```\n\nThe SDK needs an async runtime since almost all calls made by the SDK will be\nblocking calls waiting on network calls, file reads etc. The example uses\n`tokio` however AWS mentions that any runtime with a thread sleep\nfunction can be used, something that I haven't tried yet.\n\n```rust\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Error\u003e {\n//...\n}\n```\n\nAdditionally, the SDK internally uses `hyper` HTTP framework, which also seems\nto be inter-changeable with the advanced client building APIs provided by the\nSDK.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamilad%2Faws-rust-hello-world","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchamilad%2Faws-rust-hello-world","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamilad%2Faws-rust-hello-world/lists"}