@@ -66,7 +66,7 @@ impl Origin {
6666 }
6767}
6868
69- /// This is used internally by [`crate::generate_handler!`]
69+ /// This is used internally by [`crate::generate_handler!`] for constructing [`RuntimeAuthority`]
7070/// to only include the raw ACL when it's needed
7171///
7272/// ## Stability
@@ -77,13 +77,13 @@ impl Origin {
7777#[ cfg( any( feature = "dynamic-acl" , debug_assertions) ) ]
7878#[ doc( hidden) ]
7979#[ macro_export]
80- macro_rules! runtime_acl {
81- ( $func : path , $ acl: expr, $resolved_acl: expr) => {
82- $func ( $acl, $resolved_acl)
80+ macro_rules! runtime_authority {
81+ ( $acl: expr, $resolved_acl: expr) => {
82+ $crate :: ipc :: RuntimeAuthority :: new ( $acl, $resolved_acl)
8383 } ;
8484}
8585
86- /// This is used internally by [`crate::generate_handler!`]
86+ /// This is used internally by [`crate::generate_handler!`] for constructing [`RuntimeAuthority`]
8787/// to only include the raw ACL when it's needed
8888///
8989/// ## Stability
@@ -94,13 +94,16 @@ macro_rules! runtime_acl {
9494#[ cfg( not( any( feature = "dynamic-acl" , debug_assertions) ) ) ]
9595#[ doc( hidden) ]
9696#[ macro_export]
97- macro_rules! runtime_acl {
98- ( $func : path , $ _acl: expr, $resolved_acl: expr) => {
99- $func ( $resolved_acl)
97+ macro_rules! runtime_authority {
98+ ( $_acl: expr, $resolved_acl: expr) => {
99+ $crate :: ipc :: RuntimeAuthority :: new ( $resolved_acl)
100100 } ;
101101}
102102
103103impl RuntimeAuthority {
104+ /// Contruct a new [`RuntimeAuthority`] from the ACL
105+ ///
106+ /// **Please prefer using the [`runtime_authority`] macro instead of calling this directly**
104107 #[ doc( hidden) ]
105108 pub fn new (
106109 #[ cfg( any( feature = "dynamic-acl" , debug_assertions) ) ] acl : BTreeMap < String , Manifest > ,
0 commit comments