rust: refactor build helper
authorTianling Shen <redacted>
Sun, 19 Mar 2023 06:07:48 +0000 (14:07 +0800)
committerTianling Shen <redacted>
Thu, 23 Mar 2023 18:08:47 +0000 (02:08 +0800)
commite7016bb4bc20f3711840134440be178bf8d0f72d
tree90787e7a4fa06e3c5764eab366f260e8d8f6ff10
parent473bc722ea3f5d3171c7e08abd6818603be291fc
rust: refactor build helper

Added new RustBinPackage, RustBinHostBuild wrapper.
Added new RUST_PKG_FEATURES flag.
Moved CARGO_HOME to STAGING_DIR_HOSTPKG.
Overrode default Build/Compile and Host/Compile to Cargo build.

Signed-off-by: Tianling Shen <redacted>
lang/rust/Makefile
lang/rust/rust-host-build.mk [new file with mode: 0644]
lang/rust/rust-package.mk
lang/rust/rust-values.mk [moved from lang/rust/rust-host.mk with 77% similarity]
git clone https://git.99rst.org/PROJECT