diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index dc97c37f..06b1d84e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -44,9 +44,9 @@ jobs: working-directory: zephyr-lang-rust run: | # Note that the above build doesn't set Zephyrbase, so we'll need to do that here. - west build -t rustdoc -b nrf52840dk/nrf52840 docgen + west build -t rustdoc -b qemu_cortex_m3 docgen mkdir rustdocs - mv build/rust/target/thumbv7em-none-eabi/doc rustdocs/nostd + mv build/rust/target/thumbv7m-none-eabi/doc rustdocs/nostd cp docs/top-index.html rustdocs/index.html - name: Build build documentation diff --git a/docgen/prj.conf b/docgen/prj.conf index 930445c6..6ffe361e 100644 --- a/docgen/prj.conf +++ b/docgen/prj.conf @@ -3,3 +3,6 @@ CONFIG_RUST=y CONFIG_RUST_ALLOC=y +CONFIG_GPIO=y +CONFIG_PRINTK=y +CONFIG_POLL=y diff --git a/zephyr/src/sys/thread.rs b/zephyr/src/sys/thread.rs index f2a8eeac..5d96af92 100644 --- a/zephyr/src/sys/thread.rs +++ b/zephyr/src/sys/thread.rs @@ -233,6 +233,8 @@ impl Thread { /// Safe use follows similar requirements to using this safely from within C code. Passing Rust /// values through this interface is difficult to get right, and it is generally recommended to /// use [`spawn`]. + /// + /// [`spawn`]: Self::spawn pub unsafe fn simple_spawn( mut self, child: k_thread_entry_t,