modification for cross compile (rust-layer)