Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
specify snippet deps
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Jan 23, 2024
1 parent 7218292 commit 7659448
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pre-script.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ if !advanced {
// Snippets - These should be short & self-contained, not depending on other snippets existing where possible.
//

// dependencies: none
variable::set("alloc_snippet",
`
extern crate alloc;
Expand All @@ -111,6 +112,7 @@ fn init_heap() {
}
`);

// depends on: `peripherals` being in scope
variable::set("esp_wifi_snippet",
`
let timer = ${mcu}_hal::${meta.esp_wifi_timer};
Expand Down

0 comments on commit 7659448

Please sign in to comment.