• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/crates/serde/rules.mk b/crates/serde/rules.mk
2index 7de6d869..13776636 100644
3--- a/crates/serde/rules.mk
4+++ b/crates/serde/rules.mk
5@@ -14,9 +14,16 @@ MODULE_RUSTFLAGS += \
6 	--cfg 'feature="default"' \
7 	--cfg 'feature="derive"' \
8 	--cfg 'feature="serde_derive"' \
9-	--cfg 'feature="std"'
10+
11+ifeq ($(call TOBOOL,$(TRUSTY_USERSPACE)),true)
12+
13+MODULE_RUSTFLAGS += \
14+	--cfg 'feature="std"' \
15+
16+endif
17
18 MODULE_LIBRARY_DEPS := \
19-	$(call FIND_CRATE,serde_derive)
20+	trusty/user/base/lib/liballoc-rust \
21+	$(call FIND_CRATE,serde_derive) \
22
23 include make/library.mk
24