Skip to content

Commit

Permalink
release: apply version updates from current changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Oct 5, 2023
1 parent e66ce50 commit e4f8729
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 28 deletions.
5 changes: 0 additions & 5 deletions .changes/config-enabled.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/packager-enabled.md

This file was deleted.

4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions crates/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## \[0.2.0]

- [`1809f10`](https://www.github.com/crabnebula-dev/cargo-packager/commit/1809f10b4fd1720fd740196f67c3c980ade0a6bd) Add `Config.enabled` field control whether this config is enabled or not
2 changes: 1 addition & 1 deletion crates/config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-packager-config"
version = "0.1.0"
version = "0.2.0"
description = "Config types for cargo-packager."
authors = [
"CrabNebula Ltd.",
Expand Down
2 changes: 1 addition & 1 deletion crates/config_schema_generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ authors = ["CrabNebula Ltd."]
license = "Apache-2.0 OR MIT"

[build-dependencies]
cargo-packager-config = { path = "../config", version = "0.1.0" }
cargo-packager-config = { path = "../config" }
serde_json = { workspace = true }
schemars = { workspace = true }
8 changes: 8 additions & 0 deletions crates/packager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## \[0.1.2]

- [`1809f10`](https://www.github.com/crabnebula-dev/cargo-packager/commit/1809f10b4fd1720fd740196f67c3c980ade0a6bd) Respect the `config.enabled` option.

### Dependencies

- Upgraded to `[email protected]`

## \[0.1.1]

- [`2d8b8d7`](https://www.github.com/crabnebula-dev/cargo-packager/commit/2d8b8d7c1af73202639449a00dbc51bf171effc7) Initial Release
10 changes: 3 additions & 7 deletions crates/packager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-packager"
version = "0.1.1"
version = "0.1.2"
description = "Rust executable packager and bundler CLI and library."
authors = [
"CrabNebula Ltd.",
Expand Down Expand Up @@ -30,14 +30,10 @@ targets = [

[features]
default = [ "cli" ]
cli = [
"clap",
"cargo-packager-config/clap",
"tracing-subscriber"
]
cli = [ "clap", "cargo-packager-config/clap", "tracing-subscriber" ]

[dependencies]
cargo-packager-config = { path = "../config", version = "0.1.0" }
cargo-packager-config = { path = "../config", version = "0.2.0" }
thiserror = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
Expand Down
11 changes: 4 additions & 7 deletions crates/packager/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,17 @@ fn parse_log_level(verbose: u8) -> tracing::Level {
pub fn run() {
// prepare cli args
let mut args = std::env::args_os().peekable();
match args
if let Some("cargo-packager") = args
.next()
.as_deref()
.map(Path::new)
.and_then(Path::file_stem)
.and_then(OsStr::to_str)
{
Some("cargo-packager") => {
if args.peek().and_then(|s| s.to_str()) == Some("packager") {
// remove the extra cargo subcommand
args.next();
}
if args.peek().and_then(|s| s.to_str()) == Some("packager") {
// remove the extra cargo subcommand
args.next();
}
_ => {}
}

let cli = Cli::command();
Expand Down

0 comments on commit e4f8729

Please sign in to comment.