1# This file is generated by cargo_embargo.
2# Do not modify this file after the LOCAL_DIR line
3# because the changes will be overridden on upgrade.
4# Content before the first line starting with LOCAL_DIR is preserved.
5
6LOCAL_DIR := $(GET_LOCAL_DIR)
7MODULE := $(LOCAL_DIR)
8MODULE_CRATE_NAME := once_cell
9MODULE_RUST_CRATE_TYPES := rlib
10MODULE_SRCS := $(LOCAL_DIR)/src/lib.rs
11MODULE_RUST_EDITION := 2021
12MODULE_RUSTFLAGS += \
13	--cfg 'feature="alloc"' \
14	--cfg 'feature="default"' \
15	--cfg 'feature="race"' \
16
17ifeq ($(call TOBOOL,$(TRUSTY_USERSPACE)),true)
18
19MODULE_RUSTFLAGS += \
20	--cfg 'feature="std"' \
21
22else
23
24MODULE_ADD_IMPLICIT_DEPS := false
25
26MODULE_LIBRARY_DEPS := \
27	trusty/user/base/lib/liballoc-rust \
28	trusty/user/base/lib/libcompiler_builtins-rust \
29	trusty/user/base/lib/libcore-rust
30
31endif
32
33include make/library.mk
34