#platform #target #toolchain #port #quickly #different #applications

bin+lib remy

快速将 Rust 应用程序移植到不同平台

4 个版本

使用旧的 Rust 2015

0.0.4 2019年2月14日
0.0.3 2018年12月26日
0.0.2 2018年12月24日
0.0.1 2018年11月6日

#1371开发工具

BSD-2-Clause

2MB
357 代码行

remy: 地铁厨师

pizza rat

示例

$ cd example

$ remy hello

$ tree target/bin
target/bin
├── arm-unknown-linux-gnueabi
   └── hello
├── i686-unknown-linux-gnu
   └── hello
├── wasm32-unknown-unknown
   └── hello.wasm
├── x86_64-unknown-cloudabi
   └── hello
└── x86_64-unknown-linux-gnu
    └── hello

可以使用 -e <pattern> 跳过目标类型,例如 -e cloudabi

有关更多详细信息,请参阅 remy -h

关于

remy 通过运行您的 Rust 项目通过一系列针对不同目标工具链的 Docker 容器,快速生成多个目标环境的 Rust 端口。

下载

https://github.com/mcandre/remy/releases

CRATE

https://crates.io/crates/remy

API 文档

https://docs.rs/releases/search?query=remy

运行时要求

安装

$ cargo install remy

用法

  1. .cargo/config 中定义任何自定义链接器。有关更多信息,请参阅包含的 示例项目
  2. 使用项目二进制名称作为参数运行 remy
  3. remy 产品端口位于结构 target/bin/<环境>/<二进制> 中。

贡献

有关 remy 本身开发的更多详细信息,请参阅 DEVELOPMENT.md

另请参阅

  • cartel 提供了 C/C++ 跨编译工具链的 Docker 镜像
  • goxcart 基于标准 Go 工具链生成 Go 应用程序端口
  • tonixxx 提供了使用虚拟机的更重型的解决方案
  • trust 将 CI 系统与 Rust 端口集成

依赖项

~2.2–4MB
~62K SLoC