Skip to main content

rave_core/
lib.rs

1#![doc = include_str!("../README.md")]
2
3pub mod backend;
4pub mod codec_traits;
5pub mod context;
6pub mod debug_alloc;
7pub mod error;
8pub mod ffi_types;
9pub mod host_copy_audit;
10pub mod types;
11
12#[macro_export]
13macro_rules! host_copy_violation {
14    ($stage:expr, $($arg:tt)+) => {{
15        #[cfg(feature = "audit-no-host-copies")]
16        {
17            $crate::host_copy_audit::record_violation($stage, format!($($arg)+));
18        }
19        #[cfg(not(feature = "audit-no-host-copies"))]
20        {
21            let _ = &$stage;
22            let _ = format_args!($($arg)+);
23        }
24    }};
25}