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/petgraph/benches/graph6_decoder.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/petgraph/benches/graph6_decoder.rs')
| -rw-r--r-- | vendor/petgraph/benches/graph6_decoder.rs | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/vendor/petgraph/benches/graph6_decoder.rs b/vendor/petgraph/benches/graph6_decoder.rs deleted file mode 100644 index dd6b5b9d..00000000 --- a/vendor/petgraph/benches/graph6_decoder.rs +++ /dev/null @@ -1,37 +0,0 @@ -#![feature(test)] - -extern crate petgraph; -extern crate test; - -use petgraph::graph6::from_graph6_representation; -use test::Bencher; - -#[bench] -fn from_graph6_str_complete_7(bench: &mut Bencher) { - from_graph6_bench(bench, r"F~~~w"); -} - -#[bench] -fn from_graph6_str_petersen(bench: &mut Bencher) { - from_graph6_bench(bench, r"IheA@GUAo"); -} - -#[bench] -fn from_graph6_str_62(bench: &mut Bencher) { - from_graph6_bench( - bench, - r"}x@?xx|G[RO{QRDDMWAJ@XAT\M@IBsP?P[jJKOECP_QKSsL@_Th?mUp@@WC_woIl_nI?AF_ISAGNGxe?pikrJVOwWEqoMKhWGAjk[XPn?WUGrWC]jUjwPJLF@?OU?IGSoqT_rpEM[KCpTvGYBgRvOyJ`\adaY?qsESfR{IQWs?mT}bB@[|?p}MOCOEUZKMw]xKeV[en_EK{eBN?Add?H_@GeE_Bo@?_?PmabQuWc?FHVWcwCLWUF]l??WdIOtyePOc`Sb{SGCU[[__b[OiWnDeCXB@CwW@q_GAYY^eWD[tmoPDf{W]eKjzWCCKOj_", - ); -} - -#[bench] -fn from_graph6_str_63(bench: &mut Bencher) { - from_graph6_bench( - bench, - r"~??~`U@aoLr_G\V`YnUdSA[@PG?CjSvrrFONaJODKrXQMOMEcExcwEILVHfUDsB[rGLhVVYJgI?DRSBAgsFwAVzs@gct_AL`NkAoRCaHOaTGWcgPs{@a_s^HLZBaB_[W_o__U|aRGLpdK@{EJ?xQOCcOksK_X@AI`aleB\KDwlOX?_@`_K@SD?QOQ?dAz]?hb{UYvdRRoQPrGKdgfUKIDQM\mZCjJW|?~XcoyIHEr~HycEDToBFD?_DT?bYNaQaQ`BMAYWuyo@Uz{dQwViiepaHfAdaaGO[CHW]ggCka?s@g@b?cbI[a@`BlU^nFxy?YL?R[GKIPm_", - ); -} - -fn from_graph6_bench(bench: &mut Bencher, graph6_str: &str) { - bench.iter(|| (from_graph6_representation::<u16>(graph6_str.to_string()))); -} |
