| # This file is generated by cargo_embargo. | |
| # Do not modify this file after the LOCAL_DIR line | |
| # because the changes will be overridden on upgrade. | |
| # Content before the first line starting with LOCAL_DIR is preserved. | |
| LOCAL_DIR := $(GET_LOCAL_DIR) | |
| MODULE := $(LOCAL_DIR) | |
| MODULE_CRATE_NAME := once_cell | |
| MODULE_RUST_CRATE_TYPES := rlib | |
| MODULE_SRCS := $(LOCAL_DIR)/src/lib.rs | |
| MODULE_RUST_EDITION := 2021 | |
| MODULE_RUSTFLAGS += \ | |
| --cfg 'feature="alloc"' \ | |
| --cfg 'feature="default"' \ | |
| --cfg 'feature="race"' \ | |
| ifeq ($(call TOBOOL,$(TRUSTY_USERSPACE)),true) | |
| MODULE_RUSTFLAGS += \ | |
| --cfg 'feature="std"' \ | |
| else | |
| MODULE_ADD_IMPLICIT_DEPS := false | |
| MODULE_LIBRARY_DEPS := \ | |
| trusty/user/base/lib/liballoc-rust \ | |
| trusty/user/base/lib/libcompiler_builtins-rust \ | |
| trusty/user/base/lib/libcore-rust | |
| endif | |
| include make/library.mk |