Publishing Rust-powered R Packages

Learn how to publish an extendr-based R package to CRAN

Last updated:

This guide covers the steps required to publish an R package that depends on Rust code via extendr. The primary focus is CRAN, which has the strictest requirements for compiled code, vendored dependencies, and minimum supported toolchain versions. Packages that satisfy CRAN’s requirements should be publishable to most other R repositories with little or no additional work.

Software requirements

This guide assumes the following versions of necessary software:

  • R: 4.5
  • Rust: 1.65.0
  • extendr-api: 0.9.0
  • rextendr 0.5.0

Please see the Installation Guide if you have not already installed this software.