{"id":16528881,"url":"https://github.com/fargito/rust-cdk-serverless","last_synced_at":"2025-04-04T20:18:18.058Z","repository":{"id":203564255,"uuid":"709846924","full_name":"fargito/rust-cdk-serverless","owner":"fargito","description":"Sample Rust Serverless App deployed with CDK","archived":false,"fork":false,"pushed_at":"2025-03-28T19:38:46.000Z","size":2559,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T20:31:36.390Z","etag":null,"topics":["aws-cdk","rust","serverless"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fargito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-10-25T14:11:03.000Z","updated_at":"2025-03-28T19:38:49.000Z","dependencies_parsed_at":"2024-04-21T14:25:18.397Z","dependency_job_id":"db434d50-f33a-4bdc-9e84-de74dc0fedc1","html_url":"https://github.com/fargito/rust-cdk-serverless","commit_stats":null,"previous_names":["fargito/rust-cdk-serverless"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fargito%2Frust-cdk-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fargito%2Frust-cdk-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fargito%2Frust-cdk-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fargito%2Frust-cdk-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fargito","download_url":"https://codeload.github.com/fargito/rust-cdk-serverless/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242688,"owners_count":20907135,"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","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":["aws-cdk","rust","serverless"],"created_at":"2024-10-11T17:42:06.745Z","updated_at":"2025-04-04T20:18:18.040Z","avatar_url":"https://github.com/fargito.png","language":"Rust","readme":"# Serverless CDK Rust\n\nA sample serverless app with Rust. I'm just experimenting stuff here so don't take anything at face value 🙃.\n\n## Features\n\nCurrent features:\n\n- ✅ Synchronous lambdas\n- ✅ Asynchronous lambdas\n- ✅ IAC unit tests\n- 🕑 Lambda unit tests\n- ✅ Integration tests\n- ✅ Preview environments\n- ❌ Frontend\n\n## Overview\n\nA **very** simple todo API to create, retrieve and delete todos. No front for now.\n\nThis is the architecture schema:\n\n![Todo API schema](./docs/img/rust-cdk-serverless.png)\n\n## Setup\n\n### Requirements\n\n**NodeJS**: See [official NodeJS install docs](https://nodejs.org/en/learn/getting-started/how-to-install-nodejs). The current NodeJS version is stored in `.nvmrc`. If you use `nvm`, you can run:\n\n```bash\nnvm use\n```\n\n**Pnpm**: dependency manager. Install with:\n\n```bash\nnpm install -g pnpm\n```\n\n**Rust toolchain**: the Rust version is pinned in `rust-toolchain.toml`. Follow [the official install instructions](https://www.rust-lang.org/tools/install).\n\n**Cargo Lambda**: in order to cross-compile Rust code to Lambda runtime. Follow [install instructions](https://www.cargo-lambda.info/guide/installation.html).\n\n### Installation\n\nInstall NodeJS dependencies:\n\n```bash\npnpm install\n```\n\n### AWS Setup\n\nIn order to deploy, you will need an AWS account. If you don't have one, refer to the AWS documentation.\n\nThen install the AWS CLI: [install docs](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html).\n\nSetup a local profile:\n\n```bash\naws configure --profile \u003cyour-profile-name\u003e\n```\n\n## Build \u0026 Deploy\n\n### Build Rust Lambda code\n\n```bash\npnpm build\n```\n\n### Run tests\n\n```bash\npnpm test\n```\n\n### Deploy\n\n⚠ Warning: you may have to log in to your AWS profile again, depending on the setup method.\n\n```bash\npnpm run deploy --profile \u003cyour-profile-name\u003e\n```\n\n### Run integration tests\n\n```bash\npnpm test-integration\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffargito%2Frust-cdk-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffargito%2Frust-cdk-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffargito%2Frust-cdk-serverless/lists"}