瀏覽代碼

add num_cpus crate

ghassmo 4 年之前
父節點
當前提交
6ebd455dad
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 3 0
      Cargo.lock
  2. 1 0
      Cargo.toml

+ 3 - 0
Cargo.lock

@@ -1,5 +1,7 @@
 # This file is automatically @generated by Cargo.
 # It is not intended for manual editing.
+version = 3
+
 [[package]]
 name = "Inflector"
 version = "0.11.4"
@@ -1247,6 +1249,7 @@ dependencies = [
  "lazy_static",
  "log",
  "native-tls",
+ "num_cpus",
  "prettytable-rs",
  "rand 0.7.3",
  "rand_core 0.5.1",

+ 1 - 0
Cargo.toml

@@ -34,6 +34,7 @@ bimap = "0.5.2"
 hex = "0.4.2"
 bs58 = "0.4.0"
 prettytable-rs = "0.8"
+num_cpus = "1.13.0"
 
 smol = "1.2.4"
 futures = "0.3.17"