Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github May 4, 2022

Bumps const_format from 0.2.20 to 0.2.23.

Release notes

Sourced from const_format's releases.

0.2.22 release

This release adds the assertcp, assertcp_eq, and assertcp_ne macros for compile-time assertions with formatting. Those macros are enabled with the "assercp" feature, and require Rust 1.57.0 to use.

Changelog

0.2.22

Added the assertcp, assertcp_ne, and assertcp_eq macros under the "assertcp" feature.

Added const_eq methods for PWrapper<&[char]> and PWrapper<Option<char>>

Added the "assertcp" feature, which enables the assertcp* macros.

Aliased "assert" crate feature to "assertc", and removed old name from docs to reduce confusion.

0.2.21 release

This release improves the assertion failure message for all the assertc* macros.

Example

Code:

#![feature(const_mut_refs)]
use const_format::{StrWriter, assertc_ne, writec};
use const_format::utils::str_eq;
macro_rules! check_valid_pizza{
($user:expr, $topping:expr) => {
assertc_ne!(
$topping,
"pineapple",
"You can't put pineapple on pizza, {}",
$user,
);
}
}
check_valid_pizza!("John", "salami");
check_valid_pizza!("Dave", "sausage");
check_valid_pizza!("Bob", "pineapple");

Error message before:

error: any use of this value will cause an error
  --> src/lib.rs:140:1
   |
22 | check_valid_pizza!("Bob", "pineapple");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ exceeded interpreter step limit (see `#[const_eval_limit]`)
</tr></table> 

... (truncated)

Changelog

Sourced from const_format's changelog.

0.2.23

Added type annotations to concatp, concatcp, formatc and formatcp macros to help IDEs infer the type.

0.2.22

Added the assertcp, assertcp_ne, and assertcp_eq macros under the "assertcp" feature.

Added const_eq methods for PWrapper<&[char]> and PWrapper<Option<char>>

Added the "assertcp" feature, which enables the assertcp* macros.

Aliased "assert" crate feature to "assertc", and removed old name from docs to reduce confusion.

0.2.21

Rewrote assertion macros to:

  • Have more concise error messages
  • Point to all their arguments when the assertion fails
  • Resemble std error messages more

0.2.19

Added char support to all formatting macros.

Added char, &[char], and Option<char> impls of FormatMarker trait, with debug formatting methods.

Added Formatter::{write_char, write_char_debug} methods.

Added StrWriterMut::{as_str_alt, write_char, write_char_debug} methods.

Added StrWriter::{as_str_alt, unsize} methods.

Deprecated strwriter_as_str macro, superceded by StrWriter::as_str_alt.

Bumped the minimum required nightly version to 2021-07-05 due to use of const-stabilized core::str::from_utf8_unchecked.

0.2.18

Fixed potential soundness bug where unions used to do pointer casts were not #[repr(C)]

0.2.16

Added these macros that act like str methods:

  • str_get
  • str_index
  • str_repeat
  • str_replace
  • str_splice

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [const_format](https://github.com/rodrimati1992/const_format_crates) from 0.2.20 to 0.2.23.
- [Release notes](https://github.com/rodrimati1992/const_format_crates/releases)
- [Changelog](https://github.com/rodrimati1992/const_format_crates/blob/master/Changelog.md)
- [Commits](https://github.com/rodrimati1992/const_format_crates/commits)

---
updated-dependencies:
- dependency-name: const_format
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels May 4, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github May 30, 2022

Superseded by #101.

@dependabot dependabot bot closed this May 30, 2022
@dependabot dependabot bot deleted the dependabot/cargo/const_format-0.2.23 branch May 30, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants