{"id":29016508,"url":"https://github.com/memgraph/rsmgclient","last_synced_at":"2026-02-25T21:31:18.444Z","repository":{"id":36955042,"uuid":"279242856","full_name":"memgraph/rsmgclient","owner":"memgraph","description":"Memgraph database adapter for Rust programming language.","archived":false,"fork":false,"pushed_at":"2025-11-20T14:26:52.000Z","size":121,"stargazers_count":42,"open_issues_count":12,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-27T08:44:28.341Z","etag":null,"topics":["bolt","client","database-connector","memgraph","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/rsmgclient","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/memgraph.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-13T08:30:49.000Z","updated_at":"2025-11-27T18:25:13.000Z","dependencies_parsed_at":"2024-05-19T09:22:37.147Z","dependency_job_id":"4a53774b-f914-4d9d-9ff1-e6f570bd1589","html_url":"https://github.com/memgraph/rsmgclient","commit_stats":{"total_commits":36,"total_committers":9,"mean_commits":4.0,"dds":0.6944444444444444,"last_synced_commit":"1d614a9afae77be16bbdd3e601a9e621a5176642"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/memgraph/rsmgclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Frsmgclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Frsmgclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Frsmgclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Frsmgclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memgraph","download_url":"https://codeload.github.com/memgraph/rsmgclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Frsmgclient/sbom","scorecard":{"id":500076,"data":{"date":"2025-08-11","repo":{"name":"github.com/memgraph/rsmgclient","commit":"30efdf1e472cbf66481b106f75588cbc83f2a397"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":6,"reason":"Found 20/30 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":3,"reason":"2 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/memgraph/rsmgclient/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/memgraph/rsmgclient/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/memgraph/rsmgclient/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/memgraph/rsmgclient/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/memgraph/rsmgclient/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/memgraph/rsmgclient/ci.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yml:52","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yml:74","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Warn: codeowners review is not required on branch 'master'","Warn: 'last push approval' is disabled on branch 'master'","Info: 'up-to-date branches' is required to merge on branch 'master'","Info: status check found to merge onto on branch 'master'","Info: PRs are required in order to make changes on branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T21:36:31.125Z","repository_id":36955042,"created_at":"2025-08-19T21:36:31.126Z","updated_at":"2025-08-19T21:36:31.126Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29841559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T21:18:31.832Z","status":"ssl_error","status_checked_at":"2026-02-25T21:18:29.265Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["bolt","client","database-connector","memgraph","rust"],"created_at":"2025-06-25T22:30:31.345Z","updated_at":"2026-02-25T21:31:18.426Z","avatar_url":"https://github.com/memgraph.png","language":"Rust","readme":"# rsmgclient - Rust Memgraph Client\n\n[![](https://github.com/memgraph/rsmgclient/workflows/CI/badge.svg)](https://github.com/memgraph/rsmgclient/actions)\n\n`rsmgclient` is a [Memgraph](https://memgraph.com/) database adapter for Rust\nprogramming language. The `rsmgclient` crate is the current implementation of\nthe adapter. It is implemented as a wrapper around\n[mgclient](https://github.com/memgraph/mgclient), the official Memgraph C/C++\nclient library.\n\n## Installation\n\n### Prerequisites\n\n- [Rust](https://doc.rust-lang.org/cargo/getting-started/installation.html)\n  1.42.0 or above\n- Prerequisites of [mgclient](https://github.com/memgraph/mgclient):\n    - A C compiler supporting C11 standard\n    - CMake 3.8 or newer\n    - OpenSSL 1.0.2 or newer\n\n### Installing from crates.io\n\nOnce prerequisites are met, if you want to use `rsmgclient` as a library for\nyour own Rust project, you can install it using `cargo`:\n\n```bash\ncargo install rsmgclient\n```\n\nNOTE: The default OpenSSL path on Windows is `C:\\Program Files\\OpenSSL-Win64\\lib`,\nif you would like to change that please provide `OPENSSL_LIB_DIR` env variable.\n\n### Building from Source\n\nTo contribute into `rsmgclient` or just to look more closely how it is made,\nyou will need:\n\n- Cloned [rsmgclient](https://github.com/memgraph/rsmgclient) repository\n- Properly initialized [mgclient](https://github.com/memgraph/mgclient), please\n  take care of the `mgclient` requirements.\n- [Memgraph Quick Start Guide](https://memgraph.com/docs/memgraph/quick-start)\n\nOnce `rsmgclient` is cloned, you will need to build it and then you can run\nthe test suite to verify it is working correctly:\n\n```bash\ngit submodule update --init --recursive\ncargo build\n# Please run Memgraph based on the quick start guide\ncargo test\n```\n\nOn MacOS, the build will try to detect OpenSSL by using MacPorts or Homebrew.\n\nOn Windows, `bindgen` requires `libclang` which is a part of LLVM. If LLVM is\nnot already installed just go to the [LLVM\ndownload](https://releases.llvm.org/download.html) page, download and install\n`LLVM.exe` file (select the option to put LLVM on the PATH). In addition,\ndefault OpenSSL path is `C:\\Program Files\\OpenSSL-Win64\\lib`, if you would like\nto change that please provide `OPENSSL_LIB_DIR` env variable during the build\nphase.\n\n## Documentation\n\nOnline documentation can be found on [docs.rs\npages](https://docs.rs/rsmgclient/).\n\n## Code Sample\n\n`src/main.rs` is an example showing some of the basic commands:\n\n```rust\nuse rsmgclient::{ConnectParams, Connection, MgError, Value};\n\nfn execute_query() -\u003e Result\u003c(), MgError\u003e {\n    // Connect to Memgraph.\n    let connect_params = ConnectParams {\n        host: Some(String::from(\"localhost\")),\n        ..Default::default()\n    };\n    let mut connection = Connection::connect(\u0026connect_params)?;\n\n    // Create simple graph.\n    connection.execute_without_results(\n        \"CREATE (p1:Person {name: 'Alice'})-[l1:Likes]-\u003e(m:Software {name: 'Memgraph'}) \\\n         CREATE (p2:Person {name: 'John'})-[l2:Likes]-\u003e(m);\",\n    )?;\n\n    // Fetch the graph.\n    let columns = connection.execute(\"MATCH (n)-[r]-\u003e(m) RETURN n, r, m;\", None)?;\n    println!(\"Columns: {}\", columns.join(\", \"));\n    for record in connection.fetchall()? {\n        for value in record.values {\n            match value {\n                Value::Node(node) =\u003e print!(\"{}\", node),\n                Value::Relationship(edge) =\u003e print!(\"-{}-\", edge),\n                value =\u003e print!(\"{}\", value),\n            }\n        }\n        println!();\n    }\n    connection.commit()?;\n\n    Ok(())\n}\n\nfn main() {\n    if let Err(error) = execute_query() {\n        panic!(\"{}\", error)\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgraph%2Frsmgclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemgraph%2Frsmgclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgraph%2Frsmgclient/lists"}