Преглед на файлове

gate `nb` dependency under legacy feature

luojia65 преди 2 години
родител
ревизия
94072e9142
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      Cargo.toml

+ 4 - 3
Cargo.toml

@@ -16,14 +16,15 @@ categories = ["os", "embedded", "hardware-support", "no-std"]
 edition = "2021"
 
 [dependencies]
-embedded-hal = { version = "1.0.0-alpha.8", optional = true }
-nb = "1.0"
 riscv = "0.8"
+# The following two dependencies are used to support legacy console feature
+embedded-hal = { version = "1.0.0-alpha.8", optional = true }
+nb = { version = "1.0", optional = true }
 
 [features]
 default = []
 # Support legacy extension; this feature is not included by default.
-legacy = ["embedded-hal"]
+legacy = ["embedded-hal", "nb"]
 # Dynamic pointer widths on SBI implementations; useful for developing hypervisors
 guest = []