Procházet zdrojové kódy

gate `nb` dependency under legacy feature

luojia65 před 2 roky
rodič
revize
94072e9142
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  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 = []