Skip to content

Commit

Permalink
Reexport paw
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepySkeleton committed Jul 26, 2020
1 parent 2d8ba48 commit 26856fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lints = ["clap/lints"]
debug = ["clap/debug"]
no_cargo = ["clap/no_cargo"]
doc = ["clap/doc"]
paw = ["structopt-derive/paw"]
paw = ["structopt-derive/paw", "paw_dep"]

[badges]
travis-ci = { repository = "TeXitoi/structopt" }
Expand All @@ -30,6 +30,7 @@ travis-ci = { repository = "TeXitoi/structopt" }
clap = { version = "2.33", default-features = false }
structopt-derive = { path = "structopt-derive", version = "=0.4.8" }
lazy_static = "1.4.0"
paw_dep = { version = "1", optional = true, package = "paw" }

[dev-dependencies]
trybuild = { version = "1.0.5", features = ["diff"] }
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,8 @@ use std::ffi::OsString;

/// Re-exports
pub use clap;
#[cfg(feature = "paw")]
pub use paw_dep as paw;

/// **This is NOT PUBLIC API**.
#[doc(hidden)]
Expand Down
2 changes: 1 addition & 1 deletion structopt-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ fn gen_from_subcommand(
#[cfg(feature = "paw")]
fn gen_paw_impl(name: &Ident) -> TokenStream {
quote! {
impl paw::ParseArgs for #name {
impl ::structopt::paw::ParseArgs for #name {
type Error = std::io::Error;

fn parse_args() -> std::result::Result<Self, Self::Error> {
Expand Down

0 comments on commit 26856fe

Please sign in to comment.