#containing #source #facebook #mononoke #eden #open #repository

fbthrift_codegen_includer_proc_macro

针对 https://github.com/rust-lang/rfcs/issues/752 的解决方案

4 个版本

0.1.3 2023年12月13日
0.1.2 2021年1月13日
0.1.1 2021年1月11日
0.1.0 2020年10月23日

#1889过程宏


3 个crate 中使用

MIT/Apache

6KB

rust-shed

rust-shed 是一个包含其他Facebook开源项目(如Mononoke或Eden)中常见的Rust crate的仓库。

构建 rust-shed

TL;DR

您可以使用 cargo 来构建和测试项目。

当使用 thrift_compiler 时,您必须安装 fbthrfit 编译器。对于 MacOS/Unix,在 $HOME/build 中安装它,执行以下操作:

[rust-shed]$ mkdir $HOME/build
[rust-shed]$ ./build/fbcode_builder/getdeps.py build fbthrift --install-prefix $HOME/build

之后,将 THRIFT=$HOME/build/fbthrift/bin/thrift1 添加到您的环境变量中,或者确保通过将 $HOME/build/fbthrift/bin 添加到 PATH 来确保 thrift1 可访问。

或者您可以使用以下命令构建和运行测试:

[rust-shed]$ ./build/fbcode_builder/getdeps.py build rust-shed
[rust-shed]$ ./build/fbcode_builder/getdeps.py test rust-shed

依赖项

  • Cargo 用于构建和测试
  • thrift_compiler crate 需要 fbthrift 已安装或 THRIFT 环境变量指向 thrift 编译器

贡献

有关如何提供帮助,请参阅 CONTRIBUTING 文件。

许可证

rust-shed同时受MIT和Apache许可证版本2.0的许可,如LICENSE-MITLICENSE-APACHE文件所示。

依赖项

~79KB