-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from rodrimati1992/0.2patch
0.2.14 release
- Loading branch information
Showing
18 changed files
with
128 additions
and
90 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "const_format" | ||
version = "0.2.13" | ||
version = "0.2.14" | ||
authors = ["rodrimati1992 <[email protected]>"] | ||
edition = "2018" | ||
license = "Zlib" | ||
|
@@ -24,7 +24,7 @@ travis-ci = { repository = "rodrimati1992/const_format_crates/" } | |
default = [] | ||
const_generics = [] | ||
nightly_const_generics = ["const_generics"] | ||
fmt = [] | ||
fmt = ["const_generics"] | ||
derive = ["fmt", "const_format_proc_macros/derive"] | ||
assert = ["fmt"] | ||
constant_time_as_str = ["fmt"] | ||
|
@@ -37,7 +37,7 @@ docsrs = [] | |
all = ["fmt", "derive", "constant_time_as_str", "nightly_const_generics", "assert", "docsrs"] | ||
|
||
[dependencies.const_format_proc_macros] | ||
version = "=0.2.8" | ||
version = "=0.2.14" | ||
path = "../const_format_proc_macros" | ||
|
||
[dev-dependencies] | ||
|
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,22 @@ | ||
//! Reimplements some stuff from concatcp to be const generic instead of macro generated | ||
|
||
use crate::pmr::{LenAndArray, PArgument, PVariant}; | ||
|
||
#[doc(hidden)] | ||
pub const fn __priv_concatenate<const LEN: usize>(input: &[PArgument]) -> LenAndArray<[u8; LEN]> { | ||
let mut out = LenAndArray { | ||
len: 0, | ||
array: [0u8; LEN], | ||
}; | ||
|
||
crate::__for_range! { outer_i in 0..input.len() => | ||
let current = &input[outer_i]; | ||
|
||
match current.elem { | ||
PVariant::Str(s) => crate::__write_pvariant!(str, current, s => out), | ||
PVariant::Int(int) => crate::__write_pvariant!(int, current, int => out), | ||
} | ||
} | ||
|
||
out | ||
} |
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "const_format_proc_macros" | ||
version = "0.2.8" | ||
version = "0.2.14" | ||
authors = ["rodrimati1992 <[email protected]>"] | ||
edition = "2018" | ||
license = "Zlib" | ||
|
Oops, something went wrong.