-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move schema generation to a separate crate
- Loading branch information
1 parent
95e8e68
commit 6bb7c65
Showing
10 changed files
with
91 additions
and
54 deletions.
There are no files selected for viewing
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,6 +1,5 @@ | ||
--- | ||
"cargo-packager": "patch" | ||
"cargo-packager-config": "minor" | ||
--- | ||
|
||
Initial Release |
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,21 +1,21 @@ | ||
[package] | ||
name = "cargo-packager-config" | ||
version = "0.0.0" | ||
version = "0.1.0" | ||
description = "Config types for cargo-packager." | ||
authors = [ | ||
"CrabNebula Ltd.", | ||
"Tauri Programme within The Commons Conservancy", | ||
"George Burton <[email protected]>", | ||
"CrabNebula Ltd.", | ||
"Tauri Programme within The Commons Conservancy", | ||
"George Burton <[email protected]>" | ||
] | ||
edition = "2021" | ||
license = "Apache-2.0 OR MIT" | ||
repository = "https://github.com/crabnebula-dev/cargo-packager" | ||
|
||
[features] | ||
clap = ["dep:clap"] | ||
clap = [ "dep:clap" ] | ||
|
||
[dependencies] | ||
serde.workspace = true | ||
schemars.workspace = true | ||
serde = { workspace = true } | ||
schemars = { workspace = true } | ||
clap = { workspace = true, optional = true } | ||
strsim = "0.10" |
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
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,12 @@ | ||
[package] | ||
name = "cargo-packager-config-schema-generator" | ||
version = "0.0.0" | ||
publish = false | ||
edition = "2021" | ||
authors = ["CrabNebula Ltd."] | ||
license = "Apache-2.0 OR MIT" | ||
|
||
[build-dependencies] | ||
cargo-packager-config = { path = "../config", version = "0.1.0" } | ||
serde_json = { workspace = true } | ||
schemars = { 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
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,5 @@ | ||
// Copyright 2023-2023 CrabNebula Ltd. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-License-Identifier: MIT | ||
|
||
fn main() {} |
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 |
---|---|---|
|
@@ -3,62 +3,60 @@ name = "cargo-packager" | |
version = "0.1.0" | ||
description = "Rust executable packager and bundler CLI and library." | ||
authors = [ | ||
"CrabNebula Ltd.", | ||
"Tauri Programme within The Commons Conservancy", | ||
"George Burton <[email protected]>", | ||
"CrabNebula Ltd.", | ||
"Tauri Programme within The Commons Conservancy", | ||
"George Burton <[email protected]>" | ||
] | ||
edition = "2021" | ||
license = "Apache-2.0 OR MIT" | ||
keywords = ["bundle", "package", "cargo"] | ||
keywords = [ "bundle", "package", "cargo" ] | ||
categories = [ | ||
"command-line-interface", | ||
"command-line-utilities", | ||
"development-tools::cargo-plugins", | ||
"development-tools::build-utils", | ||
"os", | ||
"command-line-interface", | ||
"command-line-utilities", | ||
"development-tools::cargo-plugins", | ||
"development-tools::build-utils", | ||
"os" | ||
] | ||
repository = "https://github.com/crabnebula-dev/cargo-packager" | ||
|
||
[features] | ||
default = ["cli"] | ||
cli = ["clap", "cargo-packager-config/clap", "tracing", "tracing-subscriber"] | ||
tracing = ["dep:tracing"] | ||
|
||
[package.metadata.docs.rs] | ||
rustdoc-args = ["--cfg", "doc_cfg"] | ||
rustdoc-args = [ "--cfg", "doc_cfg" ] | ||
default-target = "x86_64-unknown-linux-gnu" | ||
targets = [ | ||
"x86_64-pc-windows-msvc", | ||
"x86_64-unknown-linux-gnu", | ||
"x86_64-apple-darwin", | ||
"x86_64-pc-windows-msvc", | ||
"x86_64-unknown-linux-gnu", | ||
"x86_64-apple-darwin" | ||
] | ||
|
||
[build-dependencies] | ||
cargo-packager-config = { path = "../config", version = "0.0.0" } | ||
serde_json.workspace = true | ||
schemars.workspace = true | ||
[features] | ||
default = [ "cli" ] | ||
cli = [ | ||
"clap", | ||
"cargo-packager-config/clap", | ||
"tracing", | ||
"tracing-subscriber" | ||
] | ||
tracing = [ "dep:tracing" ] | ||
|
||
[dependencies] | ||
cargo-packager-config = { path = "../config", version = "0.0.0" } | ||
thiserror.workspace = true | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
dunce.workspace = true | ||
dirs.workspace = true | ||
semver.workspace = true | ||
base64.workspace = true | ||
clap = { workspace = true, optional = true, features = ["env"] } | ||
cargo-packager-config = { path = "../config", version = "0.1.0" } | ||
thiserror = { workspace = true } | ||
serde = { workspace = true } | ||
serde_json = { workspace = true } | ||
dunce = { workspace = true } | ||
dirs = { workspace = true } | ||
semver = { workspace = true } | ||
base64 = { workspace = true } | ||
clap = { workspace = true, optional = true, features = [ "env" ] } | ||
tracing = { workspace = true, optional = true } | ||
tracing-subscriber = { version = "0.3", optional = true, features = [ | ||
"env-filter", | ||
] } | ||
tracing-subscriber = { version = "0.3", optional = true, features = [ "env-filter" ] } | ||
toml = "0.8" | ||
cargo_metadata = "0.18" | ||
ureq = "2.8" | ||
hex = "0.4" | ||
sha1 = "0.10" | ||
sha2 = "0.10" | ||
zip = { version = "0.6", default-features = false, features = ["deflate"] } | ||
zip = { version = "0.6", default-features = false, features = [ "deflate" ] } | ||
handlebars = "4.4" | ||
glob = "0.3" | ||
relative-path = "1.9" | ||
|
@@ -71,12 +69,15 @@ libflate = "2.0" | |
[target."cfg(target_os = \"windows\")".dependencies] | ||
winreg = "0.51" | ||
once_cell = "1.18" | ||
uuid = { version = "1", features = ["v4", "v5"] } | ||
uuid = { version = "1", features = [ "v4", "v5" ] } | ||
regex = "1.9" | ||
|
||
[target."cfg(target_os = \"windows\")".dependencies.windows-sys] | ||
version = "0.48" | ||
features = ["Win32_System_SystemInformation", "Win32_System_Diagnostics_Debug"] | ||
[target."cfg(target_os = \"windows\")".dependencies.windows-sys] | ||
version = "0.48" | ||
features = [ | ||
"Win32_System_SystemInformation", | ||
"Win32_System_Diagnostics_Debug" | ||
] | ||
|
||
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\", target_os = \"openbsd\"))".dependencies] | ||
image = "0.24" | ||
|
@@ -86,7 +87,7 @@ ar = "0.9" | |
|
||
[target."cfg(target_os = \"macos\")".dependencies] | ||
icns = { package = "tauri-icns", version = "0.1" } | ||
time = { version = "0.3", features = ["formatting"] } | ||
time = { version = "0.3", features = [ "formatting" ] } | ||
plist = "1" | ||
image = "0.24" | ||
tempfile = "3" |
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