rust: refactor build helper
authorTianling Shen <cnsztl@immortalwrt.org>
Sun, 19 Mar 2023 06:07:48 +0000 (14:07 +0800)
committerTianling Shen <cnsztl@gmail.com>
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 <cnsztl@immortalwrt.org>
lang/rust/Makefile
lang/rust/rust-host-build.mk [new file with mode: 0644]
lang/rust/rust-host.mk [deleted file]
lang/rust/rust-package.mk
lang/rust/rust-values.mk [new file with mode: 0644]