• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 := zerocopy
9MODULE_RUST_CRATE_TYPES := rlib
10MODULE_SRCS := $(LOCAL_DIR)/src/lib.rs
11MODULE_ADD_IMPLICIT_DEPS := false
12MODULE_RUST_EDITION := 2021
13MODULE_RUSTFLAGS += \
14	--cfg 'feature="alloc"' \
15	--cfg 'feature="derive"' \
16	--cfg 'feature="zerocopy-derive"' \
17	--cfg 'zerocopy_aarch64_simd_1_59_0' \
18	--cfg 'zerocopy_core_error_1_81_0' \
19	--cfg 'zerocopy_diagnostic_on_unimplemented_1_78_0' \
20	--cfg 'zerocopy_generic_bounds_in_const_fn_1_61_0' \
21	--cfg 'zerocopy_panic_in_const_and_vec_try_reserve_1_57_0' \
22	--cfg 'zerocopy_target_has_atomics_1_60_0'
23
24MODULE_LIBRARY_DEPS := \
25	$(call FIND_CRATE,zerocopy-derive) \
26	trusty/user/base/lib/liballoc-rust \
27	trusty/user/base/lib/libcompiler_builtins-rust \
28	trusty/user/base/lib/libcore-rust
29
30include make/library.mk
31