{"id":13489280,"url":"https://github.com/prisma/faunadb-rust","last_synced_at":"2025-03-28T04:31:01.316Z","repository":{"id":46824616,"uuid":"188420597","full_name":"prisma/faunadb-rust","owner":"prisma","description":"FaundaDB client for Rust","archived":true,"fork":false,"pushed_at":"2023-10-14T21:42:36.000Z","size":189,"stargazers_count":63,"open_issues_count":5,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-25T03:47:46.583Z","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/prisma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-24T12:46:38.000Z","updated_at":"2025-02-07T10:33:05.000Z","dependencies_parsed_at":"2024-01-16T09:05:23.091Z","dependency_job_id":"1fcbbd86-d389-4b4d-969c-b48e5f12c9dc","html_url":"https://github.com/prisma/faunadb-rust","commit_stats":{"total_commits":110,"total_committers":3,"mean_commits":"36.666666666666664","dds":"0.018181818181818188","last_synced_commit":"907bfdd2de80406592943e7acf5459860e2ba8bc"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ffaunadb-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ffaunadb-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ffaunadb-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Ffaunadb-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/faunadb-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245970410,"owners_count":20702409,"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":[],"created_at":"2024-07-31T19:00:21.715Z","updated_at":"2025-03-28T04:31:00.951Z","avatar_url":"https://github.com/prisma.png","language":"Rust","funding_links":[],"categories":["Tools"],"sub_categories":["Community drivers"],"readme":"# FaunaDB Rust Client\n\nFaunaDB offers an asynchronous (and synchronous) client for communicating with\nthe [Fauna](https://fauna.com) database.\n\nGoals:\n\n- Typesafe\n- Allocating only when really needed\n- Asynchronous using futures (and [Tokio](https://tokio.rs))\n\nThe crate is not yet tested on production so use at your own risk.\n\n## Basic Usage\n\n``` rust\nuse faunadb::prelude::*;\nuse tokio;\nuse futures::{future::lazy, Future};\n\nfn main() {\n    let client = Client::builder(\"put-your-secret-here\").build().unwrap();\n    let params = DatabaseParams::new(\"my-first-database\");\n\n    tokio::run(lazy(move || {\n        client\n            .query(CreateDatabase::new(params))\n            .map(|response| {\n                let res = response.resource;\n                assert_eq!(Some(\"my-first-database\"), res[\"name\"].as_str())\n            })\n            .map_err(|error: faunadb::error::Error| {\n                println!(\"Error: {:?}\", error);\n            })\n    }));\n}\n```\n\n## Testing\n\nFor tests to be successful, one must have the [default Fauna Docker\nimage](https://github.com/fauna/faunadb-docker), using the default password\n`secret`.\n\nRun the tests with:\n\n``` bash\ncargo test\n```\n\n## License\n\nThe faunadb-rust crate is licensed under the [Apache 2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Ffaunadb-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Ffaunadb-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Ffaunadb-rust/lists"}