diff options
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -13,8 +13,14 @@ MODULE_RUSTFLAGS += \ --cfg 'feature="default"' \ --cfg 'feature="derive"' \ --cfg 'feature="serde_derive"' \ + +ifeq ($(call TOBOOL,$(TRUSTY_USERSPACE)),true) + +MODULE_RUSTFLAGS += \ --cfg 'feature="std"' \ +endif + MODULE_LIBRARY_DEPS := \ trusty/user/base/lib/liballoc-rust \ external/rust/crates/serde_derive \ |