-
Notifications
You must be signed in to change notification settings - Fork 9
/
Kconfig
35 lines (28 loc) · 869 Bytes
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Rust configuration options
#
# Copyright (c) 2024 Linaro LTD
# SPDX-License-Identifier: Apache-2.0
menu "Rust Language Support"
config RUST_SUPPORTED
bool
default y if ((CPU_CORTEX_M || \
(RISCV && !RISCV_ISA_RV32E && !RISCV_ISA_RV128I)) && \
!TIMER_READS_ITS_FREQUENCY_AT_RUNTIME)
help
Selected for platforms that have support for Rust.
config RUST
bool "Rust support for the application"
depends on RUST_SUPPORTED
select EXPERIMENTAL
help
This option enables the use of applications written in Rust.
if RUST
config RUST_ALLOC
bool "Support an allocator in Rust code"
help
If enabled, the Rust zephyr support library will include support for
an allocator. This allocator will use the currently configured
Zephyr allocator (malloc/free). This this enabled, Rust
applications can use the `alloc` crate.
endif # RUST
endmenu