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

Bump inline_tweak from 1.0.11 to 1.1.0 #72

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 30, 2024

Bumps inline_tweak from 1.0.11 to 1.1.0.

Release notes

Sourced from inline_tweak's releases.

inline_tweak 1.1.0 - Introducing #[tweak_fn] proc-macro

inline_tweak can now be applied to an entire function body using the #[tweak_fn] proc macro. It turns every literal into a tweakable value.

To allow this, inline_tweak was refactored to be much more optimized in how it reads files/file updates. Tweak reads are now almost always one hashmap lookup and files are read only once per update.

#[inline_tweak::tweak_fn]
fn main() {
    loop {
        let v = 1.0 + 5.0; // update any literal while the program is running!
        let name = "John
                     Doe"; // Multi line strings also work!
        println!("{}: {}", name, v);
    }
}
Changelog

Sourced from inline_tweak's changelog.

[1.1.0]

  • Introduce derive feature to allow #[tweak_fn] on functions.
  • All calls to tweak are now almost always at most one hashmap lookup.
  • Cache stat syscalls.
  • Only read file from disk once per file change instead of per tweak in that file.
  • Add dependency on rustc-hash for faster hashing (no need for DOS protection).
  • Support multiline strings in tweak_fn proc-macro
  • Support more syntax for integers (e.g 0xFF_FF_u64) and floats (e.g 1_000.0f64)

These optimizations heavily reduce the overhead of using tweak!
This allows the proc-macro adding tweaks to all literals of not being too heavy.

Commits
  • 9f71dab chore: Release inline_tweak_derive version 1.1.0
  • 82351c3 make inline tweak work with const/statics/literal in types
  • ae433ab chore: Release inline_tweak version 1.0.13
  • a2fe891 changelog
  • ed64160 chore: Release inline_tweak_derive version 1.0.1
  • f7528ae release tweak need not be a feature in derive
  • c97ed41 chore: Release inline_tweak version 1.0.12
  • 28e77f0 put crates.io dep for derive
  • e7112cd ignore Cargo.lock
  • 665e0e5 clearer var names
  • Additional commits viewable in compare view

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 30, 2024
Bumps [inline_tweak](https://github.com/Uriopass/inline_tweak) from 1.0.11 to 1.1.0.
- [Release notes](https://github.com/Uriopass/inline_tweak/releases)
- [Changelog](https://github.com/Uriopass/inline_tweak/blob/master/CHANGELOG.md)
- [Commits](Uriopass/inline_tweak@v1.0.11...inline_tweak_derive-v1.1.0)

---
updated-dependencies:
- dependency-name: inline_tweak
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/inline_tweak-1.1.0 branch from 41ce74f to 1eebd43 Compare February 3, 2024 15:37
@martin-t martin-t merged commit eb1db2b into master Feb 3, 2024
9 checks passed
@dependabot dependabot bot deleted the dependabot/cargo/inline_tweak-1.1.0 branch February 3, 2024 15:38
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant