cel-cxx-macros 0.2.5

Macros for the cel-cxx crate
Documentation

cel-cxx-macros

Crates.io Docs.rs

Procedural macros for the cel-cxx crate.

This crate provides derive macros that enable seamless integration of custom Rust types with CEL expressions.

Macros

#[derive(Opaque)]

Automatically implements the necessary traits to use custom Rust types in CEL expressions:

use cel_cxx_macros::Opaque;

#[derive(Opaque, Debug, Clone)]
#[cel_cxx(type = "myapp.User")]
#[cel_cxx(display)]
struct User {
    name: String,
    age: i32,
}

License

Licensed under the Apache License 2.0. See the LICENSE file for details.