Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Calling rust code from C++ and vice versa

Open
#40 2 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, rust
Domain
documentation

Research direction

No target file or test is mentioned. Start by reviewing the repository's existing tutorials and the linked Rust FFI documentation; done should be a simple example showing calls between Rust and C++, with links to further details.

Written by the indexing model from the issue text.

Description

For a C++ programmer it is very interesting to see how easy rust and C (and C++) integrate. Most of the time one will start with existing C/C++ code and does not have the luxury to start with empty code base. Several tutorials in this direction exist already. Still, it would be very nice to see a simple example and probably link to more details (https://doc.rust-lang.org/book/ffi.html ?)

Dominant language
Rust
Stars
3.9k
Forks
297
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nrc/r4cppp

All issues in nrc/r4cppp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.