Skip to content

Commit adca7e2

Browse files
committed
Link to new CRAN rust policies
1 parent d016b79 commit adca7e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22

33
As of November 2022, CRAN has rustc toolchains available on the platforms that it enforces. Some tips to publish your package on CRAN (or elsewhere).
44

5+
6+
57
## Does CRAN allow packages that use rust / cargo?
68

79
It is a bit complicated, because CRAN policy is designed for R packages with C/C++/Fortran code that link to libs available on Linux via e.g. apt/yum. However Rust has its own package ecosystem "cargo", which creates a bit of ambiguity. But generally CRAN seems not opposed to packages with Rust code, if they follow the rules.
810

911
In recent discussions on the mailing list, the MacOS maintainer states that [CRAN servers have rustc compilers, and packages should make sure to detect them properly](https://stat.ethz.ch/pipermail/r-package-devel/2022q4/008638.html). Later in the thread he also makes it clear that the CRAN maintainers [have themselves no interest in Rust](https://stat.ethz.ch/pipermail/r-package-devel/2022q4/008640.html), and it is up to the community to establish best practices.
1012

13+
#### Update (July 2023)
14+
15+
CRAN now has some explicit Rust guidelines: https://cran.r-project.org/web/packages/using_rust.html
16+
1117

1218
## How to setup the package
1319

0 commit comments

Comments
 (0)