Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a str version of const_cstr_from_bytes! #11

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

lopopolo
Copy link
Member

For improved ergonomics when constructing consts, add a new macro
qed::const_cstr_from_str! which takes a const &str argument.

String slices are easier to construct inline to the macro than byte
slices which may require an intermediate constant to do the slice
coercion.

Prepare for v1.3.0 release.

For improved ergonomics when constructing consts, add a new macro
`qed::const_cstr_from_str!` which takes a const `&str` argument.

String slices are easier to construct inline to the macro than byte
slices which may require an intermediate constant to do the slice
coercion.

Prepare for v1.3.0 release.
@lopopolo lopopolo added A-macros Area: macro_rules macros. A-release Area: crates.io releases and version bumps. labels Apr 14, 2022
@lopopolo lopopolo merged commit 8dccfee into trunk Apr 14, 2022
@lopopolo lopopolo deleted the lopopolo/cstr-const-from-string branch April 14, 2022 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: macro_rules macros. A-release Area: crates.io releases and version bumps.
Development

Successfully merging this pull request may close these issues.

1 participant