fixes for windows
This commit is contained in:
parent
a2839042d6
commit
76fca36763
13
Cargo.lock
generated
13
Cargo.lock
generated
@ -1428,8 +1428,6 @@ dependencies = [
|
|||||||
"lazy_static",
|
"lazy_static",
|
||||||
"libc",
|
"libc",
|
||||||
"log",
|
"log",
|
||||||
"maplit",
|
|
||||||
"ncurses",
|
|
||||||
"signal-hook",
|
"signal-hook",
|
||||||
"tokio 1.28.2",
|
"tokio 1.28.2",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
@ -3231,17 +3229,6 @@ dependencies = [
|
|||||||
"socket2 0.4.9",
|
"socket2 0.4.9",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "ncurses"
|
|
||||||
version = "5.101.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "5e2c5d34d72657dc4b638a1c25d40aae81e4f1c699062f72f467237920752032"
|
|
||||||
dependencies = [
|
|
||||||
"cc",
|
|
||||||
"libc",
|
|
||||||
"pkg-config",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ndk"
|
name = "ndk"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
|
@ -8,7 +8,7 @@ members = [
|
|||||||
"veilid-wasm",
|
"veilid-wasm",
|
||||||
]
|
]
|
||||||
|
|
||||||
exclude = [ "./external/keyring-manager", "./external/cursive", "./external/hashlink" ]
|
exclude = [ "./external/keyring-manager", "./external/cursive", "./veilid-cli/cursive-crossterm", "./veilid-cli/cursive-ncurses", "./external/hashlink" ]
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
cursive = { path = "./external/cursive/cursive" }
|
cursive = { path = "./external/cursive/cursive" }
|
||||||
|
2
external/cursive
vendored
2
external/cursive
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 250d35f37f526221539c8d59d7a2056803bf0010
|
Subproject commit 7df15342b1f08b6b7a5cdc7aa8f97342d2e4ad7b
|
@ -14,15 +14,15 @@ IF NOT DEFINED ProgramFiles(x86) (
|
|||||||
|
|
||||||
FOR %%X IN (protoc.exe) DO (SET PROTOC_FOUND=%%~$PATH:X)
|
FOR %%X IN (protoc.exe) DO (SET PROTOC_FOUND=%%~$PATH:X)
|
||||||
IF NOT DEFINED PROTOC_FOUND (
|
IF NOT DEFINED PROTOC_FOUND (
|
||||||
echo protobuf compiler ^(protoc^) is required but it's not installed. Install protoc 21.10 or higher. Ensure it is in your path. Aborting.
|
echo protobuf compiler ^(protoc^) is required but it's not installed. Install protoc 23.2 or higher. Ensure it is in your path. Aborting.
|
||||||
echo protoc is available here: https://github.com/protocolbuffers/protobuf/releases/download/v21.10/protoc-21.10-win64.zip
|
echo protoc is available here: https://github.com/protocolbuffers/protobuf/releases/download/v23.2/protoc-23.2-win64.zip
|
||||||
goto end
|
goto end
|
||||||
)
|
)
|
||||||
|
|
||||||
FOR %%X IN (capnp.exe) DO (SET CAPNP_FOUND=%%~$PATH:X)
|
FOR %%X IN (capnp.exe) DO (SET CAPNP_FOUND=%%~$PATH:X)
|
||||||
IF NOT DEFINED CAPNP_FOUND (
|
IF NOT DEFINED CAPNP_FOUND (
|
||||||
echo capnproto compiler ^(capnp^) is required but it's not installed. Install capnp 0.10.3 or higher. Ensure it is in your path. Aborting.
|
echo capnproto compiler ^(capnp^) is required but it's not installed. Install capnp 0.10.4 or higher. Ensure it is in your path. Aborting.
|
||||||
echo capnp is available here: https://capnproto.org/capnproto-c++-win32-0.10.3.zip
|
echo capnp is available here: https://capnproto.org/capnproto-c++-win32-0.10.4.zip
|
||||||
goto end
|
goto end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
54
veilid-cli/Cargo-macos.toml
Normal file
54
veilid-cli/Cargo-macos.toml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
[package]
|
||||||
|
name = "veilid-cli"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["John Smith <jsmith@example.com>"]
|
||||||
|
edition = "2021"
|
||||||
|
build = "build.rs"
|
||||||
|
license = "LGPL-2.0-or-later OR MPL-2.0 OR (MIT AND BSD-3-Clause)"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "veilid-cli"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = [ "rt-tokio" ]
|
||||||
|
rt-async-std = [ "async-std", "veilid-core/rt-async-std", "cursive-ncurses/rt-async-std", "cursive-crossterm/rt-async-std" ]
|
||||||
|
rt-tokio = [ "tokio", "tokio-util", "veilid-core/rt-tokio", "cursive-ncurses/rt-tokio", "cursive-crossterm/rt-tokio" ]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
async-std = { version = "^1.9", features = ["unstable", "attributes"], optional = true }
|
||||||
|
tokio = { version = "^1", features = ["full"], optional = true }
|
||||||
|
tokio-util = { version = "^0", features = ["compat"], optional = true}
|
||||||
|
async-tungstenite = { version = "^0.8" }
|
||||||
|
cursive-flexi-logger-view = { path = "../external/cursive-flexi-logger-view" }
|
||||||
|
cursive_buffered_backend = { path = "../external/cursive_buffered_backend" }
|
||||||
|
cursive = { path = "../external/cursive/cursive", default-features = false, features = [ "ncurses-backend", "toml", "ansi" ]}
|
||||||
|
# cursive-multiplex = "0.6.0"
|
||||||
|
# cursive_tree_view = "0.6.0"
|
||||||
|
cursive_table_view = "0.14.0"
|
||||||
|
# cursive-tabs = "0.5.0"
|
||||||
|
clap = "^3"
|
||||||
|
directories = "^4"
|
||||||
|
log = "^0"
|
||||||
|
futures = "^0"
|
||||||
|
serde = "^1"
|
||||||
|
serde_derive = "^1"
|
||||||
|
parking_lot = "^0"
|
||||||
|
cfg-if = "^1"
|
||||||
|
capnp = "^0"
|
||||||
|
capnp-rpc = "^0"
|
||||||
|
config = { version = "^0", features = ["yaml"] }
|
||||||
|
bugsalot = { git = "https://github.com/crioux/bugsalot.git" }
|
||||||
|
flexi_logger = { version = "^0", features = ["use_chrono_for_offset"] }
|
||||||
|
thiserror = "^1"
|
||||||
|
crossbeam-channel = "^0"
|
||||||
|
hex = "^0"
|
||||||
|
veilid-core = { path = "../veilid-core" }
|
||||||
|
json = "^0"
|
||||||
|
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
serial_test = "^0"
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
capnpc = "^0"
|
@ -20,6 +20,7 @@ async-std = { version = "^1.9", features = ["unstable", "attributes"], optional
|
|||||||
tokio = { version = "^1", features = ["full"], optional = true }
|
tokio = { version = "^1", features = ["full"], optional = true }
|
||||||
tokio-util = { version = "^0", features = ["compat"], optional = true}
|
tokio-util = { version = "^0", features = ["compat"], optional = true}
|
||||||
async-tungstenite = { version = "^0.8" }
|
async-tungstenite = { version = "^0.8" }
|
||||||
|
cursive = { path = "../external/cursive/cursive", default-features = false, features = [ "crossterm", "toml", "ansi" ]}
|
||||||
cursive-flexi-logger-view = { path = "../external/cursive-flexi-logger-view" }
|
cursive-flexi-logger-view = { path = "../external/cursive-flexi-logger-view" }
|
||||||
cursive_buffered_backend = { path = "../external/cursive_buffered_backend" }
|
cursive_buffered_backend = { path = "../external/cursive_buffered_backend" }
|
||||||
# cursive-multiplex = "0.6.0"
|
# cursive-multiplex = "0.6.0"
|
||||||
@ -45,12 +46,6 @@ hex = "^0"
|
|||||||
veilid-core = { path = "../veilid-core" }
|
veilid-core = { path = "../veilid-core" }
|
||||||
json = "^0"
|
json = "^0"
|
||||||
|
|
||||||
[target.'cfg(not(target_os = "macos"))'.dependencies]
|
|
||||||
cursive = { path = "../external/cursive/cursive", default-features = false, features = [ "crossterm", "toml", "ansi" ]}
|
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
|
||||||
cursive = { path = "../external/cursive/cursive", default-features = false, features = [ "ncurses-backend", "toml", "ansi" ]}
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
serial_test = "^0"
|
serial_test = "^0"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user