diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-15 16:37:08 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-17 16:30:22 -0600 |
| commit | 45df4d0d9b577fecee798d672695fe24ff57fb1b (patch) | |
| tree | 1b99bf645035b58e0d6db08c7a83521f41f7a75b /vendor/itertools/src/cons_tuples_impl.rs | |
| parent | f94f79608393d4ab127db63cc41668445ef6b243 (diff) | |
feat: migrate from Cedar to SpiceDB authorization system
This is a major architectural change that replaces the Cedar policy-based
authorization system with SpiceDB's relation-based authorization.
Key changes:
- Migrate from Rust to Go implementation
- Replace Cedar policies with SpiceDB schema and relationships
- Switch from envoy `ext_authz` with Cedar to SpiceDB permission checks
- Update build system and dependencies for Go ecosystem
- Maintain Envoy integration for external authorization
This change enables more flexible permission modeling through SpiceDB's
Google Zanzibar inspired relation-based system, supporting complex
hierarchical permissions that were difficult to express in Cedar.
Breaking change: Existing Cedar policies and Rust-based configuration
will no longer work and need to be migrated to SpiceDB schema.
Diffstat (limited to 'vendor/itertools/src/cons_tuples_impl.rs')
| -rw-r--r-- | vendor/itertools/src/cons_tuples_impl.rs | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/vendor/itertools/src/cons_tuples_impl.rs b/vendor/itertools/src/cons_tuples_impl.rs deleted file mode 100644 index 7e86260b..00000000 --- a/vendor/itertools/src/cons_tuples_impl.rs +++ /dev/null @@ -1,39 +0,0 @@ -use crate::adaptors::map::{MapSpecialCase, MapSpecialCaseFn}; - -macro_rules! impl_cons_iter( - ($_A:ident, $_B:ident, ) => (); // stop - - ($A:ident, $($B:ident,)*) => ( - impl_cons_iter!($($B,)*); - #[allow(non_snake_case)] - impl<$($B),*, X> MapSpecialCaseFn<(($($B,)*), X)> for ConsTuplesFn { - type Out = ($($B,)* X, ); - fn call(&mut self, (($($B,)*), X): (($($B,)*), X)) -> Self::Out { - ($($B,)* X, ) - } - } - ); -); - -impl_cons_iter!(A, B, C, D, E, F, G, H, I, J, K, L,); - -#[derive(Debug, Clone)] -pub struct ConsTuplesFn; - -/// An iterator that maps an iterator of tuples like -/// `((A, B), C)` to an iterator of `(A, B, C)`. -/// -/// Used by the `iproduct!()` macro. -pub type ConsTuples<I> = MapSpecialCase<I, ConsTuplesFn>; - -/// Create an iterator that maps for example iterators of -/// `((A, B), C)` to `(A, B, C)`. -pub fn cons_tuples<I>(iterable: I) -> ConsTuples<I::IntoIter> -where - I: IntoIterator, -{ - ConsTuples { - iter: iterable.into_iter(), - f: ConsTuplesFn, - } -} |
