Skip to content

Parser and evaluator for Accumulo Access Expressions for Rust and WASM

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

larsw/accumulo-access-rs

Repository files navigation

Accumulo Access for Rust

Introduction

This crate provides a Rust API for parsing and evaluating Accumulo Access Expressions, based on the AccessExpression specification.

Usage

Add the following to your Cargo.toml:

[dependencies]
accumulo-access = "0.1"

Example

use accumulo_access::check_authorization;

fn main() {
    let expr = "A&B&(C|D)";
    let auths = vec!["A", "B", "C"];
    let result = check_authorization(expr, auths);
    assert!(result.is_ok());
}

Limitations

  • It doesn't have functionality for normalizing expressions (ref. the Java-based accumulo-access project).

Known usages

Maintainers

License

Licensed under both the Apache License, Version 2.0 (LICENSE_APACHE or http://www.apache.org/licenses/LICENSE-2.0) and the MIT License LICENSE_MIT.

About

Parser and evaluator for Accumulo Access Expressions for Rust and WASM

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages