casbin / casbin-rs

An authorization library that supports access control models like ACL, RBAC, ABAC in Rust.
https://casbin.org
Apache License 2.0
828 stars 67 forks source link

build(deps): update criterion requirement from 0.3.5 to 0.4.0 #300

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Updates the requirements on criterion to permit the latest version.

Changelog

Sourced from criterion's changelog.

[0.4.0] - 2022-09-10

Removed

  • The Criterion::can_plot function has been removed.
  • The Criterion::bench_function_over_inputs function has been removed.
  • The Criterion::bench_functions function has been removed.
  • The Criterion::bench function has been removed.

Changed

  • HTML report hidden behind non-default feature flag: 'html_reports'
  • Standalone support (ie without cargo-criterion) feature flag: 'cargo_bench_support'
  • MSRV bumped to 1.57
  • rayon and plotters are optional (and default) dependencies.
  • Status messages ('warming up', 'analyzing', etc) are printed to stderr, benchmark results are printed to stdout.
  • Accept subsecond durations for --warm-up-time, --measurement-time and --profile-time.
  • Replaced serde_cbor with ciborium because the former is no longer maintained.
  • Upgrade clap to v3 and regex to v1.5.

Added

  • A --discard-baseline flag for discarding rather than saving benchmark results.
  • Formal support for benchmarking code compiled to web-assembly.
  • A --quiet flag for printing just a single line per benchmark.
  • A Throughput::BytesDecimal option for measuring throughput in bytes but printing them using decimal units like kilobytes instead of binary units like kibibytes.

Fixed

  • When using bench_with_input, the input parameter will now be passed through black_box before passing it to the benchmark.

[0.3.6] - 2022-07-06

Changed

  • MSRV bumped to 1.49
  • Symbol for microseconds changed from ASCII 'us' to unicode 'µs'
  • Documentation fixes
  • Clippy fixes

[0.3.5] - 2021-07-26

Fixed

  • Corrected Criterion.toml in the book.
  • Corrected configuration typo in the book.

Changed

  • Bump plotters dependency to always include a bug-fix.
  • MSRV bumped to 1.46.

... (truncated)

Commits
  • 5e27b69 Merge branch 'version-0.4'
  • 4d6d69a Increment version numbers.
  • 935c632 Add Throughput::BytesDecimal. Fixes #581.
  • f82ce59 Remove critcmp code (it belongs in cargo-criterion) (#610)
  • a18d080 Merge branch 'master' into version-0.4
  • f9c6b8d Merge pull request #608 from Cryptex-github/patch-1
  • 8d0224e Fix html report path
  • 2934163 Add missing black_box for bench_with_input parameters. Fixes 566.
  • dfd7b65 Add duplicated benchmark ID to assertion message.
  • ce8259e Bump criterion-plot version number.
  • Additional commits viewable in compare view


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)
casbin-bot commented 1 year ago

@hackerchai @PsiACE please review

CLAassistant commented 1 year ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

codecov[bot] commented 1 year ago

Codecov Report

Merging #300 (c5850aa) into master (e161068) will decrease coverage by 0.14%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #300      +/-   ##
==========================================
- Coverage   81.46%   81.31%   -0.15%     
==========================================
  Files          23       24       +1     
  Lines        3463     3479      +16     
==========================================
+ Hits         2821     2829       +8     
- Misses        642      650       +8     
Impacted Files Coverage Δ
src/error.rs 55.55% <0.00%> (-15.88%) :arrow_down:
src/util.rs 94.56% <0.00%> (-2.07%) :arrow_down:
src/config.rs 85.62% <0.00%> (-0.38%) :arrow_down:
src/lib.rs 0.00% <0.00%> (ø)
src/convert.rs 54.28% <0.00%> (+9.12%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

github-actions[bot] commented 1 year ago

Benchmark for e161068

Click to view benchmark | Test | PR Benchmark | Master Benchmark | % | |------|--------------|------------------|---| | b_benchmark_rbac_model_large | 12.4±0.01ms | 12.4±0.05ms | 0.00% | | benchmark priority model | 6.9±0.01µs | **6.7±0.03µs** | **+2.99%** | | benchmark_abac_model | 3.9±0.01µs | **3.8±0.00µs** | **+2.63%** | | benchmark_basic_model | 6.2±0.16µs | **5.9±0.01µs** | **+5.08%** | | benchmark_key_match | 19.1±0.05µs | **19.0±0.31µs** | **+0.53%** | | benchmark_raw | 3.3±0.02ns | 3.3±0.00ns | 0.00% | | benchmark_rbac_model | 9.4±0.07µs | **9.2±0.02µs** | **+2.17%** | | benchmark_rbac_model_medium | 1140.7±0.86µs | **1132.4±0.71µs** | **+0.73%** | | benchmark_rbac_model_with_domains | 9.5±0.01µs | **9.4±0.02µs** | **+1.06%** | | benchmark_rbac_with_deny | 12.5±0.04µs | **12.3±0.01µs** | **+1.63%** | | benchmark_rbac_with_resource_roles | 7.0±0.01µs | 7.0±0.01µs | 0.00% | | benchmark_role_manager_large | 4.9±0.00ms | **4.8±0.00ms** | **+2.08%** | | benchmark_role_manager_medium | 423.3±0.21µs | **408.8±0.24µs** | **+3.55%** | | benchmark_role_manager_small | 121.4±0.15µs | **120.6±0.42µs** | **+0.66%** |
dependabot[bot] commented 1 year ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.