Skip to content

Commit 494f9fb

Browse files
committed
Update export paths
1 parent 74a5941 commit 494f9fb

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

lazer/publisher_sdk/rust/publish.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ mv "${PACKAGE_DIR}/build.rs"
1616

1717
echo "updating lib.rs to export local protobuf files"
1818
cat > "${PACKAGE_DIR}/src/lib.rs" << EOF
19-
pub mod protobuf;
19+
pub mod transaction {
20+
pub use crate::protobuf::pyth_lazer_transaction::*;
21+
}
22+
pub mod publisher_update {
23+
pub use crate::protobuf::publisher_update::*;
24+
}
25+
mod protobuf;
2026
EOF
2127

2228
echo "removing build spec from Cargo.toml"
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
pub mod protobuf;
1+
pub mod transaction {
2+
pub use crate::protobuf::pyth_lazer_transaction::*;
3+
}
4+
pub mod publisher_update {
5+
pub use crate::protobuf::publisher_update::*;
6+
}
7+
mod protobuf;

0 commit comments

Comments
 (0)