use workspace dependencies

This commit is contained in:
Caelan
2024-10-01 09:28:51 -06:00
parent fe4bd13564
commit daf3b7ee9a
5 changed files with 174 additions and 95 deletions

31
Cargo.lock generated
View File

@@ -308,9 +308,9 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
[[package]] [[package]]
name = "cc" name = "cc"
version = "1.1.22" version = "1.1.24"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9540e661f81799159abee814118cc139a2004b3a3aa3ea37724a1b66530b90e0" checksum = "812acba72f0a070b003d3697490d2b55b837230ae7c6c6497f05cc2ddbb8d938"
dependencies = [ dependencies = [
"jobserver", "jobserver",
"libc", "libc",
@@ -1267,9 +1267,12 @@ dependencies = [
[[package]] [[package]]
name = "once_cell" name = "once_cell"
version = "1.19.0" version = "1.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" checksum = "82881c4be219ab5faaf2ad5e5e5ecdff8c66bd7402ca3160975c93b24961afd1"
dependencies = [
"portable-atomic",
]
[[package]] [[package]]
name = "openssl" name = "openssl"
@@ -1395,6 +1398,12 @@ dependencies = [
"windows-sys 0.59.0", "windows-sys 0.59.0",
] ]
[[package]]
name = "portable-atomic"
version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
[[package]] [[package]]
name = "powerfmt" name = "powerfmt"
version = "0.2.0" version = "0.2.0"
@@ -1505,9 +1514,9 @@ dependencies = [
[[package]] [[package]]
name = "regex" name = "regex"
version = "1.10.6" version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick",
"memchr", "memchr",
@@ -1517,9 +1526,9 @@ dependencies = [
[[package]] [[package]]
name = "regex-automata" name = "regex-automata"
version = "0.4.7" version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick",
"memchr", "memchr",
@@ -1528,9 +1537,9 @@ dependencies = [
[[package]] [[package]]
name = "regex-syntax" name = "regex-syntax"
version = "0.8.4" version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]] [[package]]
name = "remove_dir_all" name = "remove_dir_all"
@@ -2094,7 +2103,7 @@ dependencies = [
[[package]] [[package]]
name = "velopack_nodeffi" name = "velopack_nodeffi"
version = "0.1.0" version = "0.0.0-local"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",

View File

@@ -11,7 +11,8 @@ exclude = [
] ]
[workspace.package] [workspace.package]
authors = ["Caelan Sayler <git@caesay.com>"] version = "0.0.0-local"
authors = ["Velopack Ltd, Caelan Sayler <git@caesay.com>"]
homepage = "https://velopack.io" homepage = "https://velopack.io"
repository = "https://github.com/velopack/velopack" repository = "https://github.com/velopack/velopack"
documentation = "https://docs.velopack.io" documentation = "https://docs.velopack.io"
@@ -21,6 +22,59 @@ license = "MIT"
edition = "2021" edition = "2021"
rust-version = "1.75" rust-version = "1.75"
[workspace.dependencies]
velopack = { path = "src/lib-rust" }
log = "0.4"
native-tls = "0.2"
ureq = { version = "2.10", default-features = false, features = ["native-tls", "gzip"] }
url = "2.5"
semver = "1.0"
xml = "0.8"
derivative = "2.2"
glob = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
zip = { version = "2.2", default-features = false, features = ["deflate"] }
thiserror = "1.0"
lazy_static = "1.5"
regex = "1.10"
normpath = "1.3"
bitflags = "2.6"
rand = "0.8"
ts-rs = "10.0"
zstd = "0.13"
async-std = "1.13"
anyhow = "1.0"
pretty-bytes-rust = "0.3"
simplelog = "0.12"
clap = "4.5"
chrono = "0.4"
wait-timeout = "0.2"
strum = { version = "0.26", features = ["derive"] }
file-rotate = "0.7"
simple-stopwatch = "0.1"
enum-flags = "0.3"
remove_dir_all = { git = "https://github.com/caesay/remove_dir_all.git", features = ["log"] }
sha1_smol = "1.0"
time = "0.3"
os_info = "3.8"
neon = "1"
winres = "0.1"
tempfile = "3.9"
ntest = "0.9"
pretty_assertions = "1.4"
native-dialog = "0.7"
waitpid-any = "0.2"
dialog = "0.3"
libc = "0.2"
libloading = "0.8"
strsim = "0.11"
same-file = "1.0"
filelocksmith = "0.1"
image = { version = "0.25", default-features = false, features = ["gif", "jpeg", "png"] }
fs_extra = "1.3"
memmap2 = "0.9"
# default to small, optimized workspace release binaries # default to small, optimized workspace release binaries
[profile.release] [profile.release]
opt-level = "z" # optimize for size opt-level = "z" # optimize for size

View File

@@ -1,8 +1,16 @@
[package] [package]
name = "velopack_bins" name = "velopack_bins"
version = "0.0.0-local"
edition = "2021"
publish = false publish = false
version.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
documentation.workspace = true
keywords.workspace = true
categories.workspace = true
license.workspace = true
edition.workspace = true
rust-version.workspace = true
[features] [features]
windows = [] windows = []
@@ -31,48 +39,42 @@ name = "testapp"
path = "src/testapp.rs" path = "src/testapp.rs"
[dependencies] [dependencies]
velopack = { path = "../lib-rust" } velopack.workspace = true
anyhow = "1.0" anyhow.workspace = true
pretty-bytes-rust = "0.3" rand.workspace = true
rand = "0.8" log.workspace = true
log = "0.4" simplelog.workspace = true
simplelog = "0.12" clap.workspace = true
clap = "4.5" semver.workspace = true
semver = "1.0" chrono.workspace = true
chrono = "0.4" lazy_static.workspace = true
wait-timeout = "0.2" strum.workspace = true
lazy_static = "1.5" derivative.workspace = true
strum = { version = "0.26", features = ["derive"] } glob.workspace = true
file-rotate = "0.7" remove_dir_all.workspace = true
derivative = "2.2" sha1_smol.workspace = true
simple-stopwatch = "0.1" time.workspace = true
glob = "0.3" os_info.workspace = true
enum-flags = "0.3" bitflags.workspace = true
remove_dir_all = { git = "https://github.com/caesay/remove_dir_all.git", features = [ regex.workspace = true
"log", normpath.workspace = true
] } simple-stopwatch.workspace = true
sha1_smol = "1.0" file-rotate.workspace = true
time = "0.3" wait-timeout.workspace = true
os_info = "3.8" pretty-bytes-rust.workspace = true
bitflags = "2.6" enum-flags.workspace = true
regex = "1.10"
normpath = "1.3"
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
native-dialog = "0.7" native-dialog.workspace = true
waitpid-any = "0.2" waitpid-any.workspace = true
dialog = "0.3" dialog.workspace = true
libc = "0.2" libc.workspace = true
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
fs_extra = "1.3" fs_extra.workspace = true
memmap2 = "0.9" memmap2.workspace = true
image.workspace = true
winsafe = { version = "0.0.20", features = ["gui"] } winsafe = { version = "0.0.20", features = ["gui"] }
image = { version = "0.25", default-features = false, features = [
"gif",
"jpeg",
"png",
] }
windows = { version = "0.58", default-features = false, features = [ windows = { version = "0.58", default-features = false, features = [
"Win32_Foundation", "Win32_Foundation",
"Win32_Security", "Win32_Security",
@@ -100,18 +102,18 @@ windows = { version = "0.58", default-features = false, features = [
"Wdk_System_Threading", "Wdk_System_Threading",
] } ] }
webview2-com = "0.33" webview2-com = "0.33"
libloading = "0.8" libloading.workspace = true
strsim = "0.11" strsim.workspace = true
same-file = "1.0" same-file.workspace = true
filelocksmith = "0.1" filelocksmith.workspace = true
[dev-dependencies] [dev-dependencies]
tempfile = "3.9" tempfile.workspace = true
ntest = "0.9" ntest.workspace = true
pretty_assertions = "1.4" pretty_assertions.workspace = true
[build-dependencies] [build-dependencies]
semver = "1.0" semver.workspace = true
[target.'cfg(windows)'.build-dependencies] [target.'cfg(windows)'.build-dependencies]
winres = "0.1" winres.workspace = true

View File

@@ -1,22 +1,29 @@
[package] [package]
name = "velopack_nodeffi" name = "velopack_nodeffi"
version = "0.1.0"
license = "MIT"
edition = "2021"
exclude = ["index.node"] exclude = ["index.node"]
publish = false publish = false
version.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
documentation.workspace = true
keywords.workspace = true
categories.workspace = true
license.workspace = true
edition.workspace = true
rust-version.workspace = true
[lib] [lib]
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
neon = "1" velopack.workspace = true
serde_json = "1" serde_json.workspace = true
velopack = { path = "../../../lib-rust" } semver.workspace = true
semver = "1.0" log.workspace = true
log = "0.4" lazy_static.workspace = true
lazy_static = "1.5" neon.workspace = true
[build-dependencies] [build-dependencies]
ts-rs = "10.0" velopack = { workspace = true, features = ["typescript"] }
velopack = { path = "../../../lib-rust", features = ["typescript"] } ts-rs.workspace = true

View File

@@ -1,10 +1,17 @@
[package] [package]
name = "velopack" name = "velopack"
version = "0.0.0-local"
edition = "2021"
description = "Installer and automatic updates for cross-platform desktop applications" description = "Installer and automatic updates for cross-platform desktop applications"
readme = "readme.md" readme = "README.md"
exclude = ["/samples"] version.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
documentation.workspace = true
keywords.workspace = true
categories.workspace = true
license.workspace = true
edition.workspace = true
rust-version.workspace = true
[features] [features]
default = ["zstd"] default = ["zstd"]
@@ -20,29 +27,29 @@ name = "velopack"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
log = "0.4" log.workspace = true
native-tls = "0.2" ureq.workspace = true
ureq = { version = "2.10", default-features = false, features = ["native-tls", "gzip"] } url.workspace = true
url = "2.5" semver.workspace = true
semver = "1.0" xml.workspace = true
xml = "0.8" derivative.workspace = true
derivative = "2.2" glob.workspace = true
glob = "0.3" serde.workspace = true
serde = { version = "1.0", features = ["derive"] } serde_json.workspace = true
serde_json = { version = "1.0" } zip.workspace = true
zip = { version = "2.2", default-features = false, features = ["deflate"] } thiserror.workspace = true
thiserror = "1.0" lazy_static.workspace = true
lazy_static = "1.5" regex.workspace = true
regex = "1.10" normpath.workspace = true
normpath = "1.3" bitflags.workspace = true
bitflags = "2.6" rand.workspace = true
rand = "0.8" native-tls.workspace = true
# typescript # typescript
ts-rs = { version = "10.0", optional = true } ts-rs = { workspace = true, optional = true }
# delta packages # delta packages
zstd = { version = "0.13", optional = true } zstd = { workspace = true, optional = true }
# async # async
async-std = { version = "1.13", optional = true } async-std = { workspace = true, optional = true }