Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fix bpf conditional compilation for message module
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Aug 17, 2021
1 parent b16fb60 commit 2e0b993
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions sdk/program/src/message/mod.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
//! A library for generating a message from a sequence of instructions
pub mod legacy;
mod mapped;
mod sanitized;

#[cfg(not(target_arch = "bpf"))]
pub mod v0;
mod versions;
#[path = ""]
mod not_bpf_modules {
mod mapped;
mod sanitized;
pub mod v0;
mod versions;

pub use mapped::*;
pub use sanitized::*;
pub use versions::*;
}

pub use legacy::Message;

#[cfg(not(target_arch = "bpf"))]
pub use mapped::*;
#[cfg(not(target_arch = "bpf"))]
pub use sanitized::*;
#[cfg(not(target_arch = "bpf"))]
pub use versions::*;
pub use not_bpf_modules::*;

/// The length of a message header in bytes
pub const MESSAGE_HEADER_LENGTH: usize = 3;
Expand Down

0 comments on commit 2e0b993

Please sign in to comment.