File tree 9 files changed +10
-9
lines changed
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)
86
86
endif ()
87
87
set (BUILD_LIB_DIR "${CMAKE_CURRENT_SOURCE_DIR} /${RUST_TARGET} /${RUST_BUILD_TYPE} " )
88
88
89
+ set (RUST_LIBRARY_NAME "${CMAKE_PROJECT_NAME} " )
89
90
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" )
91
92
set (SAMPLE_CARGO_CONFIG "${CMAKE_CURRENT_BINARY_DIR} /rust/sample-cargo-config.toml" )
92
93
93
94
# 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)
4
4
5
5
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
6
6
7
- project (hello_rust_world )
7
+ project (hello_world )
8
8
rust_cargo_application()
Original file line number Diff line number Diff line change 3
3
4
4
[package ]
5
5
# This must be rustapp for now.
6
- name = " rustapp "
6
+ name = " hello_world "
7
7
version = " 3.7.0"
8
8
edition = " 2021"
9
9
description = " A sample hello world application in Rust"
Original file line number Diff line number Diff line change 1
1
sample :
2
2
description : Hello world, but in Rust
3
- name : hello rust world
3
+ name : hello world
4
4
common :
5
5
harness : console
6
6
harness_config :
Original file line number Diff line number Diff line change 3
3
4
4
[package ]
5
5
# This must be rustapp for now.
6
- name = " rustapp "
6
+ name = " philosophers "
7
7
version = " 3.7.0"
8
8
edition = " 2021"
9
9
description = " A sample hello world application in Rust"
Original file line number Diff line number Diff line change 3
3
cmake_minimum_required (VERSION 3.20.0)
4
4
5
5
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
6
- project (time_rust )
6
+ project (time )
7
7
8
8
target_sources (app PRIVATE src/times.c)
9
9
Original file line number Diff line number Diff line change 3
3
4
4
[package ]
5
5
# This must be rustapp for now.
6
- name = " rustapp "
6
+ name = " time "
7
7
version = " 3.7.0"
8
8
edition = " 2021"
9
9
description = " Tests of time"
Original file line number Diff line number Diff line change 3
3
cmake_minimum_required (VERSION 3.20.0)
4
4
5
5
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
6
- project (timer_rust )
6
+ project (timer )
7
7
8
8
rust_cargo_application()
Original file line number Diff line number Diff line change 3
3
4
4
[package ]
5
5
# This must be rustapp for now.
6
- name = " rustapp "
6
+ name = " timer "
7
7
version = " 3.7.0"
8
8
edition = " 2021"
9
9
description = " Tests of timeers"
You can’t perform that action at this time.
0 commit comments