cedar-policy 4.10.0

Cedar is a language for defining permissions as policies, which describe who should have access to what.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(feature = "wasm")]
use wasm_bindgen::prelude::wasm_bindgen;

use crate::api;

/// Get language version of Cedar
#[cfg_attr(feature = "wasm", wasm_bindgen(js_name = "getCedarLangVersion"))]
pub fn get_lang_version() -> String {
    let version = api::version::get_lang_version();
    format!("{}.{}", version.major, version.minor)
}

/// Get SDK version of Cedar
pub fn get_sdk_version() -> String {
    let version = api::version::get_sdk_version();
    format!("{version}")
}