oso 0.7.1

New features

Modulo and remainder operators

The new mod and rem arithmetic operators can calculate moduli and remainders, respectively:

1 mod 3 == 1
1 rem 3 == 1
-1 mod 3 == 2
-1 rem 3 == -1

Other bugs & improvements

  • Improved Rust library API for converting between Oso Values and native Rust types.
  • More detailed error messages in the Rust library for type errors.
  • The preview list filtering feature in django-oso now handles more policies correctly, and consistently raises errors for policies that cannot yet be converted to a Django Query filter.

Set up a 1x1 with an Oso Engineer

Our team is happy to help you get started with Oso. If you'd like to learn more about using Oso in your app or have any questions about this guide, schedule a 1x1 with an Oso engineer.

Was this page useful?