rust: introduce `RUST_{HOST,PKG}_LOCKED` flag
authorTianling Shen <[email protected]>
Wed, 20 Aug 2025 09:28:22 +0000 (17:28 +0800)
committerTianling Shen <[email protected]>
Thu, 21 Aug 2025 09:00:09 +0000 (17:00 +0800)
commit1000e99185ec9faaa846aeef43ca3cf72f199d5d
tree3499a1bc31629138ba2a5054f90809f3e4dc305e
parent0a512e8f0eeb474d8b7f93a5eb73792ce7f4247a
rust: introduce `RUST_{HOST,PKG}_LOCKED` flag

Introduce `RUST_{HOST,PKG}_LOCKED` flag (enabled by default) to respect
upstream lockfile. This can be disabled by setting it to 0 if you want
to have up-to-date dependencies.

This change also adds new `CARGO_{HOST,PKG}_ARGS` variable to pass extra
build arguments to cargo.

Signed-off-by: Tianling Shen <[email protected]>
lang/rust/rust-host-build.mk
lang/rust/rust-package.mk