-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split code into two packages, one for the CLI tool and one for the li…
…brary
- Loading branch information
Showing
27 changed files
with
111 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
[package] | ||
name = "ubi" | ||
version = "0.1.2" | ||
[workspace.package] | ||
authors = ["Dave Rolsky <[email protected]>"] | ||
description = "The Universal Binary Installer library and CLI tool" | ||
repository = "https://github.com/houseabsolute/ubi" | ||
documentation = "https://docs.rs/ubi/latest/ubi/" | ||
readme = "README.md" | ||
license = "MIT OR Apache-2.0" | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
readme = "README.md" | ||
repository = "https://github.com/houseabsolute/precious" | ||
version = "0.2.0" | ||
|
||
[lib] | ||
name = "ubi" | ||
path = "src/ubi.rs" | ||
|
||
[[bin]] | ||
name = "ubi" | ||
path = "src/main.rs" | ||
[workspace] | ||
members = ["ubi", "ubi-cli"] | ||
resolver = "2" | ||
|
||
[dependencies] | ||
[workspace.dependencies] | ||
anyhow = "1.0.86" | ||
binstall-tar = "0.4.42" | ||
bzip2 = "0.4.4" | ||
|
@@ -28,6 +21,7 @@ flate2 = "1.0.33" | |
itertools = "0.13.0" | ||
lazy-regex = "3.3.0" | ||
log = "0.4.22" | ||
mockito = "1.5.0" | ||
platforms = "=3.2.0" | ||
regex = "1.10.6" | ||
reqwest = { version = "0.12.7", default-features = false, features = ["gzip", "json"] } | ||
|
@@ -50,31 +44,3 @@ zip = { version = "2.2.0", default-features = false, features = [ | |
"lzma", | ||
"zstd", | ||
] } | ||
|
||
[features] | ||
default = ["rustls-tls"] | ||
## enables the `rustls-tls` feature for the `reqwest` crate. | ||
rustls-tls = ["reqwest/rustls-tls"] | ||
## enables the `rustls-tls-native-roots` feature for the `reqwest` crate. | ||
rustls-tls-native-roots = ["reqwest/rustls-tls-native-roots"] | ||
## enables the `native-tls` feature for the `reqwest` crate. | ||
native-tls = ["reqwest/native-tls"] | ||
## enables the `native-tls-vendored` feature for the `reqwest` crate. | ||
native-tls-vendored = ["reqwest/native-tls-vendored"] | ||
|
||
[workspace.metadata.release] | ||
allow-branch = ["master"] | ||
|
||
[dev-dependencies] | ||
mockito = "1.5.0" | ||
|
||
# workaround for https://github.com/cross-rs/cross/issues/1345 | ||
[package.metadata.cross.target.x86_64-unknown-netbsd] | ||
pre-build = [ | ||
"mkdir -p /tmp/netbsd", | ||
"curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O", | ||
"tar -C /tmp/netbsd -xJf base.tar.xz", | ||
"cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib", | ||
"rm base.tar.xz", | ||
"rm -rf /tmp/netbsd", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
[build.env] | ||
passthrough = ["GITHUB_TOKEN"] | ||
|
||
# workaround for https://github.com/cross-rs/cross/issues/1345 | ||
[target.x86_64-unknown-netbsd] | ||
pre-build = [ | ||
"mkdir -p /tmp/netbsd", | ||
"curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O", | ||
"tar -C /tmp/netbsd -xJf base.tar.xz", | ||
"cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib", | ||
"rm base.tar.xz", | ||
"rm -rf /tmp/netbsd", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "ubi-cli" | ||
version.workspace = true | ||
authors.workspace = true | ||
description = "The Universal Binary Installer CLI tool" | ||
repository.workspace = true | ||
readme.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
|
||
[dependencies] | ||
anyhow.workspace = true | ||
clap.workspace = true | ||
log.workspace = true | ||
tempfile.workspace = true | ||
thiserror.workspace = true | ||
tokio.workspace = true | ||
ubi = { version = "0.2.0", path = "../ubi" } | ||
|
||
[[bin]] | ||
name = "ubi" | ||
path = "src/main.rs" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[package] | ||
name = "ubi" | ||
version.workspace = true | ||
authors.workspace = true | ||
description = "The Universal Binary Installer library" | ||
repository.workspace = true | ||
readme.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
|
||
[dependencies] | ||
anyhow.workspace = true | ||
binstall-tar.workspace = true | ||
bzip2.workspace = true | ||
clap.workspace = true | ||
document-features.workspace = true | ||
fern.workspace = true | ||
flate2.workspace = true | ||
itertools.workspace = true | ||
lazy-regex.workspace = true | ||
log.workspace = true | ||
platforms.workspace = true | ||
regex.workspace = true | ||
reqwest.workspace = true | ||
result.workspace = true | ||
serde.workspace = true | ||
strum.workspace = true | ||
tempfile.workspace = true | ||
test-case.workspace = true | ||
thiserror.workspace = true | ||
tokio.workspace = true | ||
url.workspace = true | ||
xz.workspace = true | ||
zip.workspace = true | ||
|
||
[features] | ||
default = ["rustls-tls"] | ||
## enables the `rustls-tls` feature for the `reqwest` crate. | ||
rustls-tls = ["reqwest/rustls-tls"] | ||
## enables the `rustls-tls-native-roots` feature for the `reqwest` crate. | ||
rustls-tls-native-roots = ["reqwest/rustls-tls-native-roots"] | ||
## enables the `native-tls` feature for the `reqwest` crate. | ||
native-tls = ["reqwest/native-tls"] | ||
## enables the `native-tls-vendored` feature for the `reqwest` crate. | ||
native-tls-vendored = ["reqwest/native-tls-vendored"] | ||
|
||
[dev-dependencies] | ||
mockito.workspace = true | ||
test-case.workspace = true | ||
tokio.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.