Skip to content

Commit

Permalink
Add more_lengths feature
Browse files Browse the repository at this point in the history
  • Loading branch information
novacrazy committed Jul 8, 2019
1 parent 49179ad commit 1820105
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ travis-ci = { repository = "fizyk20/generic-array" }
[lib]
name = "generic_array"

[features]
more_lengths = []

[dependencies]
typenum = "1.10"
serde = { version = "1.0", optional = true, default-features = false }
Expand Down
5 changes: 4 additions & 1 deletion src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,11 @@ impl_from! {
29 => ::typenum::U29,
30 => ::typenum::U30,
31 => ::typenum::U31,
32 => ::typenum::U32,
32 => ::typenum::U32
}

#[cfg(feature = "more_lengths")]
impl_from! {
33 => ::typenum::U33,
34 => ::typenum::U34,
35 => ::typenum::U35,
Expand Down

0 comments on commit 1820105

Please sign in to comment.