Lines Matching refs:rust
4 rust三方库使用cargo编译,配置为Cargo.toml。集成到OpenHarmony上需要转换成BUILD.gn规则。为了满足这个需求,需要提供一个cargo2gn转换工具。当需要引入rust…
7 1. 进入到需要转化的rust三方库的目录下,比如需要转化bindgen。
10 cd openharmony/third_party/rust/bindgen
33 import("//build/templates/rust/ohos_cargo_crate.gni")
47 "//third_party/rust/bitflags:lib",
48 "//third_party/rust/cexpr:lib",
49 "//third_party/rust/clang-sys:lib",
50 "//third_party/rust/lazy_static:lib",
51 "//third_party/rust/lazycell:lib",
52 "//third_party/rust/log:lib",
53 "//third_party/rust/peeking_take_while:lib",
54 "//third_party/rust/proc-macro2:lib",
55 "//third_party/rust/quote:lib",
56 "//third_party/rust/regex:lib",
57 "//third_party/rust/rustc-hash:lib",
58 "//third_party/rust/shlex:lib",
59 "//third_party/rust/syn:lib",
60 "//third_party/rust/which:lib",
79 1. 进入到rust目录下。
82 cd openharmony/third_party/rust
84 2. 把所有需要转换的rust三方库添加到rust目录下的Cargo.toml的[workspace]里,如下所示。