Explorar el Código

Move tiny_http behind feature flag (#566)

Thanks @wusyong !!! ❤️
Wu Yu Wei hace 5 años
padre
commit
8b1f24ff9c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tauri/Cargo.toml

+ 2 - 2
tauri/Cargo.toml

@@ -19,7 +19,7 @@ phf = "0.8.0"
 base64 = "0.12.0"
 webbrowser = "0.5.2"
 lazy_static = "1.4.0"
-tiny_http = "0.6"
+tiny_http = { version = "0.6", optional = true }
 threadpool = "1.7"
 uuid = { version = "0.8.1", features = ["v4"] }
 error-chain = "0.12.2"
@@ -38,7 +38,7 @@ serde = { version = "1.0", features = [ "derive" ] }
 [features]
 edge = ["web-view/edge"]
 dev-server = []
-embedded-server = []
+embedded-server = ["tiny_http"]
 no-server = []
 all-api = []
 read-text-file = []