Cargo Features

[dependencies]
jh71xx-hal = { version = "0.4.1", default-features = false, features = ["rt", "rts", "2G", "4G", "8G", "panic-halt"] }
default = 4G

The 4G feature is set by default whenever jh71xx-hal is added without default-features = false somewhere in the dependency tree.

rt rts? = riscv-rt

Enables restore-state-bool of critical-section, rt of jh71xx-pac ^0.8.0

Affects jh71xx-hal::critical_section, jh71xx-hal::interrupt

rts = rt

Enables rts of jh71xx-pac ^0.8.0, s-mode of riscv-rt ^0.12

2G

Affects cfg::CFG1_X1, cfg::CFG1_X2, cfg::CFG1_X3, cfg::CFG1_X4, cfg::CFG1_X5, cfg::CFG3_X1, cfg::CFG3_X2, cfg::CFG3_X3, cfg::CFG3_X4, cfg::CFG3_X5, cfg::CFG3_X6

4G default

Affects cfg::CFG0_X1, cfg::CFG1_X1, cfg::CFG1_X2, cfg::CFG1_X3, cfg::CFG1_X4, cfg::CFG1_X5, cfg::CFG3_X1, cfg::CFG3_X2, cfg::CFG3_X3, cfg::CFG3_X4, cfg::CFG3_X5, cfg::CFG3_X6

8G

Affects cfg::VAL_X2, cfg::VAL_X3, cfg::CFG0_X1, cfg::CFG1_X1, cfg::CFG1_X2, cfg::CFG1_X3, cfg::CFG1_X4, cfg::CFG1_X5, cfg::CFG3_X1, cfg::CFG3_X2, cfg::CFG3_X3, cfg::CFG3_X4, cfg::CFG3_X5, cfg::CFG3_X6

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

panic-halt implicit feature

Enables panic-halt ^0.2

panic-halt:

Set panicking behavior to halt

critical-section rt?
riscv-rt rt? rts?

Enables riscv-rt ^0.12