Skip to content

Commit 006e819

Browse files
authored
rvm: switch binary serialization to postcard (microsoft#582)
Move RVM binary encoding from bincode to postcard and bump the format version. Update test helpers, docs, changelog, and refresh lockfiles after the swap. Closes microsoft#575 Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
1 parent b6f11c5 commit 006e819

13 files changed

Lines changed: 261 additions & 268 deletions

File tree

.github/workflows/rust-clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949

5050
- name: Run rust-clippy
5151
run: cargo xtask clippy --sarif rust-clippy-results.sarif
52-
continue-on-error: true
5352

5453
- name: Upload analysis results to GitHub
54+
if: ${{ hashFiles('rust-clippy-results.sarif') != '' }}
5555
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.11
5656
with:
5757
sarif_file: rust-clippy-results.sarif

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- Azure RBAC condition interpreter with builtin evaluation coverage and YAML test suite, including quantifier (ForAnyOfAnyValues/ForAllOfAllValues), datetime (DateTimeEquals), IP (IpInRange), GUID (GuidEquals), list (ListContains), and string (StringEquals) semantics.
1111
- FFI surface for Azure RBAC condition evaluation (see bindings changelog for language-specific wrappers).
1212

13+
### Changed
14+
- [**breaking**] Switch RVM binary serialization to postcard, bump the format to v4, and mark v1-3 loads as partial (recompile required).
15+
1316
## [0.9.1](https://github.com/microsoft/regorus/compare/regorus-v0.9.0...regorus-v0.9.1) - 2026-02-06
1417

1518
### Fixed

Cargo.lock

Lines changed: 34 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ net = ["dep:ipnet"]
3939
no_std = ["lazy_static/spin_no_std"]
4040
opa-runtime = []
4141
regex = ["dep:regex"]
42-
rvm = ["dep:bincode", "dep:indexmap"]
42+
rvm = ["dep:postcard", "dep:indexmap"]
4343
semver = ["dep:semver"]
4444
allocator-memory-limits = ["std", "mimalloc", "mimalloc/allocator-memory-limits"]
4545
std = ["rand/std", "rand/std_rng", "serde_json/std", "msvc_spectre_libs" ]
@@ -128,7 +128,7 @@ mimalloc = { package = "regorus-mimalloc", path = "mimalloc", version = "2.2.6",
128128

129129
# rvm related deps
130130
indexmap = { version = "2.12.1", default-features = false, features = ["serde"], optional = true }
131-
bincode = { version = "2.0.1", default-features = false, features = ["alloc", "serde"], optional = true }
131+
postcard = { version = "1.1.3", default-features = false, features = ["alloc"], optional = true }
132132

133133
[dev-dependencies]
134134
anyhow = "1.0.45"

bindings/ffi/Cargo.lock

Lines changed: 34 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/java/Cargo.lock

Lines changed: 34 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)