refactor for workspace and static link the client ncurses

This commit is contained in:
John Smith 2021-11-23 19:13:52 -05:00
parent 084cf709c7
commit 21548771ab
10 changed files with 766 additions and 6089 deletions

5
.gitignore vendored
View File

@ -57,3 +57,8 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
###############################################################################
### Rust
/target
/logs

File diff suppressed because it is too large Load Diff

17
Cargo.toml Normal file
View File

@ -0,0 +1,17 @@
[workspace]
members = [
"veilid-core",
"veilid-server",
"veilid-cli"
]
exclude = [ "./external/cursive" ]
[patch.crates-io]
cursive = { path = "./external/cursive/cursive" }
cursive_core = { path = "./external/cursive/cursive-core" }
[profile.release]
opt-level = "s"
lto = true

@ -1 +1 @@
Subproject commit 1efc24f1ffd5b088d0cc64ddbe6409c35eb42a0a
Subproject commit bdfdcb0b962cc28651e3c205393da1a3b330e739

View File

@ -10,10 +10,6 @@ license = "LGPL-2.0-or-later OR MPL-2.0 OR (MIT AND BSD-3-Clause)"
name = "veilid-cli"
path = "src/main.rs"
[patch.crates-io]
cursive = { path = "../external/cursive/cursive", default-features = false, features = ["crossterm-backend", "toml"]}
cursive_core = { path = "../external/cursive/cursive-core" }
[dependencies]
async-std = { version = "^1.9", features = ["unstable", "attributes"] }
async-tungstenite = { version = "^0.8", features = ["async-std-runtime"] }
@ -47,6 +43,3 @@ serial_test = "^0.4"
[build-dependencies]
capnpc = "^0.14"
[profile.release]
lto = true

View File

@ -4,4 +4,8 @@ fn main() {
.src_prefix("../veilid-server/")
.run()
.expect("compiling schema");
#[cfg(unix)]
{
println!("cargo:rustc-link-lib=static=ncursesw");
}
}

2920
veilid-core/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -135,9 +135,5 @@ wasm-bindgen-test = "^0"
[build-dependencies]
capnpc = "^0"
[profile.release]
opt-level = "s"
lto = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O", "--enable-mutable-globals"]

3119
veilid-server/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -43,6 +43,3 @@ serial_test = "^0"
[build-dependencies]
capnpc = "^0"
[profile.release]
lto = true