cel-cxx-macros

Crates.iocel-cxx-macros
lib.rscel-cxx-macros
version0.2.1
created_at2025-06-24 14:29:20.390817+00
updated_at2025-08-14 13:45:17.158139+00
descriptionMacros for the cel-cxx crate
homepagehttps://github.com/xjasonli/cel-cxx
repositoryhttps://github.com/xjasonli/cel-cxx
max_upload_size
id1724391
size16,089
Jason Li (xjasonli)

documentation

https://docs.rs/cel-cxx-macros

README

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.

Commit count: 0

cargo fmt