Skip to content

Commit

Permalink
Release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Sep 22, 2022
1 parent b6c8de5 commit 6b48627
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-subcommand"
version = "0.7.0"
version = "0.8.0"
authors = ["David Craven <david@craven.ch>", "Marijn Suijten <marijn@traverseresearch.nl>"]
edition = "2018"
description = "Library for creating cargo subcommands."
Expand All @@ -11,10 +11,9 @@ license = "ISC"
default = ["clap"]

[dependencies]
clap = { version = "3.1.6", optional = true, features = ["derive"] }
clap = { version = "3.2.22", optional = true, features = ["derive"] }
current_platform = "0.2.0"
dunce = "1.0.1"
dunce = "1.0.2"
glob = "0.3.0"
serde = { version = "1.0.123", features = ["derive"] }
toml = "0.5.8"

serde = { version = "1.0.144", features = ["derive"] }
toml = "0.5.9"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# cargo-subcommand library for building subcommands
Is used by `cargo-ndk` and `cargo-flutter`.
Is used by `cargo-apk` and `cargo-flutter`.

# License
Copyright 2020 David Craven <david@craven.ch>
Expand Down
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Display for EnvError {

impl std::error::Error for EnvError {}

#[derive(Clone, Debug, Deserialize, PartialEq)]
#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
pub struct Config {
pub build: Option<Build>,
Expand Down Expand Up @@ -117,15 +117,15 @@ impl LocalizedConfig {
}
}

#[derive(Clone, Debug, Deserialize, PartialEq)]
#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
pub struct Build {
pub target_dir: Option<String>,
}

/// Serializable environment variable in cargo config, configurable as per
/// <https://doc.rust-lang.org/cargo/reference/config.html#env>,
#[derive(Clone, Debug, Deserialize, PartialEq)]
#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]
#[serde(untagged, rename_all = "kebab-case")]
pub enum EnvOption {
String(String),
Expand Down

0 comments on commit 6b48627

Please sign in to comment.