Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit 576cf49

Browse files
committed
fix(rtc_types::enclave_messages): work around cbindgen generic type handling issues
Issues: * mozilla/cbindgen#7 * mozilla/cbindgen#286 * mozilla/cbindgen#573
1 parent 25b471e commit 576cf49

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

rtc_types/src/enclave_messages/mod.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,15 @@ pub struct EncryptedEnclaveMessage<const MESSAGE_SIZE: usize, const AAD_SIZE: us
1111
pub nonce: RecommendedAesGcmIv,
1212
}
1313

14-
pub mod ffi_set_access_key;
14+
/// XXX: Ignore this module to work around cbindgen generic type handling
15+
///
16+
/// Issues:
17+
///
18+
/// * <https://github.com/eqrion/cbindgen/issues/7>
19+
/// * <https://github.com/eqrion/cbindgen/issues/286>
20+
/// * <https://github.com/eqrion/cbindgen/issues/573>
21+
///
22+
/// cbindgen:ignore
1523
pub mod set_access_key;
24+
25+
pub mod ffi_set_access_key;

rtc_types/src/enclave_messages/set_access_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use core::mem;
22

33
use rkyv::{Archive, Deserialize, Serialize};
44

5-
use crate::enclave_messages::EncryptedEnclaveMessage;
5+
use crate::enclave_messages::{EncryptedEnclaveMessage, ARCHIVED_ENCLAVE_ID_SIZE};
66

77
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq, Clone)]
88
pub struct Request {

0 commit comments

Comments
 (0)