{"id":28088956,"url":"https://github.com/thijsc/mongo-rust-driver","last_synced_at":"2025-10-19T09:38:17.216Z","repository":{"id":34112740,"uuid":"37942325","full_name":"appsignal/mongo-rust-driver","owner":"appsignal","description":"Mongo Rust driver built on top of the Mongo C driver","archived":false,"fork":false,"pushed_at":"2025-05-07T14:09:08.000Z","size":279,"stargazers_count":89,"open_issues_count":6,"forks_count":23,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-07T14:16:34.797Z","etag":null,"topics":["mongo","rust","rust-bindings"],"latest_commit_sha":null,"homepage":"","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/appsignal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2015-06-23T20:11:15.000Z","updated_at":"2025-05-07T14:09:13.000Z","dependencies_parsed_at":"2024-09-02T15:41:47.970Z","dependency_job_id":"1356de30-1eb1-473a-9958-c91e1f1f558e","html_url":"https://github.com/appsignal/mongo-rust-driver","commit_stats":{"total_commits":222,"total_committers":9,"mean_commits":"24.666666666666668","dds":"0.16666666666666663","last_synced_commit":"f69ea92007e73d2be2a42f85a463bb94aaa4abbc"},"previous_names":["thijsc/mongo-rust-driver"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsignal%2Fmongo-rust-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsignal%2Fmongo-rust-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsignal%2Fmongo-rust-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appsignal%2Fmongo-rust-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appsignal","download_url":"https://codeload.github.com/appsignal/mongo-rust-driver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253947829,"owners_count":21988945,"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":["mongo","rust","rust-bindings"],"created_at":"2025-05-13T12:52:45.482Z","updated_at":"2025-10-19T09:38:17.153Z","avatar_url":"https://github.com/appsignal.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mongo Rust Driver\n\nMongo Rust driver built on top of the [Mongo C driver](https://github.com/mongodb/mongo-c-driver).\nThis driver is a thin wrapper around the production-ready C driver that provides a safe and ergonomic Rust interface which handles all the gnarly usage details of the C driver for you.\n\nBson encoding and decoding is handled by the [bson crate](https://github.com/zonyitoo/bson-rs), the bindings are based on generated bindings by [bindgen](https://github.com/crabtw/rust-bindgen).\n\nThe API should still be considered experimental, but I'm not expecting changes at the moment.\n\n[Documentation](https://docs.rs/mongo_driver/)\n\n## Compatibility\n\nThe driver currently only builds on Unix, tested on Mac Os X and Linux so far. It's compatible with MongoDB 2.6 up to 3.4 and has full replica set and SSL support.\n\n## Installation\n\nIf you have any trouble installing the crate (linking openssl can be\ntricky) please check out the [installation instructions for the C driver](http://mongoc.org/libmongoc/current/installing.html).\n\nTo build on Mac install OpenSSL 1.1 and cmake:\n\n```\nbrew install openssl@1.1\nbrew install cmake\n```\n\nExport these env vars the before you make a clean build:\n\n```\nexport LDFLAGS=\"-L/usr/local/opt/openssl@1.1/lib\"\nexport CPPFLAGS=\"-I/usr/local/opt/openssl@1.1/include\"\nexport PKG_CONFIG_PATH=\"/usr/local/opt/openssl@1.1/lib/pkgconfig\"\n```\n\n## Logging\n\nAll internal logging by mongoc is redirected to the macros in the [log\ncrate](http://doc.rust-lang.org/log/log/index.html). See the `log` docs\nto configure output in your application.\n\n## SSL test\n\nThere is a test included to connect to a replica set over SSL. To skip\nthis test:\n\n```\nSKIP_SSL_CONNECTION_TESTS=true cargo test\n```\n\nTo run this tests fill these environment variables with something appropiate to\nconnect to a replica set:\n\n```\nMONGO_RUST_DRIVER_SSL_URI\nMONGO_RUST_DRIVER_SSL_PEM_FILE\nMONGO_RUST_DRIVER_SSL_CA_FILE\n```\n\n## Examples\n\nSee the tests directory for examples of how to use the driver.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nContributions are very welcome, only the functionality we use has been wrapped so far. Please write a test for any behavior you add.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthijsc%2Fmongo-rust-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthijsc%2Fmongo-rust-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthijsc%2Fmongo-rust-driver/lists"}