1pub mod protos {
2 include!("generated/org.solana.sealevel.v1.rs");
3}
4
5pub const VERSION: &str = env!("CARGO_PKG_VERSION");
7
8pub const FILE_DESCRIPTOR_SET_BYTES: &[u8] = include_bytes!("generated/file_descriptor_set.bin");
13
14mod accessors;
15
16#[cfg(feature = "solana-types")]
17pub mod convert;
18
19#[cfg(test)]
20mod tests {
21 use crate::{protos, VERSION};
22
23 #[test]
24 fn can_create_txn() {
25 let txn = protos::SanitizedTransaction {
26 ..Default::default()
27 };
28 assert_eq!(
29 txn,
30 protos::SanitizedTransaction {
31 ..Default::default()
32 }
33 );
34 }
35
36 #[test]
37 fn exports_crate_version() {
38 assert_eq!(VERSION, env!("CARGO_PKG_VERSION"));
39 }
40}