File tree Expand file tree Collapse file tree 9 files changed +10
-9
lines changed Expand file tree Collapse file tree 9 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,9 @@ function(rust_cargo_application)
8686 endif ()
8787 set (BUILD_LIB_DIR "${CMAKE_CURRENT_SOURCE_DIR} /${RUST_TARGET} /${RUST_BUILD_TYPE} " )
8888
89+ set (RUST_LIBRARY_NAME "${CMAKE_PROJECT_NAME} " )
8990 set (CARGO_TARGET_DIR "${CMAKE_CURRENT_BINARY_DIR} /rust/target" )
90- set (RUST_LIBRARY "${CARGO_TARGET_DIR} /${RUST_TARGET} /${RUST_BUILD_TYPE} /librustapp .a" )
91+ set (RUST_LIBRARY "${CARGO_TARGET_DIR} /${RUST_TARGET} /${RUST_BUILD_TYPE} /lib ${RUST_LIBRARY_NAME} .a" )
9192 set (SAMPLE_CARGO_CONFIG "${CMAKE_CURRENT_BINARY_DIR} /rust/sample-cargo-config.toml" )
9293
9394 # The generated C binding wrappers. These are bindgen-generated wrappers for the inline functions
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ cmake_minimum_required(VERSION 3.20.0)
44
55find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
66
7- project (hello_rust_world )
7+ project (hello_world )
88rust_cargo_application()
Original file line number Diff line number Diff line change 33
44[package ]
55# This must be rustapp for now.
6- name = " rustapp "
6+ name = " hello_world "
77version = " 3.7.0"
88edition = " 2021"
99description = " A sample hello world application in Rust"
Original file line number Diff line number Diff line change 11sample :
22 description : Hello world, but in Rust
3- name : hello rust world
3+ name : hello world
44common :
55 harness : console
66 harness_config :
Original file line number Diff line number Diff line change 33
44[package ]
55# This must be rustapp for now.
6- name = " rustapp "
6+ name = " philosophers "
77version = " 3.7.0"
88edition = " 2021"
99description = " A sample hello world application in Rust"
Original file line number Diff line number Diff line change 33cmake_minimum_required (VERSION 3.20.0)
44
55find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
6- project (time_rust )
6+ project (time )
77
88target_sources (app PRIVATE src/times.c)
99
Original file line number Diff line number Diff line change 33
44[package ]
55# This must be rustapp for now.
6- name = " rustapp "
6+ name = " time "
77version = " 3.7.0"
88edition = " 2021"
99description = " Tests of time"
Original file line number Diff line number Diff line change 33cmake_minimum_required (VERSION 3.20.0)
44
55find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
6- project (timer_rust )
6+ project (timer )
77
88rust_cargo_application()
Original file line number Diff line number Diff line change 33
44[package ]
55# This must be rustapp for now.
6- name = " rustapp "
6+ name = " timer "
77version = " 3.7.0"
88edition = " 2021"
99description = " Tests of timeers"
You can’t perform that action at this time.
0 commit comments